Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
{% 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
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025