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

#   Subtotal calculation in incorrect for more than one quantity of same product

##

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

Less More

- Posts: 13
- Thank you received: 0
-
-

6 years 4 months ago [\#321429](#321429) by [chetan-harrier](/forum/user/59682-chetan-harrier "View chetan-harrier's Profile")  *[Subtotal calculation in incorrect for more than one quantity of same product](/forum/27-checkout/900304-subtotal-calculation-in-incorrect-for-more-than-one-quantity-of-same-product#321429 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : Joomla&#95;3.9.19-Stable-Full&#95;Package -- PHP version -- : PHP 7.3 -- Browser(s) name and version -- : Google Chrome  Hi,  In my checkout process, When I have added more than one quantity of the same product then it is showing incorrect total price and subtotal.  Have a look at the screenshot attached.  Please share the solution on this. How can I resolve this issue?  Thanks in advance!")* was created by *[chetan-harrier](/forum/user/59682-chetan-harrier "View chetan-harrier's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : Joomla_3.9.19-Stable-Full_Package
-- PHP version -- : PHP 7.3
-- Browser(s) name and version -- : Google Chrome

Hi,

In my checkout process, When I have added more than one quantity of the same product then it is showing incorrect total price and subtotal.

Have a look at the screenshot attached.

Please share the solution on this. How can I resolve this issue?

Thanks in advance!

- [ ![rsz&#95;checkout.png](/forum/attachment/49904) ](/forum/attachment/49904 "rsz&#95;checkout.png") [ ](/forum/attachment/49904?download=1 "rsz&#95;checkout.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMDMwNC1zdWJ0b3RhbC1jYWxjdWxhdGlvbi1pbi1pbmNvcnJlY3QtZm9yLW1vcmUtdGhhbi1vbmUtcXVhbnRpdHktb2Ytc2FtZS1wcm9kdWN0P3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

6 years 4 months ago [\#321440](#321440) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Subtotal calculation in incorrect for more than one quantity of same product](/forum/27-checkout/900304-subtotal-calculation-in-incorrect-for-more-than-one-quantity-of-same-product#321440 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : Joomla&#95;3.9.19-Stable-Full&#95;Package -- PHP version -- : PHP 7.3 -- Browser(s) name and version -- : Google Chrome  Hi,  In my checkout process, When I have added more than one quantity of the same product then it is showing incorrect total price and subtotal.  Have a look at the screenshot attached.  Please share the solution on this. How can I resolve this issue?  Thanks in advance!")*

Hi

It's not really incorrect. It's just the way the rounding is done during the calculations.
If you want to change that, you can turn on the "round prices during calculations" setting in the HikaShop configuration.

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

6 years 4 months ago [\#321468](#321468) by [chetan-harrier](/forum/user/59682-chetan-harrier "View chetan-harrier's Profile")  Replied by *[chetan-harrier](/forum/user/59682-chetan-harrier "View chetan-harrier's Profile")* on topic *[Subtotal calculation in incorrect for more than one quantity of same product](/forum/27-checkout/900304-subtotal-calculation-in-incorrect-for-more-than-one-quantity-of-same-product#321468 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : Joomla&#95;3.9.19-Stable-Full&#95;Package -- PHP version -- : PHP 7.3 -- Browser(s) name and version -- : Google Chrome  Hi,  In my checkout process, When I have added more than one quantity of the same product then it is showing incorrect total price and subtotal.  Have a look at the screenshot attached.  Please share the solution on this. How can I resolve this issue?  Thanks in advance!")*

Hi,

But if I turn on "round prices during calculations" setting then GST and other calculation is showing different.

Is there any alternative to this? Please let me know.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMDMwNC1zdWJ0b3RhbC1jYWxjdWxhdGlvbi1pbi1pbmNvcnJlY3QtZm9yLW1vcmUtdGhhbi1vbmUtcXVhbnRpdHktb2Ytc2FtZS1wcm9kdWN0P3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

6 years 4 months ago [\#321499](#321499) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Subtotal calculation in incorrect for more than one quantity of same product](/forum/27-checkout/900304-subtotal-calculation-in-incorrect-for-more-than-one-quantity-of-same-product#321499 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : Joomla&#95;3.9.19-Stable-Full&#95;Package -- PHP version -- : PHP 7.3 -- Browser(s) name and version -- : Google Chrome  Hi,  In my checkout process, When I have added more than one quantity of the same product then it is showing incorrect total price and subtotal.  Have a look at the screenshot attached.  Please share the solution on this. How can I resolve this issue?  Thanks in advance!")*

Hi,

No. It's just a matter of rounding during the calculations. either you round the price and tax for each product and then multiply that rounded amount. Or you don't round and multiply (so the calculated amount can sometimes be bit bigger) and then the amount is rounded for the display.
Both calculations are correct. It's just a matter of what you (or your local tax office) prefers.

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

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