- Posts: 251
- Thank you received: 2
Discout Application
14 years 11 months ago #26447
by Nello
Discout Application was created by Nello
Hi Nicolas,
In the Main Config I set "Discout Application" "After the taxes"
In Discount I set a Bonus of 10€ applied on the orders over 50€, but the sistem still apply the discount on the price without taxes
In the Main Config I set "Discout Application" "After the taxes"
In Discount I set a Bonus of 10€ applied on the orders over 50€, but the sistem still apply the discount on the price without taxes
Please Log in or Create an account to join the conversation.
14 years 11 months ago #26468
by nicolas
Replied by nicolas on topic Re: Discout Application
Hi,
I just tried on our end but it's working fine:
I have a product costing 10€
I have a tax of 10%
I have a coupon of 10€
On the checkout I get that:
Total 10,00 €
Coupon -10,00 €
Taxes 1,00 €
Final total 1,00 €
So the tax is applied on the product. The price is then 10+1=11€. Then, the coupon is applied 11-10 = 1.
I just tried on our end but it's working fine:
I have a product costing 10€
I have a tax of 10%
I have a coupon of 10€
On the checkout I get that:
Total 10,00 €
Coupon -10,00 €
Taxes 1,00 €
Final total 1,00 €
So the tax is applied on the product. The price is then 10+1=11€. Then, the coupon is applied 11-10 = 1.
Please Log in or Create an account to join the conversation.
14 years 11 months ago #26471
by Nello
Replied by Nello on topic Re: Discout Application
Please Log in or Create an account to join the conversation.
14 years 11 months ago #26473
by nicolas
Replied by nicolas on topic Re: Discout Application
That's indeed the case. The coupons minimum value is always calculated on the total price without taxes.
You can change that by editing the file adminsitrator/components/com_hikashop/classes/discount.php and change the line :
if($coupon->discount_minimum_order>$total->prices[0]->price_value){
by:
if($coupon->discount_minimum_order>$total->prices[0]->price_value_with_tax){
You can change that by editing the file adminsitrator/components/com_hikashop/classes/discount.php and change the line :
if($coupon->discount_minimum_order>$total->prices[0]->price_value){
by:
if($coupon->discount_minimum_order>$total->prices[0]->price_value_with_tax){
Please Log in or Create an account to join the conversation.
14 years 11 months ago #26474
by Nello
Replied by Nello on topic Re: Discout Application
OK! Thank you very much!
Please Log in or Create an account to join the conversation.
Time to create page: 0.170 seconds