-
- fishnut

-
Total Posts: 45
Joined: 2008-11-15
|
Can Magento FedEx Rates switch between retail list rates and account rates? We have soap and the FedEx api working to pull rates on our website, however I noticed that it is pulling the retail rates and we want it to pull our account rates which are cheaper.
Does anyone know how to switch the fedex rates to be our account rates? Thanks a lot
|
| |
-
- Posted: February 4 2012
-
| top
-
|
 |
 |
 |
|
|
-
- ischock

-
Total Posts: 4
Joined: 2011-10-06
|
You have to rewrite the Fedex shipping implementation in class Mage_Usa_Model_Shipping_Carrier_Fedex.
It has a function _getQuotes() which defines the web service request.
The parameter RateRequestTypes is by default set to LIST, change this value to ACCOUNT.
|
| |
-
- Posted: April 11 2012
-
| top
| # 1
-
|
 |
 |
 |
|
|
-
- fastspud

-
Total Posts: 1
Joined: 2011-07-25
|
we have tried this with our site and found that it does not work unfortunately. it seems that you are looking for the first object of the RatedShipmentDetails array of each object in the RateReplyDetails array. we have not figured out an easy solution yet, but i think the rates you are looking for should be found at the following location:
[RatedShipmentDetails][0][ShipmentRateDetail][TotalNetCharge][Amount]
I will update once we have a solution
|
| |
-
- Posted: June 5 2012
-
| top
| # 2
-
|
 |
 |
 |
|
|
-
- boxer1732

-
Total Posts: 14
Joined: 2009-02-04
|
Hi fastspud and all,
I’ve got this working on our 1.6.1 thanks to the posts above!
So ours will display our discount rates by changing line 400 in app/code/core/Mage/Usa/Model/Shipping/Carrier/FedEx.php
from
if ($detail->ShipmentRateDetail->RateType === ‘PAYOR_LIST_PACKAGE’)
to
if ($detail->ShipmentRateDetail->RateType === ‘PAYOR_ACCOUNT_PACKAGE’)
Fixed it for us - displaying discount rates for Ground/Home and Express shipments for us. Hope this helps someone else!
|
| |
-
- Posted: July 13 2012
-
| top
| # 3
-
|
 |
 |
 |
|
|
-
- augustdev

-
Total Posts: 6
Joined: 2012-08-23
|
I am using CE 1.7.2 of Magento and was able to get the FedEx Account rates by replacing the array items on line 534 of Fedex.php with “PAYOR_ACCOUNT_PACKAGE”
Example:
foreach (array('RATED_ACCOUNT_SHIPMENT', 'RATED_LIST_SHIPMENT', 'RATED_LIST_PACKAGE') as $rateType) {
foreach (array('PAYOR_ACCOUNT_PACKAGE') as $rateType) {
|
| |
-
- Posted: September 13 2012
-
| top
| # 4
-
|
 |
 |
 |
|
|
-
- abarrere

-
Total Posts: 4
Joined: 2009-03-31
|
augustdev, are you sure this is working for you, because I’ve tried and it doesn’t work.
The request type is still “LIST” that will be pulling List Rates amount, the requestType needs to be changed to “ACCOUNT” to pull from your account but when I change it I’m getting an error.
Anyone that was able to switch from “LIST” rates to “ACCOUNT” rates.. to pull FEDEX account rates?
|
| |
-
- Posted: October 16 2012
-
| top
| # 5
-
|
 |
 |
 |
|
|