Removing Decimals (Expanse) - Variants

saraki
Excursionist
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.

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

pw: secret

 

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

Thank you!

 

@TerenceKEANE?  @ThePixelEdge?

 

Sarah
inibo.co
pw: secret
Replies 2 (2)

harshpatel
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

Sweet_Savior_3
Shopify Partner
1054 86 94

Hey @saraki 

 

Welcome to Shopify Community

 

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

 

Thanks

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 shopify.dev.34@gmail.com
From Less To Further !!!