“;
// if a jar, increment jar counter
if ($itemId == “245”) {
$totalJars = $totalJars + $itemQty;
} elseif ($itemId == “243”) {
$totalJars = $totalJars + $itemQty;
} elseif ($itemId == “241”) {
$totalJars = $totalJars + $itemQty;
}
$totalItemPrice = $totalItemPrice + ($itemPrice * $itemQty);
?>
getStateOrProvinceCode();
$city = $shippingObject->GetCity();
$shippingFee = 5.0;
if (strtolower($city) != strtolower(“new york”)) {
$zoneAndTime = getShippingZoneAndTime($state);
// look up the fee
$shippingFee = getShippingRate($zoneAndTime[“zone”]);
}
if (!is_double($shippingFee)) {
echo $shippingFee.”
“;
} else {
?>
Please confirm the following:
Price Sub-Total: | “.money_format(‘%n’, $totalItemPrice).” |
Shipping: | “.money_format(‘%n’, $shippingFee).” |
Discount: | “.money_format(‘%n’, $totalDiscount).” |
Discount from Coupon: | “.money_format(‘%n’, $coupon_discount).” |
Price Sub-Total: | “.money_format(‘%n’, $totalItemPrice).” |