[Skip to main content](#vessel-content)

#   rounding problem

##

- **[crommie](/forum/user/8240-crommie "View crommie's Profile")**
- [![crommie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8240-crommie "View crommie's Profile") Topic Author
- [ Offline](/forum/user/8240-crommie)

Less More

- Posts: 13
- Thank you received: 1
-
-

13 years 11 months ago -  13 years 11 months ago [\#75212](#75212) by [crommie](/forum/user/8240-crommie "View crommie's Profile")  *[rounding problem](/forum/2-general-talk-about-hikashop/75212-rounding-problem#75212 "Hi,  In our shop we recently discovered a strange rounding problem when the customer choses to pay with iDEAL: products that cost 5.95 (including 21% tax) give trouble on their own, products that cost 10.95, 15.95 or 20.95 if combined with other .95 products. A total order amount of 106.70 (including tax &amp; shipping) causes problems as well. iDEAL shows a &quot;hoeveelheid moet een geldig nummer zijn&quot;-error, which basically means that it can't handle the rounding of this order.  Our iDEAL supplier is working on the problem.  In the mean time I keep wondering: wouldn't it be easier to just change the amount of decimals somewhere in the Hikashop configuration? In the system -&gt; currency it's set to 2, but could I change this to 2 in currency.php as well? And if so: where and how? Or would that cause other rounding troubles?  I have considered downgrading from 1.6.0 to 1.5.8, since we didn't have these rounding issues with 1.5.8. Bad idea? Good idea? I don't know. I'm kinda desperate right now :( .")* was created by *[crommie](/forum/user/8240-crommie "View crommie's Profile")*

Hi,

In our shop we recently discovered a strange rounding problem when the customer choses to pay with iDEAL: products that cost 5.95 (including 21% tax) give trouble on their own, products that cost 10.95, 15.95 or 20.95 if combined with other .95 products.
A total order amount of 106.70 (including tax &amp; shipping) causes problems as well.
iDEAL shows a "hoeveelheid moet een geldig nummer zijn"-error, which basically means that it can't handle the rounding of this order.

Our iDEAL supplier is working on the problem.

In the mean time I keep wondering: wouldn't it be easier to just change the amount of decimals somewhere in the Hikashop configuration? In the system -&gt; currency it's set to 2, but could I change this to 2 in currency.php as well? And if so: where and how? Or would that cause other rounding troubles?

I have considered downgrading from 1.6.0 to 1.5.8, since we didn't have these rounding issues with 1.5.8. Bad idea? Good idea? I don't know. I'm kinda desperate right now ![:(](/media/kunena/emoticons/5.png ":(") .

Last edit: 13 years 11 months ago by [crommie](/forum/user/8240-crommie "View crommie's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1MjEyLXJvdW5kaW5nLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

13 years 11 months ago [\#75285](#75285) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: rounding problem](/forum/2-general-talk-about-hikashop/75212-rounding-problem#75285 "Hi,  In our shop we recently discovered a strange rounding problem when the customer choses to pay with iDEAL: products that cost 5.95 (including 21% tax) give trouble on their own, products that cost 10.95, 15.95 or 20.95 if combined with other .95 products. A total order amount of 106.70 (including tax &amp; shipping) causes problems as well. iDEAL shows a &quot;hoeveelheid moet een geldig nummer zijn&quot;-error, which basically means that it can't handle the rounding of this order.  Our iDEAL supplier is working on the problem.  In the mean time I keep wondering: wouldn't it be easier to just change the amount of decimals somewhere in the Hikashop configuration? In the system -&gt; currency it's set to 2, but could I change this to 2 in currency.php as well? And if so: where and how? Or would that cause other rounding troubles?  I have considered downgrading from 1.6.0 to 1.5.8, since we didn't have these rounding issues with 1.5.8. Bad idea? Good idea? I don't know. I'm kinda desperate right now :( .")*

We changed the tax calculations for 1.6.0 in order to have exact calculations.
Because of that, the data is now stored with as much decimals as possible and rounded during the display or when it is used by the payment plugin.
HikaShop payment plugins were already rounding the prices even before this modification so we didn't had to modify them.
It seems that your payment plugin isn't doing it. So it would require to change the code of the plugin to round the prices there.

Changing the decimals of the currency in HikaShop won't change anything since your plugin isn't taking it into account.

So it would be great to notify the developer of your payment plugin about that issue so that he can add the rounding (it should be really easy) in it.

If you downgrade HikaShop, the calculations will be the old ones and you won't have the problem anymore so that could indeed be a temporary solution.

The following user(s) said Thank You: [crommie](/forum/user/8240-crommie "View crommie's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1MjEyLXJvdW5kaW5nLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[crommie](/forum/user/8240-crommie "View crommie's Profile")**
- [![crommie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8240-crommie "View crommie's Profile") Topic Author
- [ Offline](/forum/user/8240-crommie)

Less More

- Posts: 13
- Thank you received: 1
-
-

13 years 11 months ago [\#75291](#75291) by [crommie](/forum/user/8240-crommie "View crommie's Profile")  Replied by *[crommie](/forum/user/8240-crommie "View crommie's Profile")* on topic *[Re: rounding problem](/forum/2-general-talk-about-hikashop/75212-rounding-problem#75291 "Hi,  In our shop we recently discovered a strange rounding problem when the customer choses to pay with iDEAL: products that cost 5.95 (including 21% tax) give trouble on their own, products that cost 10.95, 15.95 or 20.95 if combined with other .95 products. A total order amount of 106.70 (including tax &amp; shipping) causes problems as well. iDEAL shows a &quot;hoeveelheid moet een geldig nummer zijn&quot;-error, which basically means that it can't handle the rounding of this order.  Our iDEAL supplier is working on the problem.  In the mean time I keep wondering: wouldn't it be easier to just change the amount of decimals somewhere in the Hikashop configuration? In the system -&gt; currency it's set to 2, but could I change this to 2 in currency.php as well? And if so: where and how? Or would that cause other rounding troubles?  I have considered downgrading from 1.6.0 to 1.5.8, since we didn't have these rounding issues with 1.5.8. Bad idea? Good idea? I don't know. I'm kinda desperate right now :( .")*

Thank you Nicolas! The iDEAL plugin developer has been notified (and could be working on it as we speak). I hope they will bring a permanent solution.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1MjEyLXJvdW5kaW5nLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.088 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
