added free shipping for order over 150 usd
This commit is contained in:
@@ -298,6 +298,11 @@ class PaypalController extends Controller
|
||||
|
||||
$items = $m->myCart($cartKey); // item from cart_tmp
|
||||
$getSubtotal = $m->getSubtotal($cartKey);
|
||||
// var_dump($getSubtotal);
|
||||
if($getSubtotal[0]->Subtotal >= 150) {
|
||||
return $shippingFee = 0;
|
||||
}
|
||||
|
||||
$getSmallItemQty = 0;
|
||||
$getBulkyItemQty = 0;
|
||||
$getMaskItemQty = 0;
|
||||
@@ -363,6 +368,8 @@ class PaypalController extends Controller
|
||||
$shippingFee = $CAShippingfee;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return $shippingFee;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user