Fixed price comparison with raw value (instead of string)

Fixed price comparison with raw value (instead of string)
This commit is contained in:
2025-11-12 09:04:39 +00:00
parent f5d0e6ebab
commit eca632f08b

View File

@@ -627,7 +627,7 @@
endif
-%}
<span class="price{% if product_compare_at_price > product_price %} sale{% endif %}">
<span class="price{% if product_compare_at_price_raw > product_price_raw %} sale{% endif %}">
{% if product.available %}
<span class="new-price">
{% if product.price_varies %}
@@ -639,7 +639,7 @@
{{ product_price_min }}
{%- endif -%}
</span>
{% if product_compare_at_price > product_price %}
{% if product_compare_at_price_raw > product_price_raw %}
<span class="old-price">{{ product_compare_at_price }}</span>
{% endif %}
{% else %}