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
6919 1306 1334

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 or Accept solution, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- 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
6919 1306 1334

Hi @WouterG14 

Please try to add the code price.liquid file

- Helpful? Like or Accept solution, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- 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
6919 1306 1334

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

- Helpful? Like or Accept solution, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 1 month of Shopify for $1. Sign up now