Check if product.price is higher then number

New Member
1 0 0

Hi there,

Right, so I am experiencing an issue with some liquid code. It's fairly straightforward, but for some reason, does not seem to do what I would like it to.

The code is: 

{%- if product.price_max >= 80 -%}
<p style="font-size: 14px; margin-top: 0px; font-weight: 500; color: #45b36e;">{{ 'products.product.free_shipping' | t }}</p>
{% endif %}


I've tried product.price / product.price__max / variant.price etc... 


What I am trying to do, is to display a "free shipping" text when the product price (or the max product price, if there are variants) is over 80, as we offer free shipping above 80. However, this does not seem to display over 80, it displays all the time...

For example:


This product has no variant above 80, but still shows the free shipping text. 


Here is an image of the full code: 


Screenshot 2020-07-11 at 11.53.22 AM.png