Dawn Theme- Custom Liquid code - Product Page - If variable

Ludovikas
Tourist
12 0 4

Hi there!

 

Wonder if somebody could help me coding the following rule on Dawn theme-  product page- product information - Custom liquid.

 

I need to display the message "last units on sale price" when the product contais a compare_at_price. And if there is not just leave it blank then.

 

I want to use the Custom Liquid on product information available for Shopify 2.0 theme Dawn.

 

Any help would be awesome 🙂

Replies 2 (2)

NileshTejani
Shopify Partner
203 12 43

 

{% if product.compare_at_price > product.price %}
<p>last units on sale price</p>
{% endif %}

 

you need to put the above code on main-product file that is located under the section folder

digitsupCA_0-1640749414062.png

 

 

- Did we solve your issue? Like & Mark As Solution to help the community

Should you need any direct help:
Get connected: Upwork | Help Center
Ludovikas
Tourist
12 0 4
Thanks a lot!

Your reply means a lot to me.