updated shipping fee
This commit is contained in:
@@ -336,17 +336,16 @@ class PaypalController extends Controller
|
||||
}
|
||||
}
|
||||
// var_dump($item->ShippingCostId);
|
||||
if ($item->ShippingCostId == 1) {
|
||||
|
||||
$getSmallItemQty += $item->Quantity;
|
||||
} else if ($item->ShippingCostId == 2) {
|
||||
$getBulkyItemQty += $item->Quantity;
|
||||
} else if ($item->ShippingCostId == 3) {
|
||||
$getMaskItemQty += $item->Quantity;
|
||||
} else if ($item->ShippingCostId == 4) {
|
||||
$getDGSItemQty += $item->Quantity;
|
||||
}
|
||||
|
||||
// if ($item->ShippingCostId == 1) {
|
||||
// $getSmallItemQty += $item->Quantity;
|
||||
// } else if ($item->ShippingCostId == 2) {
|
||||
// $getBulkyItemQty += $item->Quantity;
|
||||
// } else if ($item->ShippingCostId == 3) {
|
||||
// $getMaskItemQty += $item->Quantity;
|
||||
// } else if ($item->ShippingCostId == 4) {
|
||||
// $getDGSItemQty += $item->Quantity;
|
||||
// }
|
||||
$getSmallItemQty += $item->Quantity;
|
||||
$CAShippingfee += $item->Quantity; // for canada
|
||||
}
|
||||
|
||||
@@ -372,6 +371,7 @@ class PaypalController extends Controller
|
||||
$getBulkyItemQty = ceil($getBulkyItemQty / 1) * 8;
|
||||
$getMaskItemQty = ceil($getMaskItemQty / 25) * 8;
|
||||
$getDGSItemQty = ceil($getDGSItemQty / 4) * 5;
|
||||
|
||||
$shippingFee = $getSmallItemQty + $getBulkyItemQty + $getMaskItemQty + $getDGSItemQty;
|
||||
|
||||
if ($countryCode == "CA") {
|
||||
|
||||
Reference in New Issue
Block a user