Alright guys, I think I have solved a problem that has been haunting some of us for quite a while.
I was looking in the fedex.php file in catalog/model/shipping.
Here is what I noticed to help me solve the issue with the prices being off.
So there were two issues that were wrong in the file :
The first being the package dimensions being wrong for one package they were set to 20, 20, 10 for one package instead of 10, 10, 3 for it to quote the same rates that you are seeing in your rates on fedex.com for packages that you don't consider oversized.
That can be changed by changing this code :
Code: Select all
$xml .= ' <ns1:Length>20</ns1:Length>';
$xml .= ' <ns1:Width>20</ns1:Width>';
$xml .= ' <ns1:Height>10</ns1:Height>';
to
Code: Select all
$xml .= ' <ns1:Length>10</ns1:Length>';
$xml .= ' <ns1:Width>10</ns1:Width>';
$xml .= ' <ns1:Height>3</ns1:Height>';
Which will make your Home Delivery, Ground, Standard & Priority Overnight, 2-Day and Express (3-Day) Shipping Prices appear the same that you see when you run a rate quote for your account on Fedex.com.
The other issue was with the Fedex Home Delivery ( Residential) and Fedex Ground (Business Addresses). It would always show Fedex Ground no matter if the company field was filled out or not.
You can fix that by changing :
Code: Select all
$xml .= ' <ns1:Residential>' . ($address['company'] ? 'true' : 'false') . '</ns1:Residential>';
to
Code: Select all
$xml .= ' <ns1:Residential>' . ($address['company'] ? 'false' : 'true) . '</ns1:Residential>';
Now that will quote the Fedex Home Delivery Option unless the Company Field is filled when they are checking out.
Ultimately if you want to disable the Fedex Ground option from displaying just in case someone types something in that box and it is not a business address you should be able to set both values above to true and then just change Home Delivery in the corresponding Language file to Fedex Ground to make it appear as the regular ground option for Fedex.
Ive uploaded the file that I am using that works in version 1.5.4.1. You should be able to apply the changes above to the other fedex file in the versions that had that module available and amend the code changes above
I have also attached the file that I am using in catalog/model/shipping that I can confirm that works in version 1.5.4.1 to display the correct prices.