There are some products like a basic sweater which is available in different colours.
I would like the product to only show the pictures of the selected color.
E.g. when black is selected to only show the sweater in the black color, if a customer chooses the red color, the product pictures should switch to these where only the red one is visible.
Hi,
It is possible using some liquid tricks and using image alt tag. You have to add color name in image alt tag in backend and show images of selected color by matching with image alt tag in liquid and on variant change using some javascript.
Also, you can use some third party app to do the same
Please go to Online store > Themes > Edit code, and find the media.liquid file in the snippets folder. Then add the variant Id to the image tag and use this variant id to make the images without the selected variantId disappear.