What is the process for rounding currency in Shopify?

waelzawa
Tourist
18 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.

Replies 13 (13)

LukaszWiktor
Shopify Partner
314 24 120

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.
Check out my apps Exporteo, Fulfilleo, Stockeo, and Personal Discount.
waelzawa
Tourist
18 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

 

LukaszWiktor
Shopify Partner
314 24 120

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.
Check out my apps Exporteo, Fulfilleo, Stockeo, and Personal Discount.
waelzawa
Tourist
18 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?

LukaszWiktor
Shopify Partner
314 24 120

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.
Check out my apps Exporteo, Fulfilleo, Stockeo, and Personal Discount.
waelzawa
Tourist
18 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?

 

LukaszWiktor
Shopify Partner
314 24 120

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.
Check out my apps Exporteo, Fulfilleo, Stockeo, and Personal Discount.
waelzawa
Tourist
18 0 0

Approved can u plz check and let me know 

waelzawa
Tourist
18 0 0

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

LukaszWiktor
Shopify Partner
314 24 120

Thanks @waelzawa. I updated the currency formats in your theme file. Prices in JOD and IDQ are now being displayed in full amounts (no decimal digits).

 
 
 

LukaszWiktor_4-1613418668242.png

 

LukaszWiktor_3-1613418640089.png

 

I'm a software engineer. I make things happen automatically.
Check out my apps Exporteo, Fulfilleo, Stockeo, and Personal Discount.
waelzawa
Tourist
18 0 0

@LukaszWiktor  Thank you so much I'm really appreciating your support.

waelzawa
Tourist
18 0 0

@LukaszWiktor BTW, Have u checked the speed of our website? what do u think? 

The speed is super low, Do u have any suggestions to improve the speed of the website? 

please let me see your feedback regarding this.

 

Thank you so much. 

 

 

maxx2
Tourist
5 0 2

Thank You for your help, i used it for my store and it solved my problem and i have been looking for this solution for a very long time. 

Really appreciate your good work.