Untitled
unknown
plain_text
7 months ago
865 B
3
Indexable
{% for option in product.options_with_values %}
{% assign option_index = forloop.index0 %}
<fieldset class="product-form__input">
<legend class="form__label">{{ option.name }}</legend>
<div class="variant-buttons">
{% for value in option.values %}
{% assign id = section.id | append: option.position | append: forloop.index0 %}
<label class="spec-button" for="Option-{{ id }}">
<input
type="radio"
id="Option-{{ id }}"
name="options[{{ option.name | escape }}]"
value="{{ value | escape }}"
class="variant-input"
{% if option.selected_value == value %}checked{% endif %}
hidden
>
<span class="pill">{{ value }}</span>
</label>
{% endfor %}
</div>
</fieldset>
{% endfor %}
Editor is loading...
Leave a Comment