HI all,
I am a little confused about the behaviour in the product detail.
it’s about the liquid file buy-buttons.liquid. i actually thought that if i click on the variants size and colour in the product detail then the variable quantity_rule_soldout would also change depending on whether the product is available or not but it only changes after a complete page reload and then always remains the same no matter whether a product is sold out or not it remains true or false.
what i want to achieve is to hidethe dynamic checkout button when product is not available.
something like this:
{%- if block.settings.show_dynamic_checkout -%}
{%- unless quantity_rule_soldout -%} → added code
{{ form | payment_button }}
{%- endunless*-%} → added code*
{%- endif -%}
Thanks for help
regads
stefan