Removing Decimals (Expanse) - Variants

68 1 5

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 👍 as it should.

Screen Shot 2024-03-04 at 10.13.05.png

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

Screen Shot 2024-03-04 at 10.14.19.png


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.

pw: secret


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

Thank you!


@TerenceKEANE?  @ThePixelEdge?


pw: secret
Replies 2 (2)

Shopify Partner
15 1 3

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.

Harsh Patel

Shopify Partner
1054 86 94

Hey @saraki 


Welcome to Shopify Community


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



Don't forget to like and accept the solution to help others store owners.
Looking for an expert or Have any queries ? Send query to the Inbox
Coffee Tip ? Pay to
From Less To Further !!!