Shopify themes, liquid, logos, and UX
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
Look for code related to the dropdown for variants, such as:
<ul>
{% for variant in product.variants %}
<li>
<label>
<input type="radio" name="variant" value="{{ variant.id }}">
{{ variant.title }}
</label>
</li>
{% endfor %}
</ul>
This will list all variants as selectable radio buttons.
Add Styling
If needed, style the new variant list in the theme.css or base.css file:
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:
<li>
<label>
<input type="radio" name="variant" value="{{ variant.id }}" {% if !variant.available %}disabled{% endif %}>
{{ variant.title }} {% if !variant.available %}(Out of stock){% endif %}
</label>
</li>
Hi Zestard, I could not find the product.liquid or product-template.liquid at all.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025