The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Ship by weight not working
Author Message
Reply with quote
Post Ship by weight not working 
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

View user's profile Send private message
Reply with quote
Post  
Argh!!! I know I had written a response to this... I must've forgotten to hit the submit button after previewing it....

Anyway, you've got 2 issues going on here.
1. You need to use weight RANGES...
2. You cannot use a percentage AND add a flat rate to it... This causes errors...
You logic should look more like:
Code:
@sc_shipping_logic = ( "Domestic|||0|0",
"Domestic|||.01-1.99|4.50",
"Domestic|||2.00-2.99|5.50",
"Domestic|||3.00-3.99|6.50",
"Domestic|||4.00-4.99|7.50",
"Domestic|||5.00-|0.00",
"Foreign|||0|0",
"Foreign|||.01-|200%");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);


Also, what version of the cart are you using???? Current version is v5.2.
If you have v4.x or earlier, it should be upgraded or the current version installed.
There are many improvements and security holes that have been plugged.

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum