Solved

Where can i edit my discount label

admsolindo
Shopify Partner
21 0 4

So my company want to make these product have a 10% discount:image.webp

but my front end still show me 20% off....

image.webp

we use dawn and i can't change the price from my account to recheck it further but i can add/edit the liquid. So i need to know what liquid code that i should edit.
thanks

Accepted Solution (1)

EBOOST
Shopify Partner
972 263 303

This is an accepted solution.

Hi @admsolindo ,

You can check here Store Online-> theme -> edit code -> snippets/card-product.liquid. Find  "card__badge"

EBOOST_0-1716257586737.png

EBOOST_1-1716257599218.png

- Replace 

{{- 'products.product.on_sale' | t -}}

TO

{{ card_product.compare_at_price | minus: card_product.price | times: 100  | divided_by: card_product.compare_at_price }}% Off

EBOOST_2-1716258224279.png

 

 

 

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free
- ❤❤DONATE ❤❤

View solution in original post

Replies 2 (2)

EBOOST
Shopify Partner
972 263 303

This is an accepted solution.

Hi @admsolindo ,

You can check here Store Online-> theme -> edit code -> snippets/card-product.liquid. Find  "card__badge"

EBOOST_0-1716257586737.png

EBOOST_1-1716257599218.png

- Replace 

{{- 'products.product.on_sale' | t -}}

TO

{{ card_product.compare_at_price | minus: card_product.price | times: 100  | divided_by: card_product.compare_at_price }}% Off

EBOOST_2-1716258224279.png

 

 

 

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free
- ❤❤DONATE ❤❤

AnneLuo
Shopify Partner
614 123 126

Hi, @admsolindo 

You need to search for the source of 20% OFF in the code. It is usually in the card product. liquid file.

If you will unable to implement your need then I'm happy to do this for you, let me know. Thank you.

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me   

Buy Me A Coffee