Coupons and Shipping
- brainforge
-
Topic Author
- Offline
Less
More
15 years 3 months ago #19018
by brainforge
Coupons and Shipping was created by brainforge
Product value of £6
Coupon worth £10
Shipping £3
Total order value at checkout = £0.
Should it be £3 - i.e. the shipping value?
Coupon worth £10
Shipping £3
Total order value at checkout = £0.
Should it be £3 - i.e. the shipping value?
Please Log in or Create an account to join the conversation.
15 years 3 months ago #19033
by nicolas
Replied by nicolas on topic Re: Coupons and Shipping
Indeed. It seems more logical to keep the shipping fee. Please try to add the lines:
if(bccomp($cart->full_total->prices[0]->price_value_with_tax,0,5)<=0){
$cart->full_total->prices[0]->price_value_with_tax = 0;
$cart->full_total->prices[0]->price_value = 0;
}
in the file administrator/components/com_hikashop/classes/cart.php just before:
$shipping_id = $app->getUserState( HIKASHOP_COMPONENT.'.shipping_id');
if(bccomp($cart->full_total->prices[0]->price_value_with_tax,0,5)<=0){
$cart->full_total->prices[0]->price_value_with_tax = 0;
$cart->full_total->prices[0]->price_value = 0;
}
in the file administrator/components/com_hikashop/classes/cart.php just before:
$shipping_id = $app->getUserState( HIKASHOP_COMPONENT.'.shipping_id');
Please Log in or Create an account to join the conversation.
- brainforge
-
Topic Author
- Offline
15 years 3 months ago #19101
by brainforge
Replied by brainforge on topic Re: Coupons and Shipping
Works great thanks - another one for next release please.
Please Log in or Create an account to join the conversation.
15 years 3 months ago #19113
by nicolas
Replied by nicolas on topic Re: Coupons and Shipping
Yes.
Please Log in or Create an account to join the conversation.
Time to create page: 0.143 seconds