Post by raybark » Sun Jan 11, 2015 10:38 pm

As most of my customers have products delivered to residential addresses, I have the module set to return Ground Home Delivery and 2-day rates. Only the 2-day rate is returned from the server and displayed.

If I add the Ground option, both it and the 2-day rates are returned from the FedEx server.

That makes me think that the Home Delivery rate request is not be presented properly.

Can anyone recommend a fix?

New member

Posts

Joined
Tue Sep 03, 2013 9:23 pm

Post by Qphoria » Wed Jan 14, 2015 10:09 pm

You are correct. The code is here:

Code: Select all

<ns1:Residential>' . ($address['company'] ? 'true' : 'false') . '</ns1:Residential>';
It is setting residential if there IS a company field, which is the opposite of what it should be doing
Add a ! in front of the $address to look like this:

Code: Select all

<ns1:Residential>' . (!$address['company'] ? 'true' : 'false') . '</ns1:Residential>';
That should fix it

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by raybark » Mon Jan 19, 2015 12:10 am

Works great. Thanks, Qphoria

New member

Posts

Joined
Tue Sep 03, 2013 9:23 pm
Who is online

Users browsing this forum: No registered users and 7 guests