You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Main image is not getting replaced with the thumbnail images when the user browse to PDP from PLP.
If a PDP is open directly in a new window, then it is possible to replace the main image with the one from the thumbnail
How to reproduce
Steps to reproduce the behavior:
Go to a PLP
Click on a product (the product must have several image in its gallery) and load its PDP
Click on the Image Thumbnail
Observe that the Main image has not been changed, and nothing has happened
Open the PDP link in a new browser window directly
Click on the Image Thumbnail
Observe that the main image is being changed
Expected behavior
The thumbnail image should become the Main Image
Actual behavior
Nothing happens
Devices (please complete the following information):
I've seen that issue as well. It looks like Glide.js issue. Once you go from one product to another that has a different amount of thumbnails the glide's track isn't updated. So the images are there, they are changing, but the viewport is wrong, so we're seeing the white background all the time (but sometimes it could be half of an image).
Looks like we should be watching images and call Glide's update method, but this doesn't work as well. It's related to this Glide issue which is merged, so maybe SFui should update the dependency, I've tried to do that but found their issues with Glide, so I ended up recreating Glide's instance whenever a number of thumbs changes, which is suboptimal.
Overall Glide doesn't look like a reliable library for the job.
To whoever is still running into this bug, I found a good fix in Shopify's implementation template (@vuestorefront/template-shopify).
Briefly, the problem I was running into was when: you go to a product detail page from another page (not ssr), and the product has multiple images, changing the active image by clicking on a thumbnail doesn't work until you refresh the page.
Sorry for such delayed response - I've just taken over the SFUI team in January and was focused on getting SFUI2 released till now.
I read through your comments and I don't think I fully understand the issue yet - also the example does not work anymore (it's nobody's fault, I know it's 1.5 years old 😄). We have now capacity to tackle this issue, but to be able to work on it we need to get a reproduction - could someone provide it here please? 🙏
And FYI: SFUI1 is now in LTS mode as we have released SFUI2 some time ago. Please migrating as SFUI2 supports Vue3. Also, because of all that I will keep that issue open for a week, but if I don't get any response here I'll close it till there is a reproduction. Hope you can help me with that though 🙌
Describe the bug
Main image is not getting replaced with the thumbnail images when the user browse to PDP from PLP.
If a PDP is open directly in a new window, then it is possible to replace the main image with the one from the thumbnail
How to reproduce
Steps to reproduce the behavior:
Go to a PLP
Click on a product (the product must have several image in its gallery) and load its PDP
Click on the Image Thumbnail
Observe that the Main image has not been changed, and nothing has happened
Open the PDP link in a new browser window directly
Click on the Image Thumbnail
Observe that the main image is being changed
Expected behavior
The thumbnail image should become the Main Image
Actual behavior
Nothing happens
Devices (please complete the following information):
Additional context
┆Issue is synchronized with this Jira Zadanie by Unito
The text was updated successfully, but these errors were encountered: