oblockbooks
User - One Blade
Joined: 29 Jul 2005
Posts: 65
|
My current settings add a specified amount for priority mail and express mail shipping. However, I would like to change that to having USPS calculate the priority and express mail costs. Is that possible? Here are my current shipping logic settings
$ship_method = $form_data{'Ecom_ShipTo_Method'};
if ($ship_method eq "") { # try vform, perhaps there is a value there
$use_vform = "yes";
$ship_method = $vform{'Ecom_ShipTo_Method'};
}
if ($ship_method eq "") { # set a default value
$ship_method="Regular";
}
@sc_shipping_logic = ( "|1-10.00|||3.15",
"|10.01-15.00|||3.70",
"|15.01-20.00|||4.15",
"|20.01-25.00|||4.50",
"|25.01-29.94|||4.75",
"|29.95-|||0.00");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
if ($ship_method eq "USPS Priority Mail (Priority)") {
$shipping_price = $shipping_price + 12.00;
}
if ($ship_method eq "USPS Express Mail (Express)") {
$shipping_price = $shipping_price + 30.00;
}
$ship_logic_done = 'yes';
|