show all Colours of a product in the collection

show all Colours of a product in the collection

Pede
Visitor
3 0 0

I would like to show all colors of a product as separate individual products in the collection list.
e.g. I have the product AA in 4 colors: black, white, blue and green. When I am on the product page, the product appears and I can select and buy the 4 colors.
I would like these 4 colors to also appear as individual products, i.e. AA-black; AA-white; AA-blue and AA-green in the collection list.
Previously I had ONLY one item in the collection list and now I would like to have all colors of the item in the collection, i.e. 4 items, in the collection.

How can I manage this?
Thanks in advance

Reply 1 (1)

Pede
Visitor
3 0 0

@samson thanks I found this code and it works Wonderfull ; you just have to check if your color (colour in my case) name in products are the same name in the code 

watch out : 

https://websensepro.com/blog/show-variants-as-separate-products-on-shopify?unapproved=76714&moderati...