Multile Variation Images Issue Solution
-
Hey Guys,
Great plugin.
I had problem with showing multiple variation images. The plugin was not binding click event on variable images, if there are many of them. So just need to delegate click event from its parent would fix that issue.
Here it is:
Replace
$thumbnails.bind(‘click’,function(){
$image = $(this).clone(false);
$image.insertAfter($productImages);
$productImages.remove();
$productImages = $image;
$(‘.mousetrap’).remove();
addCloudZoom($productImages);return false;
});with
$thumbnailsContainer.delegate(‘a’, ‘click’, function(){
$image = $(this).clone(false);
$image.insertAfter($productImages);
$productImages.remove();
$productImages = $image;
$(‘.mousetrap’).remove();
addCloudZoom($productImages);return false;
});
- The topic ‘Multile Variation Images Issue Solution’ is closed to new replies.