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

Solved
john031
New Member
5 0 0


{% 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
LitExtension
Shopify Partner
1228 157 217

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 - 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!
0 Likes