Hi everyone.
I want to show quantity options on collection page, like 1, 5, 10 (-piece set), above the price.
Someone told me to use options_by_name on card-product.liquid below, so I tried but it didn’t work… it only shows empty span element.
{{ 'onboarding.product_title' | t }}
{% for value in product.options_by_name[‘quantity’].values %} {{ value }} {% endfor %}
{%- if show_vendor -%}
{{ ‘accessibility.vendor’ | t }}
It’s a bit tricky but when I put a plain test instead of liquid code to look into the problem, it didn’t show anything either. Precisely, I can see it it the source code, but not on the front page.
I have know idea why this happens…
Does anyone know how to fix this? Thank you in advance.