How to show discount percentage on motion theme?

AVmaster
New Member
9 0 0

Hello,

Is there somebody who can tell me how can i get the discount percentage shown next to the discount price on the motion theme? 


On my site its only showing this:

Scherm­afbeelding 2024-03-15 om 00.19.43.png

But i want it like this:
Scherm­afbeelding 2024-03-15 om 00.21.07.png

I think its already build in the theme but i cant find 

Reply 1 (1)

tobebuilds
Shopify Partner
211 12 67

Can you share the existing code for your Liquid price template?

 

If not, then the best solution for you is to do the calculation on the fly in Liquid.

 

You can calculate `((compare_at_price - price) / (compare_at_price)) * 100`, and then display that in your "Bespaar" badge.