Adding a new badge for saved amount in discount

Solved
IntechCarl
Tourist
49 0 5

Hi everyone,

 

Does anyone know how can I add, one more badge that displays the amount saved besides the discount badge in my product page?

See the photo for reference.

IntechCarl_0-1700035098196.png

 

Accepted Solution (1)
Dan-From-Ryviu
Shopify Partner
5455 996 1013

This is an accepted solution.

I added code here so you can mark it as solution to close this post 

{%- assign savings = product.compare_at_price | minus: product.price  -%}
Save {{ savings | money_without_trailing_zeros }}

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

View solution in original post

Replies 3 (3)
Dan-From-Ryviu
Shopify Partner
5455 996 1013

This is an accepted solution.

I added code here so you can mark it as solution to close this post 

{%- assign savings = product.compare_at_price | minus: product.price  -%}
Save {{ savings | money_without_trailing_zeros }}

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

IntechCarl
Tourist
49 0 5

Hi Dan! Can I use this code in my other theme which is debut? I'll be using my debut theme for the meantime while I'm customizing my dawn theme. here is the url: https://thecleanroom.net/

Dan-From-Ryviu
Shopify Partner
5455 996 1013

Hi @IntechCarl 

You can try to add it to Debut theme. Please add code in product-price.liquid file. 

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now