Alejandro Troncoso
2020-03-13T18:53:54Z

price_range_on_product_block.liquid

|
|
| {% if product.discount > 0 %}
| {% t "From" %} {{ product.price | minus:product.discount | price }} {{ product.price | price }}
| {% else %}
| {% assign variant_prices = product.variants | sort: 'price' | map: 'price' %}
| {% if variant_prices.size > 1 %}
| {{ variant_prices | first | price }} - {{ variant_prices | last | price }}
| {%else%}
| {{product.price | price}}
| {%endif%}
| {% endif %}
|