Hi all!
I’m having trouble displaying my products with variants as separate products on the main page, e.g. ‘‘Diamond necklace - Gold’’ & ‘‘Diamond necklace - Silver’’. I have managed to add code that changes the view on the products page, but it doesn’t work on the main page (attached screenshots). What code could I change/add? I’m using the Dawn theme (15.3)
Thanks in advance!
2 Likes
Shopify doesn’t show variants as individual products on the homepage by default you’ll need to manually loop through product variants in your featured collection section.
I’d suggest replacing the product loop with a nested loop that renders each variant. You’ll also need a custom snippet that links directly to the variant using variant(ID). I’ve done this before—happy to help tweak your code if you want!