cancel
Showing results for 
Search instead for 
Did you mean: 

CE 2.1.x: Product Page: Thumbail Update via URL Anchor Link

CE 2.1.x: Product Page: Thumbail Update via URL Anchor Link

I have an odd bug that I can't seem to snuff out. I'm not sure if this forum can be used for diagnoses but I need help figuring out the cause.The site is using a custom theme that was installed by a previous developer no longer on the project. The current Magento CE version is 2.1.5 but the issue existed on 2.1.0.

 

If you click the link below, you'll see the product thumbnail does not update with the color. The color swatch is highlighted, if you click [Add to Cart] the correct color is added and if you refresh the page the thumbnail updates correctly. So, this is just the thumbnail not updating on the initial load. Also, if you click the second link below after clicking the first, the thumbnail will update correctly. So again, the problem is only with the initial load. I assume the issue is either with Fotorama or maybe JQuery in general but I can't seem to find it. Any insights or suggests would be greatly appreciated.

 

https://cover.world/4002s-7-oz-sun-dura.html#color=22

https://cover.world/4001s-7-oz-sun-dura.html#color=29

 

Thank you!

1 REPLY 1

Re: CE 2.1.x: Product Page: Thumbail Update via URL Anchor Link

I guess it took me posting the issue to find a solution. I'm not sure where I got the #attribute=value syntax and although I thought the hash was odd, I figured it must be Magento specific. I never thought to try it with a standard ? instead. The link below has the thumbnail update working just fine.

 

https://cover.world/4002s-7-oz-sun-dura.html?color=22