rounding currency

waelzawa
Tourist
14 0 0

Hello All,

I'm facing an issue with my website when it displaying the currency it shows it with 3 digits, 

For Example Total Price: 30.490 and I want to round the currency based on the below role : 

- 30.52 first number after the dot >= 5 round to ceil so it became: 31 

 - 30.44 first number after the dot < 5 round to floor so it became: 30

 

I don't want my currency to be shown as decimal places, I want it to be shown as rounded to the nearest whole number but based on the mentioned role.

0 Likes

Do you want to show rounded prices on the product pages but still keep the decimal part at checkout? If so then you can change the currency formatting in general settings to use {{amount_no_decimals}} instead of {{amount}}.

LukaszWiktor_0-1612958508091.png

However, if you want to have rounded prices also at checkout, then you'd need to update your product prices in the Shopify admin. How many products do you have and how often do the prices change? If it's too much of manual work then I can help you to automate rounding the prices.

 

I'm a software engineer. I make things happen automatically.
0 Likes
waelzawa
Tourist
14 0 0

@LukaszWiktor Thank you so much for your support, to be honest, I'm using a multi-currency on my website the main one which is the USD already rounded as the previous steps u have mentioned 

but when I switch the currency it keeps showing without rounding.

 

I mean in USD it Rounded but in other currency, it's not. what do u think

 

 Captur1.PNGCapture3.PNG

 

0 Likes

Oh, I see. Do you use an app for multi-currency? Or do you use multiple currencies in Shopify Payments?

I'm a software engineer. I make things happen automatically.
0 Likes
waelzawa
Tourist
14 0 0

I'm Using multiple currencies in Shopify Payments, what do u think?

Also, do u have any steps to optimize the speed of my website?

0 Likes

If you are using Shopify Payments then you can use rounding rules.

LukaszWiktor_0-1613382151522.png

As for the page speed, it depends on the theme you use and installed apps. What's your website URL?

I'm a software engineer. I make things happen automatically.
0 Likes
waelzawa
Tourist
14 0 0

@LukaszWiktor Thank you so much for your kind support but, Is there's any other possible way as we have added the multi-currency by the "theme application" we used,

is it do-able by your side?

 

my web site URL:

https://kadichic.com/

 

what do u think?

 

0 Likes

I've just sent you an access request from my Shopify Partner dashboard. I can have a look if it's possible to fix the currency rounding on your website.

I'm a software engineer. I make things happen automatically.
0 Likes
waelzawa
Tourist
14 0 0

Approved can u plz check and let me know 

0 Likes
waelzawa
Tourist
14 0 0

@LukaszWiktor also, you may need to change on theme.js code supported by the theme application?

0 Likes