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

  • Posts: 13
  • Thank you received: 0
3 years 9 months ago #321429

-- 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!

Attachments:

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
3 years 9 months ago #321440

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.

  • Posts: 13
  • Thank you received: 0
3 years 9 months ago #321468

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.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
3 years 9 months ago #321499

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.060 seconds
Powered by Kunena Forum