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
I need Custom Shipping Logic based on State & Weight
Author Message
Reply with quote
Post I need Custom Shipping Logic based on State & Weight 
I have a potential customer who wants a shopping cart built in AgoraCart, it comes with his hosting.
Please be patient with me. I have never used AgoraCart
My customer is shipping some heavy equipment.
He wants to use a Flat Rate Shipping Charge per State based on the Weight of the item.

I contacted AgoraCart and they stated it is very flexible.
They said that functionality to ship by weight or charge by item is already there.
However, if it's mandated by say state, I need to add some conditionals to the custom shipping logic (in the online shipping manager areas) that will set rates upon the state selected on the order form. They said it's fairly easy, but must know how to do so or how to ask for help in the forums. They also said it will be easy, but a little intimidating at first (basically taking some sample code and cut and pasting it 50 times for 50 states and changing the rate and state name).

Ok, so here I am. HELP!

I need to get back to him with a quote, but I don't know how long it would take to get the shipping to work properly.

If anyone can help, I would greatly appreciate it.
Confused

View user's profile Send private message
Reply with quote
Post  
Easy...
You need to set it up something like we do for custom tax logic...

IE:
Code:
$ship_state = "Ecom_ShipTo_Postal_StateProv";

if ($ship_state =~ /NY/i) {
@sc_shipping_logic = (
"usps|||-9.99|5.00",
"usps|||10.00-11.99|10.00",
"usps|||12.00-|20%");
}

if ($ship_state =~ /OH/i) {
@sc_shipping_logic = (
"usps|||-9.99|7.00",
"usps|||10.00-11.99|12.00",
"usps|||12.00-|25%");
}

$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
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