Removing decimal values from promotion prices?

Removing decimal values from promotion prices?

bellevo
Explorer
76 0 21

Hey, is it possible to remove the decimal values from the sale price while keeping the decimal values in the "Cross-Over" price. I would like this style both on collection and on product pages. I will add a picture of the issue and desired outcome below. I appreciate all the help!

Site url: https://bellevodesign.com/

How it looks now:
Screenshot 2024-07-07 234620.png

Desired outcome:
Screenshot 2024-07-07 234739.png

Reply 1 (1)

Guleria
Shopify Partner
3186 620 891

Hello @bellevo ,

 

You can use {{ product.price | money_without_trailing_zeros }}
For more you can check here https://shopify.dev/docs/api/liquid/filters/money-filters

Note: You need to change the make changes in multiple files to remove it from sale price also need to adjust the code accoedingly.

 

Thanks

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me. - Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
- Support me PayPal