Jump to content

JqZoom and thumbnail image scrolling not working (PrestaShop 1.6.1.4)


Recommended Posts

Hi, 

I have installed PrestaShop 1.6.1.4 with a template named leomoonsun 

There are two problems with the prestashop standard functions in my shop:

 

shop.cooling-cubes.com

 

1) Zoom is not working

JqZoom is working after creation of all products and product images. Then it is "why ever" not working anymore. I did not change anything during this time. If I delete my cache in the browser it still not work

Temp Solution: If I I go to "Voreinstellungen - Produkte" and change "JqZoom anstatt Thickbox für Artikelbild aktivieren"  to off, save, change to on and save ... then it works for a short time. But some time later it do not work?

 

2) Scrolling of Thumbnails not work

I have for some products > 3 images (e.g. CURL)  but I can only see 3. The Scrolling Image do not work - I can klick on it but nothing happens. And the Button is only shown if the Zoom is working. When the Zoom do not work there is no button shown to scroll.

 

I looked inside product.tpl / product.js / product.css but I am not really able to understand the mechanism :-(

See attached image (first with working Zoom and existing not working button // second without zoom and button)

 

Thanks for your help

Ingo

post-1141520-0-96610200-1471451779_thumb.png

post-1141520-0-29878400-1471451791_thumb.png

Link to comment
Share on other sites

You have a JavaScript error on the page:

ReferenceError: comparedProductsIds is not defined

...compare').each(function(){if($.inArray(parseInt($(this).data('id-product')),comp...

Disable CCC and look in the browser console to see the file.

 
Link to comment
Share on other sites

OK, now I know that I have an java error "Can't find variable: comparedProductsIds"  seems to be inside the file "products-comparison.js" in the following section:

function compareButtonsStatusRefresh(){
$('.add_to_compare').each(function() {
if ($.inArray(parseInt($(this).data('id-product')),comparedProductsIds)!== -1)
$(this).addClass('checked');
else
$(this).removeClass('checked');
});
}
Any idea how to solve the Problem?
 
Thank you very much!
Link to comment
Share on other sites

Solution for the JqZoom Zooming Problem "Can't find variable: comparedProductsIds" is to add the following code:    

if (typeof comparedProductsIds==="undefined") {
var comparedProductsIds=[];
}

The 2nd Problem is still open:

 

2) Scrolling of Thumbnails not work

I have for some products > 3 images (e.g. CURL)  but I can only see 3. The Scrolling Image do not work - I can klick on it but nothing happens. 

Edited by runkel (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...