Personalized checkout and custom promotions with Shopify Scripts
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello, I would like to do something similar to the following images,
but I don't know why the If where it says "and template == 'collection'" is in price.liquid line 85
it doesn't detect it
I don't know if there would be another way to do it better so that in the Featured Collection section the range that I have for the maximum and minimum price appears, when you enter the product the two ranges appear and when you select the material I put the price that it is worth.
<span class="visually-hidden visually-hidden--inline">{{ 'products.product.price.regular_price' | t }}</span>
<span class="price-item price-item--regular">
{% if product.price_varies and template == 'collection' %}
<p>From {{ product.price_min | money }} to {{ product.price_max | money }}</p>
{% elsif money_price == money_price_min %}
{{ money_price }}
{% elsif money_price == money_price_max %}
{{ money_price }}
{% elsif money_price != money_price_min and money_price != money_price_max %}
{{ money_price }}
{% else %}
{{- 'products.product.volume_pricing.price_range' | t: minimum: money_price_min, maximum: money_price_max -}}
{% endif %}</span>
Thank you so much