Skip to main content

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

6 years 4 months ago #321429 by chetan-harrier
-- 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!

Please Log in or Create an account to join the conversation.

6 years 4 months ago #321440 by nicolas
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 or Create an account to join the conversation.

6 years 4 months ago #321468 by chetan-harrier
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 or Create an account to join the conversation.

6 years 4 months ago #321499 by nicolas
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 or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum