Hi everyone,
I'm having a lot of trouble with a weird issue whose problem I can't seem to locate.
I'm running Prestashop 1.7.2.2 and the problem happens like this:
1 - If I visit any of my product pages and, without clicking anything first, I click on the magnifying glass to zoom the default product image, a random (I think it's random, because I haven't been able to locate a common pattern) image of a completely different product shows up on the zoomed modal window. However, the main product image (not zoomed in) is the correct one.
2 - If, before clicking on the magnifying glass, I click on any of the thumbnails, or select another product combination, the zoomed image is always the right one.
I'm using combinations for all of my products, and the default combination has an image set.
I'm getting no JavaScript errors on the console.
It looks like the JavaScript that binds the modal content (zoomed image) with the right image works whenever I click on anything (for example, clicking on any thumbnail, selecting a different color...) but, when the page loads, it doesn't initialize correctly and binds the magnifying glass to a totally different picture.
Any help or ideas would be greatly appreciated, since this issue is really driving me crazy.
Thanks in advance!