Hello, I would like to display "Ordered" in addition to "Price upon request and the normal price shown. I tried to use this code in my Product-price liquid.
{% if product.price == 0 %} {%- assign money_price = "Preis auf Anfrage" -%} {% else %} {%- assign money_price = price | money -%} {% endif %} {%if product.variants.first.inventory_quantity == -1 %} {%- assign money_price = "Ordered"-%} {% endif %}
I tried show ordered if the product quantity is -1
User | RANK |
---|---|
38 | |
36 | |
13 | |
9 | |
9 |