Hi, does anyone know how to edit the collection code to display product color variants as separate products on the collection page? Currently, we are using separate products for each color, which makes our SKUs and listings confusing. We would greatly appreciate it if anyone could share the code with us!
Previously, we were using the Impulse theme, which allowed us to manage code from online to show the color variant option as a separate product on the collection page.
Hi @Jasmineau99 ,
This is Theodore from PageFly - Shopify Page Builder App.
Showing color variants as separate products on Shopify collections:
Don’t edit collection code! Here’s a better solution:
- Use product variants with color options for each product (one product, multiple color variants).
- Enable collection filtering by product options (color) in your collection settings.
This allows customers to see color variants as “separate products” on the collection page while maintaining a single product listing with fewer SKUs.
Best regards,
Theodore | PageFly
any tutorial showing how to do this with pagefly apps?
Can you follow this guide? or contact with our support.
Third-party apps make it easy to separate variants I own the Stamp ‑ Variants on Collection and we help merchants display variants separately on the collection page and home page. You can customize the settings per collection to show or hide specific variants, filter variants, or separate them by specific options. For example, you can create a “Gold” collection and display only gold-related variants.
Hi @Jasmineau99
You can surface color variants as individual products by iterating over each variant in your collection template and rendering a product card for each variant. Get the featured media from the variant and link to the parent product with the selected option preloaded. This keeps SKUS together, but shows colors separately.