Place Order

«back



“;

// 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:

“;

echo “

“;

if ($totalJars >= 6) {
$totalDiscount = (float)$totalJars * 0.0;
echo “

“;
}

$totalItemPrice = $totalItemPrice + $shippingFee;
$totalItemPrice = $totalItemPrice – $totalDiscount;

global $wpsc_cart;
$coupon_discount = (float)$wpsc_cart->coupons_amount;
if ($coupon_discount > 0) {
$totalItemPrice = $totalItemPrice – $coupon_discount;
echo “

“;
}

echo “

“;
echo “

“;

?>

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).”



Place Order »