Hi
I would like all the variants to be displayed instead of the “choose the options” for that specific product I’m using Trade theme at the moment and got told that it would need coding to change this. Please help!!
Thank you
Hi
I would like all the variants to be displayed instead of the “choose the options” for that specific product I’m using Trade theme at the moment and got told that it would need coding to change this. Please help!!
Thank you
Hi @llcxs
How are you?
if theme doesn’t have this functionality then this can be done using the custom liquid code, It will take approx. 3-4 Hours to make this type of functionality.
You have to hire a shopify developer for this.
If need any help from my end, please let me know.
Thanks
Laddi
Hello @llcxs ,
Backup the Theme
Before making changes, duplicate the theme to create a backup.
→ Go to Online Store > Themes in the Shopify admin.
→ Click on Actions > Duplicate next to the Trade theme.
Access the Theme Editor
Click Actions > Edit Code on the active Trade theme.
Locate the Product Template
Open the product.liquid or product-template.liquid file (depending on the theme structure) under the Sections or Templates folder.
Find the Variant Selector Code
Look for code related to the dropdown for variants, such as:
{% for variant in product.variants %}
-
{% endfor %}
This will list all variants as selectable radio buttons.
ul.variant-list {
list-style-type: none;
padding: 0;
}
ul.variant-list li {
margin: 5px 0;
}
Test the Changes
→ Save the changes.
→ Go to the product page to verify that all variants are displayed.
Optional: Add Error Handling for Out-of-Stock Variants
→ If some variants are out of stock, show a message or disable the selection:
-
Hi Zestard, I could not find the product.liquid or product-template.liquid at all.