 |
Page 1 of 1
|
Author |
Message |
crisper
Newbie - One Blade
Joined: 20 Jan 2006
Posts: 12
|
 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
|
Sat Aug 05, 06 11:52 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
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
|
Mon Aug 07, 06 7:15 am |
 |
 |
crisper
Newbie - One Blade
Joined: 20 Jan 2006
Posts: 12
|
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.
|
Mon Aug 07, 06 5:08 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
What is the URL to your store?
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Aug 09, 06 11:47 am |
 |
 |
crisper
Newbie - One Blade
Joined: 20 Jan 2006
Posts: 12
|
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);
|
Wed Aug 09, 06 5:27 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
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
|
Fri Aug 11, 06 5:41 am |
 |
 |
crisper
Newbie - One Blade
Joined: 20 Jan 2006
Posts: 12
|
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!
|
Fri Aug 11, 06 8:42 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
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
|
Sat Aug 12, 06 1:53 pm |
 |
 |
|
The time now is Tue Apr 29, 25 3:24 pm | All times are GMT - 7 Hours
|
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
|
|
|