Hi everyone,
I have created the following availability view for our customers and if the variant is changed (if several are available) it does not change existing, only when I update the page.
Can someone help me that the inventory is automatically updated when changing the variant?
{% if current_variant.inventory_management == "shopify" %}
{% if current_variant.inventory_quantity == 0 %}
Not available
{% elsif current_variant.inventory_quantity > 5 %}
Available
{% elsif current_variant.inventory_quantity < 5 %}
Only {{ current_variant.inventory_quantity }} available
{% endif %}
{% endif %}
I also wanted to add another variable, if the goods are reordered (and overselling is allowed without stock), which can be displayed as an additional point. For example: If the goods have been ordered = the product is available from the “expected delivery date of the order” (or in x weeks until the expected goods receipt is).
Thank you very much in advance.
Best Regards,
Mike