mpiscopo Posted June 25, 2004 Posted June 25, 2004 I have many people buying from me who are running a home business, thus they enter a business name for their shipping address. FedEx quotes them the Ground rate, then I get charged later for the difference between Ground and Home. Most other sites I have purchased from ask you if you are shipping to a residential address in the form of a check box. I would much rather do this than have the FedEx contribution make the assumption that since there is a business name that it should be shipped ground. Has anyone addressed this problem for their site? Thanks, Mark Quote
spoot Posted June 25, 2004 Posted June 25, 2004 I'm trying to think of the best way to do this. The part of fedex1.php that needs to be edited starts at line 362: if ($order->delivery['company'] == '' && MODULE_SHIPPING_FEDEX1_RESIDENTIAL == 0) { $data .= '440,"Y"'; // Residential address }else { $data .= '440,"N"'; // Business address, use if adding a residential surcharge } Where it tests for a company (if ($order->delivery['company']), it should be testing for whether or not your checkbox is checked (something like, if ($HTTP_POST_VARS['residential'] == 1). I don't understand php classes enough to know how to get that variable into the fedex1.php class... maybe you need to add another variable to the class, and just check for that variable? so maybe this isn't much help anyway. But that's where I'd start, that line 362. I hope this helps in some way... Michael Quote
mpiscopo Posted June 25, 2004 Author Posted June 25, 2004 Thanks Michael, I'll play with this over the weekend. Appriciate your help. Mark Quote
Irin Posted August 1, 2006 Posted August 1, 2006 Did anyone figure this one out? If anyone still needs a fix, check on "Fedex Rates for Residential or Commercial Addresses" in contributions area. It's based on "Residential Commercial Shipping Address" contribution by Soundman01. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.