Hi all,
I am trying to implement ship by weight, without UPS or USPS, exactly like this post - http://www.agoraguide.com/faq/viewtopic.php?t=5220
However, I can't seem to get it working. Am I missing something? Here's my shipping logic:
@sc_shipping_logic = ( "Domestic|||0|0",
"Domestic|||1|4.50",
"Domestic|||2|5.50",
"Domestic|||3|6.50",
"Domestic|||4|7.50",
"Domestic|||5-|0.00",
"Foreign|||0|0",
"Foreign|||1-|200%+5.50");
Here's the shipping settings in agora_user_lib.pl:
#:#:#: start SHIPPING settings
$sc_calculate_shipping_loop = "1";
$sc_handling_charge = "0";
$sc_add_handling_cost_if_shipping_is_zero = "no";
$sc_use_custom_shipping_logic = "yes";
$sc_use_SBW2 = "yes";
$sc_custom_shipping_logic = qq`\# In this example Shipping Cost is based on the total quantity.
\# \$4.50 for the first CD ordered and \$1.00 for each additional CD.
\# Free domestic shipping for five or more units to the same US address.
\@sc_shipping_logic = ( \"Domestic|||0|0\",
\"Domestic|||1|4.50\",
\"Domestic|||2|5.50\",
\"Domestic|||3|6.50\",
\"Domestic|||4|7.50\",
\"Domestic|||5-|0.00\",
\"Foreign|||0|0\",
\"Foreign|||1-|200\%\+5.50\");
\#
\$shipping_price = \&calculate_shipping(\$temp_total,
\$total_quantity, \$total_measured_quantity);
\#
\$shipping_logic_done = \"yes\";
`;
#
$sc_use_SBW = "yes";
$sc_use_FEDEX = "no";
$sc_use_UPS = "no";
$sc_use_USPS = "no";
$sc_use_socket = "http-lib";
$sc_FEDEX_max_wt = "0";
$sc_FEDEX_Origin_ZIP = "0";
$sc_UPS_max_wt = "0";
$sc_UPS_Origin_ZIP = "0";
$sc_UPS_RateChart = "Regular Daily Pickup";
$sc_USPS_max_wt = "0";
$sc_USPS_Origin_ZIP = "0";
$sc_USPS_use_API = "";
$sc_USPS_userid = "0";
$sc_USPS_password = "0";
$sc_USPS_host_URL = "0";
#:#:#: end SHIPPING settings
Here is a sample product, showing where I entered shipping weight of 2lbs [Shipping Price (Std) or
Shipping Wt (lbs -SBW module)]:
y-palmgp-5|CD|32.00|Spa Series 2 CD Gift Pack|<IMG SRC="agora.cgi?picserve=/gift_packs/Gift-Pack-Small-Spa2_140.gif" BORDER=0>|<font size=1><p><b>Island Images</b><br><b>Refresh</b></p></font>|2||128||||%%OPTION%%blank.html