Re: Showing percentage discounts on Showcase theme

Showing percentage discounts on Showcase theme

WouterG14
Visitor
3 0 0

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!

Replies 5 (5)

Dan-From-Ryviu
Shopify Partner
10887 2145 2282

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 %}

 

 

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

WouterG14
Visitor
3 0 0

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?

Dan-From-Ryviu
Shopify Partner
10887 2145 2282

Hi @WouterG14 

Please try to add the code price.liquid file

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

WouterG14
Visitor
3 0 0

WouterG14_0-1698930232026.png

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

Dan-From-Ryviu
Shopify Partner
10887 2145 2282

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

- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.