
Shipping is not calculating at all. Had shipping working fine in v4 but upgraded and ???
This is my logic:
if ($ship_go eq "go") {
if ($vform_Ecom_ShipTo_Method eq 'Parcel') {
@sc_shipping_logic = |1-10|||4.50",
"|10.01-20|||5.50",
"|20.01-35|||6.50",
"|35.01-50|||7.50",
"|50.01-75|||8.50",
"|75.01-100|||9.50",
"|100.01-|||10.50");
}
if ($vform_Ecom_ShipTo_Method eq 'Priority') {
@sc_shipping_logic = |0-10|||7",
"|10.01-20|||8",
"|20.01-35|||9",
"|35.01-50|||10",
"|50.01-75|||11",
"|75.01-100|||12",
"|100.01-|||13");
}
if ($vform_Ecom_ShipTo_Method eq 'GNDRES') {
@sc_shipping_logic = "|0-20|||9",
"|20.01-35|||10",
"|35.01-50|||11",
"|50.01-75|||12",
"|75.01-100|||13",
"|100.01-|||15");
}
if ($vform_Ecom_ShipTo_Method eq 'CanMex') {
@sc_shipping_logic = |0-10|||11.50",
"|10.01-20|||12.50",
"|20.01-35|||13.50",
"|35.01-50|||14.50",
"|50.01-75|||15.50",
"|75.01-10|||16.50",
"|100.01-|||20");
}
if ($vform_Ecom_ShipTo_Method eq 'Westeurope') {
@sc_shipping_logic = |0-10|||12.50",
"|10.01-20|||14.50",
"|20.01-35|||16.50",
"|35.01-50|||18.50",
"|50.01-75|||21.50",
"|75.01-10|||25.50",
"|100.01-175|||28",
"|175.01-|||34");
}
if ($vform_Ecom_ShipTo_Method eq 'International') {
@sc_shipping_logic = |0-10|||13.50",
"|10.01-20|||15.50",
"|20.01-35|||17.50",
"|35.01-50|||20.50",
"|50.01-75|||23.50",
"|75.01-10|||27.50",
"|100.01-175|||33",
"|175.01-|||38");
}
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);
$shipping_logic_done = "yes";
}
in the order form:
<!--PASTE SHIPPING METHODS FROM SHIPPING MANAGER BELOW THIS-->
<input type="hidden" NAME="Ecom_Ship" value="go">
<SELECT NAME=Ecom_ShipTo_Method>
<OPTION value="$vform_Ecom_ShipTo_Method"><!--agorascript-pre
if ("$vform_Ecom_ShipTo_Method" eq "") {
return " Select Shipping Method ";
} else {
return "$vform_Ecom_ShipTo_Method";
}
--></OPTION>
<OPTION VALUE="Parcel">
US Mail (Domestic only)</option>
<OPTION VALUE="Priority">
US Priority Mail (Domestic only)</option>
<OPTION VALUE="GNDRES">
UPS Ground (Domestic only)</option>
<OPTION VALUE="CanMex">
Canada or Mexico</option>
<OPTION VALUE="Westeurope">
Western Europe</option>
<OPTION VALUE="International">
International - Other</option>
</SELECT>
<!--PASTE SHIPPING METHODS FROM SHIPPING MANAGER ABOVE THIS-->
Am I cracked? There has to be some dumb mistake somewhere but I just can't look at it anymore.
The calculate shipping loop is set to "2". store URL http://tseen.lunarservers.com/~salta4/store5/agora.cgi
I am hoping to bring this up in time for Labor Day; still have a few little things to do (secure header and footer, few other clean-up issues) but it's been 9 months in the making. I've been putting this shipping issue off, and off, and off....