Jump to content

How To Round Prices To Whole Amount


Recommended Posts

I need product prices rounded to whole numbers. I know it is possible to turn off decimals, but I need the price to be displayed with two decimals.


54,65 needs to be 55,00

54,32 needs to be 54,00



I have not been able to achieve this with standard rounding options. 

Edited by Frostvik (see edit history)
  • Like 1

Share this post

Link to post
Share on other sites

  • 6 months later...

Is it possible, to have product prices with decimals, but the final round up to whole number?

With turning off decimals, it works fine, but customer can argue about the final price - let me demonstrate.


With decimals

38.12 * 9 = 343,08 - Works


Without decimals

38 * 9 = 343 (rounds only final price) - problem, because customer can say 38*9=342


Wanted price output

38.12 * 9 343 - currently impossible AFAIK, without code modifications

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More