Page 1 of 1

Problem with Fedex Rates

Posted: Tue May 27, 2008 9:53 am
by svetalex
The problem is that a Fedex request rounds the weight of the product, and we receive the rates much bigger that they should be. For example, if a product's weight is 0.2 KG.

In the Fedex log of the request that is being sent from ablecommerce to fedex it rounds the weight up to 1 KG and as a result Fedex sends back the quote for 1KG product instead of 0.2 kg product

Why is AbleCommerce rounding the weights up from 0.2 kg to 1kg when sending them to Fedex?

Re: Problem with Fedex Rates

Posted: Wed May 28, 2008 4:46 am
by sohaib
This was reported as a bug recently and it has been fixed.
A patch is posted here http://bugs.ablecommerce.com/show_bug.cgi?id=6829

Re: Problem with Fedex Rates

Posted: Wed May 28, 2008 9:42 am
by svetalex
Yes, we posted it.

Re: Problem with Fedex Rates

Posted: Wed May 28, 2008 10:20 am
by svetalex
I checked the shipping with new "fixed" dll.

Fedex.log here:
Send: <?xml version="1.0" encoding="UTF-8"?><FDXRateAvailableServicesRequest xmlns:api="http://www.fedex.com/fsmapi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="FDXRateAvailableServicesRequest.xsd"><RequestHeader><AccountNumber>XXX</AccountNumber><MeterNumber>XXX</MeterNumber></RequestHeader>
<ShipDate>2008-05-28</ShipDate><DropoffType>REGULARPICKUP</DropoffType><Packaging>YOURPACKAGING</Packaging><WeightUnits>KGS</WeightUnits><Weight>0.2</Weight><OriginAddress>
<StateOrProvinceCode>ON</StateOrProvinceCode><PostalCode>M4V 1E2</PostalCode><CountryCode>CA</CountryCode></OriginAddress><DestinationAddress><StateOrProvinceCode>NY</StateOrProvinceCode><PostalCode>14228</PostalCode><CountryCode>US</CountryCode></DestinationAddress><Payment><PayorType>SENDER</PayorType></Payment><DeclaredValue><Value>44.85</Value><CurrencyCode>USD</CurrencyCode></DeclaredValue><SpecialServices><ResidentialDelivery>1</ResidentialDelivery></SpecialServices><PackageCount>1</PackageCount></FDXRateAvailableServicesRequest>

Receive: <?xml version="1.0" encoding="UTF-8"?><FDXRateAvailableServicesReply xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan ... der><Entry>
<Service>INTERNATIONALPRIORITY</Service><Packaging>YOURPACKAGING</Packaging><DestinationStationID>BUF</DestinationStationID><EstimatedCharges>
<DimWeightUsed>false</DimWeightUsed><CurrencyCode>CAD</CurrencyCode><BilledWeight>1.0</BilledWeight><DiscountedCharges><BaseCharge>65.40</BaseCharge>
<TotalDiscount>29.43</TotalDiscount><TotalSurcharge>8.99</TotalSurcharge><NetCharge>44.96</NetCharge>
</DiscountedCharges></EstimatedCharges><SignatureOption>INDIRECT</SignatureOption></Entry><Entry><Service>INTERNATIONALECONOMY</Service>
<Packaging>YOURPACKAGING</Packaging><DestinationStationID>BUF</DestinationStationID><EstimatedCharges><DimWeightUsed>false</DimWeightUsed>
<CurrencyCode>CAD</CurrencyCode><BilledWeight>1.0</BilledWeight><DiscountedCharges><BaseCharge>50.70</BaseCharge><TotalDiscount>19.00</TotalDiscount>
<TotalSurcharge>7.93</TotalSurcharge><NetCharge>39.63</NetCharge></DiscountedCharges></EstimatedCharges><SignatureOption>INDIRECT</SignatureOption></Entry><Entry>
<Service>INTERNATIONALFIRST</Service><Packaging>YOURPACKAGING</Packaging><DestinationStationID>BUF</DestinationStationID><EstimatedCharges><DimWeightUsed>false</DimWeightUsed>
<CurrencyCode>CAD</CurrencyCode><BilledWeight>1.0</BilledWeight><DiscountedCharges><BaseCharge>128.50</BaseCharge><TotalDiscount>0.00</TotalDiscount><TotalSurcharge>32.13</TotalSurcharge>
<NetCharge>160.63</NetCharge></DiscountedCharges></EstimatedCharges><SignatureOption>INDIRECT</SignatureOption></Entry><Entry><Service>FEDEXGROUND</Service><Packaging>YOURPACKAGING</Packaging>
<TimeInTransit>2</TimeInTransit><EstimatedCharges><DimWeightUsed>false</DimWeightUsed><CurrencyCode>CAD</CurrencyCode><BilledWeight>2.0</BilledWeight><DiscountedCharges>
<BaseCharge>12.53</BaseCharge><TotalDiscount>0.88</TotalDiscount><TotalSurcharge>3.32</TotalSurcharge><NetCharge>14.97</NetCharge><EarnedDiscount>0.00</EarnedDiscount></DiscountedCharges>
</EstimatedCharges><SignatureOption>NONE</SignatureOption><IneligibleForMoneyBackGuarantee>true</IneligibleForMoneyBackGuarantee></Entry></FDXRateAvailableServicesReply>
Other issues:
1. Product weight that going to be sended is okey.
2. Returned Rates are not okey. They are still high becouse a "BilledWeight" again 1.0 KG, but for Ground Services: " BilledWeight" is 2.0 ? :shock:
3. In the application function "ShipRateQuoteDataSource.QuoteForShipment( shipment )" doesn't return "Ground" method. :( (but it exists in log)
3. We send "Currency Code : USD, but Fedex return "CAD"

Whats going on ?

Re: Problem with Fedex Rates

Posted: Wed May 28, 2008 10:39 am
by sohaib
About the returned rates:
Well this is what FedEx is returning and we are passing forward. May be you are shipping from Canada to US thats why?

About 'Ground' service
from comments in our code

Code: Select all

           //ground home delivery is not applicable to businesses
                    //ground is not applicable to residences
                    //in Canada, ground is applicable to residences because home delivery is not available
Check with address type business and see if ground is returned or not.

We send "Currency Code : USD, but Fedex return "CAD"
Login to your FedEx account and see if there are any configuration options that affect this. Check for any place where you can set currency for your FedEx account.