I have the following code in my 'product-form.liquid’ file:
{% if selected_variant.inventory_quantity <= 0 and product.type == "Matras" %}
Order (3 -4 weeks)
{% endif %}
This works but does not gets refreshed after selecting another variant which is on stock.
Any idea how I can trigger this to be checked after a variant selection?
Thanks