updated shipping fee

This commit is contained in:
franknstayn
2022-02-24 21:20:36 +08:00
parent fe12960c00
commit 6f75a25b10
2 changed files with 13 additions and 13 deletions

View File

@@ -336,17 +336,16 @@ class PaypalController extends Controller
} }
} }
// var_dump($item->ShippingCostId); // var_dump($item->ShippingCostId);
if ($item->ShippingCostId == 1) { // if ($item->ShippingCostId == 1) {
// $getSmallItemQty += $item->Quantity;
$getSmallItemQty += $item->Quantity; // } else if ($item->ShippingCostId == 2) {
} else if ($item->ShippingCostId == 2) { // $getBulkyItemQty += $item->Quantity;
$getBulkyItemQty += $item->Quantity; // } else if ($item->ShippingCostId == 3) {
} else if ($item->ShippingCostId == 3) { // $getMaskItemQty += $item->Quantity;
$getMaskItemQty += $item->Quantity; // } else if ($item->ShippingCostId == 4) {
} else if ($item->ShippingCostId == 4) { // $getDGSItemQty += $item->Quantity;
$getDGSItemQty += $item->Quantity; // }
} $getSmallItemQty += $item->Quantity;
$CAShippingfee += $item->Quantity; // for canada $CAShippingfee += $item->Quantity; // for canada
} }
@@ -372,6 +371,7 @@ class PaypalController extends Controller
$getBulkyItemQty = ceil($getBulkyItemQty / 1) * 8; $getBulkyItemQty = ceil($getBulkyItemQty / 1) * 8;
$getMaskItemQty = ceil($getMaskItemQty / 25) * 8; $getMaskItemQty = ceil($getMaskItemQty / 25) * 8;
$getDGSItemQty = ceil($getDGSItemQty / 4) * 5; $getDGSItemQty = ceil($getDGSItemQty / 4) * 5;
$shippingFee = $getSmallItemQty + $getBulkyItemQty + $getMaskItemQty + $getDGSItemQty; $shippingFee = $getSmallItemQty + $getBulkyItemQty + $getMaskItemQty + $getDGSItemQty;
if ($countryCode == "CA") { if ($countryCode == "CA") {

View File

@@ -686,8 +686,8 @@
<table role="presentation" border="0" cellpadding="0" cellspacing="0"> <table role="presentation" border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td class="content-block"> <td class="content-block">
<span class="apple-link">Copyright &copy 2019 <a <span class="apple-link">Copyright &copy {{ date('Y') }} <a
href="https://crewsportswear.com">crewsportswear.com</a>. All rights href="https://merchbay.com">merchbay.com</a>. All rights
reserved.</span> reserved.</span>
</td> </td>
</tr> </tr>