updated shipping fee
This commit is contained in:
@@ -336,17 +336,16 @@ class PaypalController extends Controller
|
||||
}
|
||||
}
|
||||
// var_dump($item->ShippingCostId);
|
||||
if ($item->ShippingCostId == 1) {
|
||||
|
||||
// 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;
|
||||
} else if ($item->ShippingCostId == 2) {
|
||||
$getBulkyItemQty += $item->Quantity;
|
||||
} else if ($item->ShippingCostId == 3) {
|
||||
$getMaskItemQty += $item->Quantity;
|
||||
} else if ($item->ShippingCostId == 4) {
|
||||
$getDGSItemQty += $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") {
|
||||
|
||||
@@ -686,8 +686,8 @@
|
||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="content-block">
|
||||
<span class="apple-link">Copyright © 2019 <a
|
||||
href="https://crewsportswear.com">crewsportswear.com</a>. All rights
|
||||
<span class="apple-link">Copyright © {{ date('Y') }} <a
|
||||
href="https://merchbay.com">merchbay.com</a>. All rights
|
||||
reserved.</span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user