New Shopify Certification now available: Liquid Storefronts for Theme Developers

How do I show all color options in one SKU in a collection on my front page?

spasister
Visitor
1 0 0

I have one item with multiple colors I want to show on my front page's collection. I created a new collection and added a new "Featured Collection" in my customized theme page, but it's only show one thumbnail. I want it to show at least 5 thumbnails. 

Screen Shot 2023-10-18 at 2.32.24 PM copy.jpg

Reply 1 (1)
Frenchwise
Shopify Partner
9 1 2

To display your colour variants as seperate product cards will either require editing thing theme files and adding some logic to do that, or move the colour variants to individual products instead of variants of one product - this is the reason why a lot of merchants use seperate products for different colours.

 

The code would basically involve adding some additional logic into your featured collection section, and inside the product loop that generates the cards, add an additional loop to loop through all of the product variants, check for the option name of 'colour', and render an extra card for that variant.