Shopify themes, liquid, logos, and UX
Hey there!
I am using the Debut theme.
I've recently updated code to hide all thumbnails for a product with multiple variants (for a clean visual) and display just one image, but cannot get the product image (and additionally the price) to change when a variant is selected from the dropdown menu. My variants all have images uploaded, but only one of them will show right now. I am hoping I didn't botch a code somewhere!
Regardless of what I select in the dropdowns below, this one image shows for all of them, despite each variant having its own image uploaded. This image showing is also not the feature image I want to show before a variant is selected, but I'd rather have the variant images fixed first.
Additionally, if I chose a different variant and add to cart, not only does the above image show in the cart regardless of my choice, but the size/color corresponding to that image does too! So the wrong item gets added.
Any help appreciated!
Solved! Go to the solution
This is an accepted solution.
Ended up getting this to work - had to re download my theme and start from scratch. Something must have gone funny along the way!
Hello,
You need to define an image for each specific variant at the Product page.
Let me know whether that helps.
Hi there,
In my original post I specified that I have done this and it is still not working. The individual variant images won't change when I choose from the dropdown menu, despite having uploaded a specific image for each variant.
This is an accepted solution.
Ended up getting this to work - had to re download my theme and start from scratch. Something must have gone funny along the way!
I have to restart my entire store from scratch?!
Hi, would you mind sharing the code that you used for this? My thumbnail images for all of the color options all show up also and it doesn't look clean as you said. Thank you!
My store is experiencing the same problem. I have tried different image types and nothing is working. This is costing me sales.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024