- Posts: 86256
- Thank you received: 14236
Difference from invoice and cart value with coupon
14 years 2 months ago #58257
by nicolas
Replied by nicolas on topic Re: Difference from invoice and cart value with coupon
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.
14 years 2 months ago #59484
by Ciovo
Replied by Ciovo on topic Re: Difference from invoice and cart value with coupon
Any news?
Please Log in or Create an account to join the conversation.
14 years 2 months ago #59556
by nicolas
Replied by nicolas on topic Re: Difference from invoice and cart value with coupon
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.
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.
14 years 2 months ago - 14 years 2 months ago #59617
by Eliot
Replied by Eliot on topic Re: Difference from invoice and cart value with coupon
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:
by this line:
And it should works
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