-
- thalbach

-
Total Posts: 2
Joined: 2011-04-06
|
Hello,
We recently upgraded from Magento 1.6.2.0 to 1.7.0.2. Our FedEx account receives a sizable discount on shipping costs, especially on Overnight and 2nd-Day shipments. We noticed that our FedEx rates now appear to be reporting un-discounted rates.
After reviewing the FedEx shipping logs and the code, the problem appears to be that, for a shipment containing a single package, FedEx only returns Package rates, not Shipment rates. And because of the way Magento parses rates, it falls back to the List price for the package.
The bug is in app\code\core\Mage\Usa\Model\Shipping\Carrier\Fedex.php Line 535:
foreach (array('RATED_ACCOUNT_SHIPMENT', 'RATED_LIST_SHIPMENT', 'RATED_LIST_PACKAGE') as $rateType) {
needs to be changed to:
foreach (array('RATED_ACCOUNT_SHIPMENT', 'RATED_ACCOUNT_PACKAGE', 'RATED_LIST_SHIPMENT', 'RATED_LIST_PACKAGE') as $rateType) {
View the bug report here
|