Richard Bruce wrote:
Hi Daniel
This issue arises because the code for the jqzoom plugin has been put in the wrong place.
Here is how to correct this:
1. navigate to desktopmodules/smith.buynow/js/scZoom.js
2. make a backup of this file (you will need this!)
3. delete all the code in this file, save it and upload to your server
4. navigate to desktopmodules/smith.Productdetails/ProductDetails.ascx
5. open this file and paste the content of your backup of scZoom.js under the block of code below (around line 22)
6. save and upload to your server and zoom will now work when your customers change a variant.
Smith had already built in the code to execute js after a partial postback, however it seems they forgot to move a number of things there.
Hope this helps you and others with the same problem.
function dofirst() {
jQuery(document).ready(function() {
Thanks Bruce!
Thanks to your post I was now able to figure out how to fix the same issue with lightbox (aka fancy box) rather than zoom:
1. Navigate to /DesktopModules/Smith.BuyNow/js/scFancyBox.js
2. Make a backup of this file.
3. Delete all the code in the file, and re-upload to your server into the same folder.
4. Navigate to /DesktopModules/Smith.ProductDetail/ProductDetails.ascx
5. Edit this file by pasting the code from step 2 into the ready function. It should look like this:
function dofirst() {
jQuery(document).ready(function() {
$("a.gallery").fancybox(); // THIS IS THE NEW CODE AND THE ONLY LINE YOU NEED TO COPY
jQuery(".tab_content").hide(); //Hide all content
jQuery("ul.tabs li:first").addClass("active").show(); //Activate first tab
jQuery(".tab_content:first").show(); //Show first tab content
6. Save and upload back to the server.
Take care working with a live site. And please correct me if I'm wrong, I'm no java script expert!