close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fedex residential shipping

Thread began 7/30/2013 6:42 pm by AlaskaTom | Last modified 5/12/2017 12:03 pm by Ray Borduin | 321 views | 7 replies |

AlaskaTomBeta Tester

Fedex residential shipping

I am noticing fedex shipping quotes are low. Apparently Fedex charges an additional fee for shipping to a residential address.
The api allows you to specify a ship to address as residentail, but when I set this in eCart, it has no effect.
$Shipping_PackageArray[$Shipping_PackageIndex]["RESIDENTIALDELIVERY"] = "";
I tried setting this to 1 or true to no effect.
In searching through the code for RESIDENTIALDELIVERY it is mentioned several times in WA-eCart_FedEx_PHP.php, but the code is all commented out.
Do you have a workaround for me to have fedex calculate for residential addresses?

Sign in to reply to this post

Jason ByrnesWebAssist

in the WA-eCart_FedEx_PHP.php file, look for:


$FedEx_XML .= "<v10:Residential>0</v10:Residential>";



and change it to:
$FedEx_XML .= "<v10:Residential>1</v10:Residential>";

Sign in to reply to this post

AlaskaTomBeta Tester

OK, found a workaround.
If you make the change Jason suggested above, you must also set the fedex service to GROUNDHOMEDELIVERY or else it throws an error.

Also, please note there are 3 instances of $FedEx_XML .= "<v10:Residential>0</v10:Residential>"; in that file, 2 of which have to do with the shipper address, which you dont want to change.

However, if you give the user a choice to choose residential or business address, the logic is easy to set fedexService to either GROUNDHOMEDELIVERY or FEDEXGROUND, but there is no easy way to change the logic in WA-eCart_FedEx_PHP.php to be either residential (1) or not (0).

Any chance of an update here? Or at least incorporating that into eCart 6?

Thanks!
Tom

Sign in to reply to this post

Jason ByrnesWebAssist

I have logged this as a bug in our system so the engineers can look into it.

Sign in to reply to this post

Justin@AdventDesign

FedEx residential only applies to ground?

We've got the FedEx shipping up and working properly, however our client is requesting we give the residential option. My concern here is the options with WebAssist don't seem to coincide with what FedEx is telling. According to FedEx, we need to pass a residential flag of 'true' for residential shipping. All well and good, but on the WebAssist side, that appears to only apply to Ground deliveries. According to FedEx support, this surcharge applies to all shipping methods, not just ground.

Can anyone offer further enlightenment here?

Sign in to reply to this post

Ray BorduinWebAssist

I would just hard code the flag in the fedex include file.

They probably want to update the recipient address... that is on line 120. You can change:
$FedEx_XML .= "<v10:Residential>0</v10:Residential>";

to:
$FedEx_XML .= "<v10:Residential>1</v10:Residential>";

There are actually three places that could be updated. The Shipper Address, the Recipient Address, and the Origin Address. They are on lines 106, 120 and 134 respectively and can be updated similarly where necessary.

Sign in to reply to this post

Justin@AdventDesign

The client is actually requesting their customers be able to select residential vs commercial, rather than hard coding it one way or the other. So we'd have to get it to some how automatically update that data.

If changed where you indicate, does that pass that variable for ALL shipping methods (overnight, 2-day, etc.) and not just ground delivery? David Buchholz, who is helping me with this site, seemed to think the webassist code was only passing that residential flag for ground delivery, which seems to conflict with what I'm hearing from FedEx.

Sign in to reply to this post

Ray BorduinWebAssist

Updating those lines will update it for ALL types. By default we only automatically set the Shipper to residential if you are using ground, but updating it in the file would change it for everything.

You could save a session variable based on the user selection and then use that in the xml instead of hard coding it.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...