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

#   Order page: wrong calculation of price if multiple items order

##

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

Less More

- Posts: 48
- Thank you received: 4
-

3 years 6 months ago -  3 years 6 months ago [\#351594](#351594) by [pat01](/forum/user/58191-pat01 "View pat01's Profile")  *[Order page: wrong calculation of price if multiple items order](/forum/27-checkout/906370-order-page-wrong-calculation-of-price-if-multiple-items-order#351594 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : none  Hello  Before sending the order, there is an order summary shown.  If I order an item with price of 1,62 per item and I order 10 items, total price of 16,16 is shown instead of 16,20.  Here is screenshot:  It would be great if you could check this.  Thanks a lot.  Patrick")* was created by *[pat01](/forum/user/58191-pat01 "View pat01's Profile")*

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 3.10.11
-- PHP version -- : 7.4
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : none

Hello

Before sending the order, there is an order summary shown.

If I order an item with price of 1,62 per item and I order 10 items, total price of 16,16 is shown instead of 16,20.

Here is screenshot:
This message contains confidential information

It would be great if you could check this.

Thanks a lot.

Patrick

This message contains confidential information

Last edit: 3 years 6 months ago by [pat01](/forum/user/58191-pat01 "View pat01's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNjM3MC1vcmRlci1wYWdlLXdyb25nLWNhbGN1bGF0aW9uLW9mLXByaWNlLWlmLW11bHRpcGxlLWl0ZW1zLW9yZGVyP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

3 years 6 months ago [\#351596](#351596) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order page: wrong calculation of price if multiple items order](/forum/27-checkout/906370-order-page-wrong-calculation-of-price-if-multiple-items-order#351596 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : none  Hello  Before sending the order, there is an order summary shown.  If I order an item with price of 1,62 per item and I order 10 items, total price of 16,16 is shown instead of 16,20.  Here is screenshot:  It would be great if you could check this.  Thanks a lot.  Patrick")*

Hi,

That's because you have the "round prices during calculations" setting turned off and thus the calculations are made without rounding and the rounding is only done during the display of the interface. This is how accounting software usually works.
Turn on the setting and it will calculate while rounding the amounts at each step. It will look more correct to you, but it will actually be less accurate.

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

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

Less More

- Posts: 48
- Thank you received: 4
-

3 years 6 months ago -  3 years 6 months ago [\#351625](#351625) by [pat01](/forum/user/58191-pat01 "View pat01's Profile")  Replied by *[pat01](/forum/user/58191-pat01 "View pat01's Profile")* on topic *[Order page: wrong calculation of price if multiple items order](/forum/27-checkout/906370-order-page-wrong-calculation-of-price-if-multiple-items-order#351625 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : none  Hello  Before sending the order, there is an order summary shown.  If I order an item with price of 1,62 per item and I order 10 items, total price of 16,16 is shown instead of 16,20.  Here is screenshot:  It would be great if you could check this.  Thanks a lot.  Patrick")*

Hi and thanks for your reply.

> nicolas wrote: That's because you have the "round prices during calculations" setting turned off and thus the calculations are made without rounding and the rounding is only done during the display of the interface.

Now I see what causes the confusion. The price for single article is 1,6155 but even rounding is off, it still is shown rounded to 1,62:

[ ![calc&#95;2023-05-10.png](/forum/attachment/57022) ](/forum/attachment/57022 "...2023-05-10.png")

Why is it rounded even if rounding is off?
This is very confusing. Users will calculate 1,62 x 10 = 16,20 but 16.16 is shown (which is correct total not rounded).

Thanks.

- [ ![calc&#95;2023-05-10.png](/forum/attachment/57022) ](/forum/attachment/57022 "...2023-05-10.png") [ ](/forum/attachment/57022?download=1 "...2023-05-10.png")

Last edit: 3 years 6 months ago by [pat01](/forum/user/58191-pat01 "View pat01's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNjM3MC1vcmRlci1wYWdlLXdyb25nLWNhbGN1bGF0aW9uLW9mLXByaWNlLWlmLW11bHRpcGxlLWl0ZW1zLW9yZGVyP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

3 years 6 months ago -  3 years 6 months ago [\#351626](#351626) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order page: wrong calculation of price if multiple items order](/forum/27-checkout/906370-order-page-wrong-calculation-of-price-if-multiple-items-order#351626 "-- HikaShop version -- : 4.7.2 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : none  Hello  Before sending the order, there is an order summary shown.  If I order an item with price of 1,62 per item and I order 10 items, total price of 16,16 is shown instead of 16,20.  Here is screenshot:  It would be great if you could check this.  Thanks a lot.  Patrick")*

Hi,

The rounding is not off.
Rounding 1.6155 to 2 decimals will commonly result in 1.62 : [ www.mathsisfun.com/rounding-numbers.html](https://www.mathsisfun.com/rounding-numbers.html)
And 1.6155 * 10 = 16.155 which is then rounded to 16.16

As I said, if you want the calculations to appear more correct to you, you can activate the "round prices during calculations" setting in the HikaShop configuration. When you do, you'll see the total will be 16.20 like you expect. It's indeed less confusing for the user, but it's less accurate (since you entered a price of 1.6155 in your product and you purchase 10 of them, the exact amount is 16.155, so 16.16 is a more accurate result than 16.20 for an initial price of 1.6155).

Both rounding methods are valid. It's just a different approach. Here is a page presenting these two approaches:
[ pakk.io/post/vat-rounding](https://pakk.io/post/vat-rounding)
They call it the "unit method" and "line method" on that page.

Last edit: 3 years 6 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNjM3MC1vcmRlci1wYWdlLXdyb25nLWNhbGN1bGF0aW9uLW9mLXByaWNlLWlmLW11bHRpcGxlLWl0ZW1zLW9yZGVyP3RtcGw9bWFya2Rvd24=) 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.061 seconds

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