Hello,
Wondering if it’s possible to display the available sizes on the collection page & strike the sizes that are not available. I know my way around html/css but liquid is a problem for me.
I’m using the taste good theme.
Thank you.
A user asks how to display available product sizes on a collection page and strike through unavailable sizes. They mention using the “good taste” theme and being comfortable with HTML/CSS but finding Liquid challenging.
Proposed Solution:
Status: The discussion provides a starting framework but requires theme-specific implementation. The solution involves iterating through product variants and conditionally rendering size information based on stock availability.
Hello,
Wondering if it’s possible to display the available sizes on the collection page & strike the sizes that are not available. I know my way around html/css but liquid is a problem for me.
I’m using the taste good theme.
Thank you.
Hi
For that need custom code based on theme’s existing code
but i can give idea for that, add below code in your product grid code
{% if product.options.size %}
Available sizes:
{% for variant in product.variants %}
{% if variant.available %}
{{ variant.option1 }},
{% endif %}
{% endfor %}
{% endif %}