Thanks a lot to all the people who have made this awesome idea a reality. I was just more than happy to learn that there will be an extension of zoom-professor cloud in nop 2.0. I have been trying to implement this on nop 1.9. While the plugin seems to work (Although only the solution proposed by Kambui.Nurse only works for me) I would like to ask if there is a way you can increase the zoom i.e make a zoom on a small area as shown on the first demo of this page http://www.yellowlemon.net/demo/1/cloud-zoom/index.html
I have been trying to implement this as suggested on this website http://www.yellowlemon.net/javascript/images/cloud-zoom but I cannot make it work as expected. Below is the code I am using for ProductInfo.ascx
<%@ Control Language="C#" AutoEventWireup="True" Inherits="NopSolutions.NopCommerce.Web.Modules.ProductInfoControl" CodeBehind="ProductInfo.ascx.cs" %> <%@ Register TagPrefix="nopCommerce" TagName="ProductShareButton" Src="~/Modules/ProductShareButton.ascx" %> <script language="javascript" type="text/javascript"> function UpdateMainImage(url, bigurl) { var imgMain = document.getElementById('zoom1'); imgMain.href = url; } function showHref(elementId) { document.getElementById('fullview').href = document.getElementById(elementId).href; document.getElementById('fullview').title = document.getElementById(elementId).title; }
P.S: Regarding the various css classes in this code. I am not sure if they come with the plugin or if I had to develop them myself. For example, can someone give more details on classes like: section-zoom, Small-zoom-Image, cloud-zoom, and cloud-zoom-gallery? Please give your thoughts and comment if you have made this plugin working for you. Thanks in advance!
Just following up on my earlier comment. I've implemented the zoom based in ProductInfo.ascx based upon the examples on here, but I get an exception thrown whenever you go to the product page.
The user does not see the exception. Its raised by the URLWriting, and gets logged. Because this happens every time a user views a page, the log is filled with these exceptions.
Has any one experienced this?
The exception is;
System.Web.HttpException (0x80004005): The file '/ProductDetails.aspx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Thanks for both of the solutions, . . but both are having this problem: it only works if there is more than one image. If you have just one image for that Product, the zoom doesn't work. Am I the only having this problem?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.