Difference from invoice and cart value with coupon

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 3 months ago #58257

I didn't had the time to look at the problem yet. I'll look at that this weekend.

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

  • Posts: 19
  • Thank you received: 0
12 years 3 months ago #59484

Any news?

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 3 months ago #59556

We have been delayed on that but we have been able to reproduce it on our end.
We'll do some more tests and fix it during this week and the fix will be available in next version of HikaShop which should be out in one or two weeks.

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

  • Posts: 2334
  • Thank you received: 403
12 years 3 months ago #59617

Hi,

You were right and we find and error in the discount calculation for this case.
If you want to fix the bug you have to modify the line 1562 of the file administrator/components/com_hikashop/classes/currency.php

Just behind the if($discount_before_tax)replace this line:

$discount->discount_percent_amount_calculated = $price->price_value_with_tax*$discount->discount_percent_amount_calculated_without_tax/$price->price_value;

by this line:
$discount->discount_percent_amount_calculated = $price->price_value_with_tax*$discount->discount_percent_amount_calculated_without_tax/$price->price_value_with_tax;

And it should works :)

Last edit: 12 years 3 months ago by Eliot.

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

Time to create page: 0.069 seconds
Powered by Kunena Forum