Really need help, working on a shopify website for a client and they want on products that include variants, to disable the variant image of the product that is not selected.
I’ve tried going all over the code, asked GPT for help but can’t see to figure it out. Does anyone know how to do this?
Thanks!!
1 Like
Hello @RafaelPF ,
Possible but needs customization.
Using JS you need to show/hide the related images but before that you need to add an identifier with each image so you can get it with JS for how/hide.
Thanks
Would you be able to help me? Here’s the section of my code that handles variants:
Yes I can help you, Please drop an email with details for further discussion.
Thank you, I just emailed!
You can show images of the selected variant:
Hi @RafaelPF I see this is an old post and I hope you already have solved this issue on your store. I would like to post the answer for people coming from search. You can install Rubik Variant Images app to display only selected variant images on your store. For the full transparency I am the developer and founder of this app. And you can watch the tutorial which I recorded to showcase the app.