How to show % of discount

Anonymous
Not applicable
1626 0 0

Hello everyone!

Can anyone help me on how to show the % of discount next to the price on collections and products page?  Thanks

URL: cosantiboutique.it

0 Likes
KetanKumar
Shopify Partner
14259 1659 5139

@Anonymous 

yes, sure can you please add this code 

{% capture discount %}
{{ product.compare_at_price_max | minus:product.price | times:100 | divided_by:product.compare_at_price_max }}% 
{% endcapture %}
If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Anonymous
Not applicable
1626 0 0

where should I put the code?

KetanKumar
Shopify Partner
14259 1659 5139

@Anonymous 

you have put this code

product gird or product grid item , or product card depend on your theme if not able to this let me know

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Anonymous
Not applicable
1626 0 0

Yes, please let me know 

0 Likes
Anonymous
Not applicable
1626 0 0

I can't find it

0 Likes
KetanKumar
Shopify Partner
14259 1659 5139

@Anonymous 

oops, sorry for that 

can you please add me on staff account so i will check and fix 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Anonymous
Not applicable
1626 0 0

okay thanks, Give me your e-mail

KetanKumar
Shopify Partner
14259 1659 5139

@Anonymous 

yes, please try

- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing