I am trying to get the weight of a product based on what was entered for that product as weight. From there use an IF statement to show the shipping fee or Free Shipping.
Here is the code I currently have but it's not working at all.
{% if currentvariant.weight == '99' %}
FREE WORLDWIDE SHIPPING
{% endif %}
If a product has a weight entered as 99, it's set for free shipping. So I am trying to get it to show Free Worldwide Shipping.
The template being used is Debut. The file I am placing the code in is the product-template.liquid
I have also tried to assign a variable to it. For example:
{% assign the_weight = currentvariant.weight %}
{% if the_weight == '99' %}
FREE WORLDWIDE SHIPPING
{% endif %}
I have also tried using '99.0' just in case it is putting the .0 in the variable and that does not work either.
I have also tried variant.weight
and that does not work either.