remove the sale tag from product where the compare price is 0$

Solved
john031
Excursionist
15 0 5


{% if Compare_at_price %}
<div class="grid-product__tag grid-product__tag--sale">
{{ 'products.general.sale' | t }}
</div>
{% endif %}

 

i am apply this condition is it true?

please help me

0 Likes

This is an accepted solution.

Hi @john031

Incorrect, you should use this: 

{% if product.compare_at_price > product.price %}

<div class="grid-product__tag grid-product__tag--sale">

{{ 'products.general.sale' | t }}

</div>

{% endif %}

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!