I want to show the product variant options as radio buttons like here enter link description here
But my current theme shows the options as dropdowns. Iwant to list it as above. Can anyone please help me know how to render it like that of above link. Need to know only the template code . I will work on the CSS part on my own.
{% if product.options.size > 1 %}
// how to display the product options with label(like color) and its options(Red,Yellow)
{% endif %}
3
Answers
You could do something like this. Noting that the for= in the label should match the id in the input.