Does anybody know how to hide the buttons of the non-stock variants in DAWN 13?
Thanks in advance for your help.
Regards,
Does anybody know how to hide the buttons of the non-stock variants in DAWN 13?
Thanks in advance for your help.
Regards,
1、Edit theme code
2、find the file: “product-variant-options.liquid” and edit it.
3、Find: “<input
type=“radio”
id=”{{ input_id }}"
name=“{{ option.name }}”
value=“{{ value | escape }}”
form=“{{ product_form_id }}”
{% if option.selected_value == value %}
checked
{% endif %}
{% if option_disabled %}
class=“disabled”
{% endif %}
"
<input
type=“radio”
id=“{{ input_id }}”
name=“{{ option.name }}”
value=“{{ value | escape }}”
form=“{{ product_form_id }}”
{% if option.selected_value == value %}
checked
{% endif %}
{% if option_disabled %}
class=“disabled” style=“display:none”
{% endif %}
{% if option_disabled == false %}
{{ value -}}
{{ label_unavailable }}
{% endif %}
"
Works perfectly. I mark anwer as ‘Accepted solution’
Thanks for your help!
It does not work on the empire theme. I tried every solution in the community for two days. Do you know how to hide sold out variants in the Empire theme?
I would be grateful for a tip.