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 Help
Author Message
Reply with quote
Post Ship by Weight Help 
Ok, I'm trying to wrap my head around the shipping logic for this but it's just not sinking in and the Shipping section of the Online Manuals are nowhere to be found. Any help would be greatly appreciated.

My client wants to ship items by the following rates and they will not be using the SBW Shipping module:

USPS - First Class with delivery receipt.

1-2 items (0-.99 lbs) = $2.19

3-4 items (1-1.99 lbs) = $3.15

USPS - Priority Mail with delivery receipt

1-4 items (0-1.99 lbs) = $4.55

UPS

5-8 items (2-2.99 lbs) = Ground $7.07 2 day - $17.40 Overnight $40.37

9-16 items (3-3.99 lbs) = Ground $7.48 2nd day - $19.95 Overnight $44.08

17-24 items (4-4.99 lbs) = Ground $7.80 2nd day $22.27 Overnight $47.68

View user's profile Send private message
Reply with quote
Post  
Shipping by weight, the shipping logic would look something like:
Code:
@sc_shipping_logic = ( "|||-.99|2.19",
                       "First Class|||1-1.99|3.15",
                       "Priority Mail|||1-1.99|4.55",
                       "UPS Ground|||2-2.99|7.07",
                       "UPS Overnight|||2-2.99|40.37");
#
$shipping_price = &calculate_shipping($temp_total,
                  $total_quantity, $total_measured_quantity);


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
Reply with quote
Post  
Thank you. That was about what I came up with after digging deep in the forum, however, the cart is not calculating the shipping charges. Neither Step One or Step Two show any shipping.

I have a Shipping Weight of .49 lbs. set for the product.

This is how I have the Shipping Setting set:

Use the custom shipping logic? yes

If using Custom Logic, is shipping measured by weight? yes

Use the SBW (Ship By Weight for FedEx/UPS/USPS) module? no

Is there something else that I'm overlooking?

Also, if the Method of Shipping is set depending on the weight will the cart decide this and not give the "Method" menu option in Step One?

Thanks.

View user's profile Send private message
Reply with quote
Post  
What is the URL to your store?


_________________
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
Reply with quote
Post  
Here is the url to my store:

http://www.tackimac.com/shoppingcart/agora.cgi?xm=on&product=HOCKEY

It's strange... at one point yesterday the shipping unexplanedly started working just fine and then after I made some changes to the shipping logic it stopped displaying the shipping in Steps 1 and 2 again. I changed it back to exactly how I had it before and it still didn't work.

This is the Shipping Logic I am using:

Quote:
@sc_shipping_logic = ( "First Class|||-.99|2.19",
"First Class|||1-1.99|3.15",
"Priority Mail|||1-1.99|4.55",
"UPS Ground|||2-2.99|7.07",
"UPS Ground|||3-3.99|7.48",
"UPS Ground|||4-4.99|7.07",
"UPS 2-Day|||2-2.99|17.40");
"UPS 2-Day|||3-3.99|19.95");
"UPS 2-Day|||4-4.99|22.27");
"UPS Overnight|||2-2.99|40.37");
"UPS Overnight|||3-3.99|44.08");
"UPS Overnight|||4-4.99|47.68");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);


View user's profile Send private message
Reply with quote
Post  
You have semi-colons and parentthesis after some of the logic, which is incorrect.
It should look like:
Code:
@sc_shipping_logic = ( "First Class|||-.99|2.19",
"First Class|||1-1.99|3.15",
"Priority Mail|||1-1.99|4.55",
"UPS Ground|||2-2.99|7.07",
"UPS Ground|||3-3.99|7.48",
"UPS Ground|||4-4.99|7.07",
"UPS 2-Day|||2-2.99|17.40",
"UPS 2-Day|||3-3.99|19.95",
"UPS 2-Day|||4-4.99|22.27",
"UPS Overnight|||2-2.99|40.37",
"UPS Overnight|||3-3.99|44.08",
"UPS Overnight|||4-4.99|47.68");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);


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
Reply with quote
Post  
scottcrew wrote:
You have semi-colons and parentthesis after some of the logic, which is incorrect.
It should look like:
Code:
@sc_shipping_logic = ( "First Class|||-.99|2.19",
"First Class|||1-1.99|3.15",
"Priority Mail|||1-1.99|4.55",
"UPS Ground|||2-2.99|7.07",
"UPS Ground|||3-3.99|7.48",
"UPS Ground|||4-4.99|7.07",
"UPS 2-Day|||2-2.99|17.40",
"UPS 2-Day|||3-3.99|19.95",
"UPS 2-Day|||4-4.99|22.27",
"UPS Overnight|||2-2.99|40.37",
"UPS Overnight|||3-3.99|44.08",
"UPS Overnight|||4-4.99|47.68");
#
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity);


HTH!


Thanks! I didn't catch that. I had to remove the "First Class" in the first line of logic (which I had improperly added) to get this to work. But this only works for up to 1 lb. after that it breaks and doesn't calculate shipping. I figured since there are more that one lines for "1-1.99 lbs" (due to different shipping options) that's what's breaking it. Does it need some sort of "if/then" thing?

I don't know any perl and don't have time to learn up on it for this one job. I really appreciate any help on getting this to work the way my client wants it. Please see the first post for the shipping options.

Thanks!

View user's profile Send private message
Reply with quote
Post  
What do you mean by "breaks and doesn't calculate shipping"?
What do you get in the cart?
Make sure that your shipping logic method names are EXACTLY like what is rendered in the source code of the order form file.

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