Skip to main content

Difference from invoice and cart value with coupon

More
14 years 2 months ago #58257 by nicolas
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.

More
14 years 2 months ago #59484 by Ciovo

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

More
14 years 2 months ago #59556 by nicolas
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.

More
14 years 2 months ago - 14 years 2 months ago #59617 by Eliot
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:
Code:
$discount->discount_percent_amount_calculated = $price->price_value_with_tax*$discount->discount_percent_amount_calculated_without_tax/$price->price_value;

by this line:
Code:
$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: 14 years 2 months ago by Eliot.

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

Time to create page: 0.158 seconds
Powered by Kunena Forum