Moderators: Koibito, Stefko, Randy, Rosey
<input type=hidden name="SHIPPING" value="10.00">function ComputeShipping(Zone, NoQty, Wgt, TotVal, ship) {
Shipping = 6.50;
...
function ComputeShipping(Zone, NoQty, Wgt, TotVal, ship) {
Shipping = 6.50;
...
//-----------------------------------------------------------------------||
// FUNCTION: ComputeShipping ||
// PARAMETERS: Zone, Total Quantity, Weight, Total Value, preset amount ||
// RETURNS: Shipping Cost ||
// PURPOSE: Compute shipping cost total Qty and shipping zone ||
//-----------------------------------------------------------------------||
function ComputeShipping(Zone, NoQty, Wgt, TotVal, ship) {
Shipping = 6.50;
// LocationValue = GetCookie("ZoneSelected");
// ------------------- Calculate shipping by total order weight ------------||
// ------------------- fWeight is in lbs or Kilograms ----------------------||
// - between this weight and this , shipping costs this ----------------||
if ( Wgt > 0.00 && Wgt <= 0.50 ){ Shipping += 3.30 };
if ( Wgt > 0.50 && Wgt <= 1.00 ){ Shipping += 4.40 };
if ( Wgt > 1.00 && Wgt <= 2.00 ){ Shipping += 5.50 };
if ( Wgt > 2.00 && Wgt <= 5.00 ){ Shipping += 6.60 };
if ( Wgt > 5.00 && Wgt <= 10.00 ){ Shipping += 7.70 };
if ( Wgt > 10.00 && Wgt <= 15.00 ){ Shipping += 8.80 };
if ( Wgt > 15.00 && Wgt <= 20.00 ){ Shipping += 10.00 };
if ( Wgt > 20.00 && Wgt <= 25.00 ){ Shipping += 11.10 };
if ( Wgt > 25.00 && Wgt <= 30.00 ){ Shipping += 12.20 };
if ( Wgt > 30.00 ){ Shipping += 15.50; }
/*
if (LocationValue != Zone) {
SetCookie("ZoneSelected", Zone, null, "/");
location.href=location.href;
}
var ItemQty = parseInt(NoQty);
if (LocationValue == 0 ){
var ship = (ItemQty * 5.00);
return (ship);
}
if (LocationValue == 1 ){
var ship = (ItemQty * 7.00);
return (ship);
}
if (LocationValue == 99 ) return 0.00;
*/
return Shipping;
}
Shipping += 0;Users browsing this forum: No registered users and 1 guest