updated shipping fee

This commit is contained in:
Frank John Begornia
2023-09-24 16:23:39 +08:00
parent 1186d090bb
commit c8458404a9

View File

@@ -298,6 +298,13 @@ class PaypalController extends Controller
$array_storename = $UserModel->selectTeamStoreName($cartKey); // email subject $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 $items = $m->myCart($cartKey); // item from cart_tmp
$getSubtotal = $m->getSubtotal($cartKey); $getSubtotal = $m->getSubtotal($cartKey);
// var_dump($getSubtotal); // var_dump($getSubtotal);
@@ -388,16 +395,6 @@ class PaypalController extends Controller
return $shippingFee = 0; 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; return $shippingFee;
} }