HomeHome Product Discus... Product Discus...SmithCartSmithCartLightbox / variant bug still exists in 4.57Lightbox / variant bug still exists in 4.57
Previous
 
Next
New Post
9/3/2011 12:07 AM
 
I'm using Dnn 6.0.1 and SC 4.5.7.

In the change log, you mentioned a bug fix as copied below, but on my site it still occurs. My variants are radio buttons if that matters.

"Zoom and Lightbox - If you have a product configured with variants and have enabled either zoom or lightbox effects on the product details page when the user changes a variant (i.e. dropdown list item) the cart does an ajax partial postback the jquery library for zoom and lightbox was being unloaded resulting in the zoom and lightbox effects no longer being active after a variant is changed."
 
New Post
9/13/2011 1:28 AM
 
Hi Daniel,

This issue was addressed however the resolution caused the Product Details page to do a full refresh every time a variant was selected. Programming is currently researching this issue and I will postback as soon as an update is available.

Thanks
 
New Post
10/22/2011 12:05 AM
 
Kevin wrote:
Hi Daniel,

This issue was addressed however the resolution caused the Product Details page to do a full refresh every time a variant was selected. Programming is currently researching this issue and I will postback as soon as an update is available.

Thanks

 

Any update on this? The lightbox still does not work when someone selects a variant in the current version 4.67.

 

Thanks,

Daniel.

 
New Post
10/24/2011 4:12 PM
 
Hi Daniel,

This issue currently being researched by programming and I will postback as soon as an update is available.

Thanks,
 
New Post
4/26/2012 7:57 AM
 

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() {

 
New Post
4/26/2012 4:14 PM
Accepted Answer 
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!

 
New Post
5/3/2012 12:40 AM
 

Hi Daniel,

Glad this helped you fix the issue, your solution for lightbox looks good too, very handy. Lets just hope others with the same problem find this post or that Smith move the scripts in the next version so that lightbox and jqzoom work properly.

 

 
New Post
5/3/2012 12:42 AM
 

p.s. can we mark this as resolved now? ;-)

 
New Post
5/3/2012 4:11 PM
 
Richard Bruce wrote:

p.s. can we mark this as resolved now? ;-)

Yes, done. I accepted my own answer because the thread was originally started for a lightbox (rather than zoom). But to be fair you really came up with the solution, so that was a bit unfair by me. :)

 

 
New Post
5/3/2012 6:06 PM
 
Hi Guys,
I know this is an old thread that applies to an older version of smithcart v4.57 but I wanted to let others who are reading this to know that starting in cart v4.6 all the deployment and config tweeks discussed in this thread to configure lightbox and zoom are no longer needed. Starting in cart v4.6 the lightbox and zoom support files are automatically installed and when lightbox/zoom are enabled in the settings the required javascript is injected into the page automatically.

Thanks for all the tips to make lightbox/zoom work on older versions of the cart.


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
5/3/2012 6:27 PM
 
Scott Kelly wrote:
Hi Guys,
I know this is an old thread that applies to an older version of smithcart v4.57 but I wanted to let others who are reading this to know that starting in cart v4.6 all the deployment and config tweeks discussed in this thread to configure lightbox and zoom are no longer needed. Starting in cart v4.6 the lightbox and zoom support files are automatically installed and when lightbox/zoom are enabled in the settings the required javascript is injected into the page automatically.

Thanks for all the tips to make lightbox/zoom work on older versions of the cart.
 

Hi Scott,

Sorry but they didn't work for me with 4.67, and also didn't work with my current version of 4.84. Selecting a variant still did postbacks that caused the lightbox to stop working.

Only the custom fix from this thread worked.

Thanks,

Daniel.

 
New Post
5/3/2012 7:54 PM
 
Hi Daniel,
Thanks for the correction, initially reading thru the post I didnt realize this was a fix for lightbox/zoom being disabled after a postback occurs from a variant. I will make sure this gets fixed in the next release of the cart.

Thanks again for the slick solution!


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
5/4/2012 4:58 AM
 
Daniel wrote:
Richard Bruce wrote:

p.s. can we mark this as resolved now? ;-)

Yes, done. I accepted my own answer because the thread was originally started for a lightbox (rather than zoom). But to be fair you really came up with the solution, so that was a bit unfair by me. :)

 

Hi Daniel

No worries, just glad that between us we managed to solve the problems with both lightbox and jqzoom!

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartLightbox / variant bug still exists in 4.57Lightbox / variant bug still exists in 4.57