How to include “Compare Price At” on Product page on shopify theme

I read on shopify forum that there is a question:
“Currently “Compare Price At” price shows up on the Collection pages with a line through.
We want the “Compare Price At” to play the role of MSRP (Manufacturer’s Suggested Retail Price) at product page”
The solution for this is below:
Add this snippet to your product liquild next to price

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

{% include ‘price’ with variant.compare_at_price_max %}

{% endif %}

This snippet will show compare_at_price when it is higher than the product price.

Leave a Reply

Your email address will not be published. Required fields are marked *