{% unless current_variant.available %}
disabled="disabled" data-button-status="sold-out"
{% elsif variant_pre_order %} data-button-status="pre-order"{% else %}
{% if enable_select_variant_button == true or enable_select_options_button %} data-button-status="select" data-button-default-status="select"
{% if button_select_disable %} data-button-select-disable{% endif %}
{% endif %}
{% endunless %}>
HI,
not sure how it is possible. current_variant.available == true and variant_pre_order == false but some how adds data-button-status=“pre-order”
tried elsif statement with
variant_pre_order == true
still variant_pre_order = false but but somehow accepts as TRUE. How it is possible?
started happening after a weekend