-
{% for product in products %}
{% assign product_status = '' %}
{% case product.status %}
{% when 'active' %}
{% if product.on_sale %}{% assign product_status = 'On sale' %}{% endif %}
{% when 'sold-out' %}
{% assign product_status = 'Sold out' %}
{% when 'coming-soon' %}
{% assign product_status = 'Coming soon' %}
{% endcase %}
-
{{ product.name }}{{ product.default_price | money_with_sign }}{% if product_status != blank %}{{ product_status }}{% endif %}
{% endfor %}
{% endif %}
{% endpaginate %}