updated shipping fee
This commit is contained in:
@@ -298,6 +298,13 @@ class PaypalController extends Controller
|
||||
|
||||
$array_storename = $UserModel->selectTeamStoreName($cartKey); // email subject
|
||||
|
||||
if (count($array_storename) >= 1 && count($array_storename) <= 1) {
|
||||
|
||||
if($array_storename[0]->NoShippingFee) {
|
||||
return $shippingFee = 0;
|
||||
}
|
||||
}
|
||||
|
||||
$items = $m->myCart($cartKey); // item from cart_tmp
|
||||
$getSubtotal = $m->getSubtotal($cartKey);
|
||||
// var_dump($getSubtotal);
|
||||
@@ -388,16 +395,6 @@ class PaypalController extends Controller
|
||||
return $shippingFee = 0;
|
||||
}
|
||||
|
||||
if (count($array_storename) >= 1 && count($array_storename) <= 1) {
|
||||
|
||||
if($array_storename[0]->NoShippingFee) {
|
||||
return $shippingFee = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// if(count($array_storename) > ) {
|
||||
|
||||
// }
|
||||
|
||||
return $shippingFee;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user