We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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
12073 2359 2539

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

 

 

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- 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
12073 2359 2539

Hi @WouterG14 

Please try to add the code price.liquid file

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- 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
12073 2359 2539

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

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.