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
Shipping based on STATE
Author Message
Reply with quote
Post Shipping based on STATE 
AgoraCart is fantastic but I'm stuck with this problem.
I need to charge my shipping by state. I have the logic in place and all would be done if I can find a method to recalculate the shipping when I hit the 'Verify Order' button.

I now realise the shipping is recalulated when the Verify Order button is pressed. I corrected my shipping logic and everything is fine now.

Ron

View user's profile Send private message
Reply with quote
Post RE: Shipping based on STATE 
hell-o
hmmm. is there a question in there or did you resolve it?

some stuff...
custom shipping logic is usually added and displayed thoughout the session where realtime api stuff is dependant on zip code which isn't a known factor until step two of checkout.

to change values for either system encorporated you must first choose state or zip code (depending on the method) in step one of checkout. when submitted, the charges for shipping will show a final value. if someone decides "overnight" is too expensive, for example, then they can click on make changes and choose 2day. when submitted the shipping charges in step two should reflect the lessor cost. if zip code is changed in step one then there maybe a price differencial if cost is based on zip (api thingie - usually).

btw, becareful about overnight deliveries and other really fast delivery. most orders will be legit. but stolen cc will almost alwyas use over night or next day.

regards,
dan

Reply with quote
Post Re: RE: Shipping based on STATE 
[quote="Dan"]hell-o
hmmm. is there a question in there or did you resolve it?

some stuff...
custom shipping logic is usually added and displayed thoughout the session where realtime api stuff is dependant on zip code which isn't a known factor until step two of checkout.
<snip>

Thanks, my problem is solved now. The problem was how to get the shipping to update when the postcode is entered at step two.

I only ship to Australia and I wanted to give my customers the absolute best freight deal and to do this I needed to ship by state.

I put this into the shipping logic and it worked. I'm new here and this may not be a good solution but my shipping is exactly how I want it.

#less than .5kg FREE Shipping
#basic shipping cost (eg: between .6 and 20 kg $5.45) ...
@sc_shipping_logic = ( "|||0-.5|0.0",
"|||.6-20.0|5.45",
"|||20.1-40.0|10.90",
"|||40.1-60.0|16.35",
"|||60.1-80.0|21.80",
"|||80.1-100.0|27.30",
"|||100.1-120.0|32.75",
"|||120.1-140.0|38.20");


#Shipping to NSW so add an additional 50cents per kg and $1.65 surcharge
if (($form_data{'Ecom_ShipTo_Postal_StateProv'}
) eq ("NSW")) {
$nsw=($total_measured_quantity*.5)+1.65;
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity)+$nsw;

}

if (($form_data{'Ecom_ShipTo_Postal_StateProv'}
) eq ("WA")) {
<snip more states>

Cheers
Ron

View user's profile Send private message
Reply with quote
Post  
The above example bases on matching the exact string e.g. "NSW". Is there wild card or "or" statement so I can use with post code instead?

for example, postcode 2000-2300 one rate, and 2600 another rate?

View user's profile Send private message Visit poster's website
Reply with quote
Post  
You would need to set up for each postal code, it won't identify a range.
But you can do something like:
Code:

if (($form_data{'Ecom_ShipTo_PostalCode'}
) eq ("2000||2001||2100||2200||2300")) {
$nsw=($total_measured_quantity*.5)+1.65;
$shipping_price = &calculate_shipping($temp_total,
$total_quantity, $total_measured_quantity)+$nsw;

}


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