How can I remove decimals from variant prices in all currencies?

Hi all,

decimals continued…

A couple weeks ago ThePixelEdge helped me remove the decimals ( ,00) from my prices for all currencies. Thank you again so much for doing this!

Unfortunately we forgot about the variants..

When a product page is first loaded, the price displays without any decimals :+1: as it should.

But once I select another variant, the decimals are back.

This happens with all currencies, except USD (USD is the store currency and doesn’t have this issue because I was able to remove the decimals in the settings). Screenshots are Singapore dollar.

I would love some help with this.

Here is a style with variants.

https://inibo.co/collections/latest-treasures/products/solis-star-studs-9k-solid-gold?variant=42893268287667

pw: secret

Please dm me for the code If you need collaborator access.

Thank you!

@TerenceKEANE ? @ThePixelEdge ?

Hi Saraki,

This is mostly happening due to some type of conversion of price when you click on variants.

Would love to help you out, but I need to look at the code & it’s implementation.

Thank you,
Harsh Patel.

Hey @saraki

Welcome to Shopify Community

Kindly please check Shopify currency formatting documentation >> here this will help you.

Thanks