{% comment %} Custom option selector: render option values as full clickable buttons {% endcomment %} {% for option_form in form.cartItem.variant %}
{% if option_form.vars.label is defined %}
{{ option_form.vars.label }}
{% endif %}
{% for choice in option_form %}
{{ form_widget(choice, { 'attr': {'class': 'btn-check'}, 'label': false, 'label_attr': {'class': 'd-none'}, 'parent_label_class': 'btn' }) }} {{ form_label(choice, null, {'label_attr': {'class': 'btn btn-outline-secondary variant-btn mb-0', 'for': choice.vars.id}}) }}
{% endfor %}
{% endfor %}