I Search the internet and found the following code show below but it’s not working as it should be (The section got created but I can’t give input separately for each product and also it is a SECTION but it should be a Section BLOCK to be showing at the right position) FYI using Dawn theme:
{% comment %}
This is a Shopify Liquid section for displaying alternate color options for a product.
{% endcomment %}
If you want to show product variations as per the given link, follow these steps:
Go to Dashboard → Settings → Custom Data → Products. Add a definition and name it “Product Separate Variant.” Select type as “products” and choose the list of products, then save.
Navigate to Online Store → Edit Code. Search for the file main-product, and after “type”: “title”, paste the above code. Again, search for {% render block %}, and paste the above code there. A screenshot is attached for your reference.
Go to Online Store → Customize → Product → Default Product. Add a block, search for “Product Separate Variant,” and drag and drop it where you want it to appear.
Finally, to show the variation on the products page, go to the products, scroll to the bottom of the page, find the metafield, and select the products you want to display as variations.
Yes I understand and troubleshoot the error now it’s working. Thank you very much. i need one more help with this line of code I mentioned below, I want to show images in a 90x90 dimension but when i do that image doesn’t load.
Group products as style variants on the product page using a “Style Name”. This approach helps you streamline your catalog by showing grouped styles together on the storefront and display like variants. By consolidating similar products under one style name, this app also helps
The app Variant Robot can automatically link your seperate listed products, that are presented as variants on your shop, without having to insert any code: https://apps.shopify.com/variant-robot
Variant Robot can automatically link seperate products together, based on your product data.
The app also supports multiple display modes such as: Images, blocks, dropdowns, or auto-color swatches.
No need for any manual mapping, this is an automated solution that only requires one-time setup.
Third-party apps make it easy to separate variants I own the Stamp – Collection Variants app , 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.
If your goal is mainly to show each variant (like color or size) as a separate product on the storefront, without actually splitting them in your Shopify admin, there’s a no-code way to do it.
The app Variantify keeps your original product structure (all variants under one product), but displays each variant as an individual product card on your collection pages.
It’s useful if you only want a cleaner, variant-based layout for customer, for example, showing all color options separately, while keeping your catalog organized in the back office.