show images for individual variants

New Member
2 0 0

Hey guys, 


I have variant products by size and colour on my shop example:

sizes: S, M, L, XL

colour: black, white, blue


Each variant has images, so on my site i end up with 12 images on the same product... which looks funny since they are all duplicates...


I need to only display 3 images, one for each colour not one for each product...


What is the best way to do that?




Shopify Partner
433 83 93


You are looking for this
You can find code here

Note: You have to make changes in it a/to your need


Want to modify or custom changes on store hire me.
My Email:
Skype: navrocks1
If helpful then please Like and Accept Solution.
If you are happy and want to donate small Click here (Its my paypal)
New Member
2 0 0

Not really, 


have a look at the screenshot

Screen Shot 2019-12-27 at 14.44.38.png


This is what i have on my store, for example i have:


1x M in Gloss Mint

1x S in Gloss Mint

1x XS in Crimson Rocket Red


My site shows 2 thumbnails for the Gloss mint


I need it to show only one thumb for gloss mint and one for Crimson Red 


At the moment i have one thumb for each stock item and looks funny... as sometimes i have only one colour variant and 6 different sizes so i end up with main photo and 6 extra thumbs that look the same.


i need to show this:


Screen Shot 2019-12-27 at 15.29.20.png