Showing percentage discounts on Showcase theme

Hello!

I’d like to show the percentages of the discounts we are running on our website. The discounts are set via the compare-at-price method. I’ve read multiple pages giving solutions mentioning the price.liquid (which I don’t have in my code) or via the main-product (which I do have) but I can’t find the price__badge-sale line anywhere to start.

I’m running the showcase theme.

Thanks in advance!

Hi @WouterG14

This code will do that word but I’m not sure where to put it because per theme has different files name so you can try to use this code yourself.

{% if product.compare_at_price_max > product.price %} Save {{ product.compare_at_price_max | minus: product.price|money}}{% endif %}

Thanks for the reply. I don’t know where to put this code so I can’t move forward unfortunately.. Anyone with the Showcase template that has experience with this?

Hi @WouterG14

Please try to add the code price.liquid file

I dont have the price.liquid. Only unit-price.liquid and price.range

I can help you, but I need request to access your store. Please give me your store link