Jump to content



Photo
* * * * * 2 votes

FedEx - Web Services v9


  • Please log in to reply
628 replies to this topic

#621   TomB01

TomB01
  • Members
  • 159 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 07 September 2014 - 16:36

OK - I got mine working (International only) by obtaining a full business account with FedEx. I was using the Test Account Number before, because for some reason I was receiving Production Passwords without going through the entire process on FedEx. I have to say that their registration forms are not quite straightforward. You fill one in, press "continue" and then the same form appears and tells you some of the information was not filled in.

Anyway, this is what I get for domestic addresses -

SOAP Response: Destination Postal-City Mismatch. (The rest is waaay too long to copy here.)

Fatal error: Cannot use object of type stdClass as array in /home1/tomb/public_html/store/catalog/includes/modules/shipping/fedexwebservices.php on line 313

I can't find anything around line 313 that references "stdClass" or an "array."

This is my line 313 in fedexwebservices.php (Version 9.5 update):

$cost = ($rateReply->RatedShipmentDetails[0]->ShipmentRateDetail->TotalNetCharge->Amount)/MODULE_SHIPPING_FEDEX_WEB_SERVICES_CURRENCY;

???

Edited by TomB01, 07 September 2014 - 16:37.


#622   TomB01

TomB01
  • Members
  • 159 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 07 September 2014 - 16:42

Dang! Seems like every time I post a question, the next thing I try fixes it. I guess that's better than not fixing it, though.

Anyway - comments above line 313 in fedexwebservices.php seem to indicate line 313 applies for "ACCOUNT" FedEx Rates. I changed it back to "LIST" in the Admin configuration and now everything works for domestic.

#623   TomB01

TomB01
  • Members
  • 159 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 08 September 2014 - 12:29

I checked this morning and I'm getting rates of $5.00 for both "International Economy" and "International Priority" to a UK address. I checked on FedEx.com and a quick rate check says $85.67 for International Economy and $93.52 for International Priority.

???

#624   TomB01

TomB01
  • Members
  • 159 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 08 September 2014 - 13:02

Here's the debug header:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlso.../soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><RateReply xmlns="http://fedex.com/ws/rate/v9"><HighestSeverity>SUCCESS</HighestSeverity><Notifications><Severity>SUCCESS</Severity><Source>crs</Source><Code>0</Code><Message>Request was successfully processed. </Message><LocalizedMessage>Request was successfully processed. </LocalizedMessage></Notifications><TransactionDetail><CustomerTransactionId> *** Rate Request v9 using PHP ***</CustomerTransactionId></TransactionDetail><Version><ServiceId>crs</ServiceId><Major>9</Major><Intermediate>0</Intermediate><Minor>0</Minor></Version><RateReplyDetails><ServiceType>INTERNATIONAL_FIRST</ServiceType><PackagingType>YOUR_PACKAGING</PackagingType><DeliveryStation>LBAA </DeliveryStation><DeliveryDayOfWeek>THU</DeliveryDayOfWeek><DeliveryTimestamp>2014-09-11T10:00:00</DeliveryTimestamp><CommitDetails><CommodityName>DOCUMENTS</CommodityName><ServiceType>INTERNATIONAL_FIRST</ServiceType><CommitTimestamp>2014-09-11T10:00:00</CommitTimestamp><DayOfWeek>THU</DayOfWeek><DestinationServiceArea>A2</DestinationServiceArea><BrokerToDestinationDays>0</BrokerToDestinationDays><ProofOfDeliveryDate>2014-09-12</ProofOfDeliveryDate><ProofOfDeliveryDayOfWeek>FRI</ProofOfDeliveryDayOfWeek><CommitMessages><Code>134</Code><Message>REQUEST COMPLETED</Message></CommitMessages><DeliveryMessages>10:00 A.M. IF NO CUSTOMS DELAY</DeliveryMessages><DocumentContent>DOCUMENTS_ONLY</DocumentContent><RequiredDocuments>INTERNATIONAL_AIRWAY_BILL</RequiredDocuments></CommitDetails><DestinationAirportId>STN</DestinationAirportId><IneligibleForMoneyBackGuarantee>false</IneligibleForMoneyBackGuarantee><OriginServiceArea>A2</OriginServiceArea><DestinationServiceArea>A2</DestinationServiceArea><SignatureOption>SERVICE_DEFAULT</SignatureOption><ActualRateType>PAYOR_ACCOUNT_SHIPMENT</ActualRateType><RatedShipmentDetails><EffectiveNetDiscount><Currency>USD</Currency><Amount>0.0</Amount></EffectiveNetDiscount><ShipmentRateDetail><RateType>PAYOR_ACCOUNT_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>127.63</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>0.0</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>127.63</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>11.49</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>139.12</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>139.12</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>11.49</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails><RatedShipmentDetails><EffectiveNetDiscount><Currency>USD</Currency><Amount>0.0</Amount></EffectiveNetDiscount><ShipmentRateDetail><RateType>RATED_ACCOUNT_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>127.63</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>0.0</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>127.63</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>11.49</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>139.12</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>139.12</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>11.49</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails><RatedShipmentDetails><ShipmentRateDetail><RateType>PAYOR_LIST_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>127.63</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>0.0</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>127.63</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>11.49</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>139.12</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>139.12</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>11.49</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails><RatedShipmentDetails><ShipmentRateDetail><RateType>RATED_LIST_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>127.63</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>0.0</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>127.63</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>11.49</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>139.12</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>139.12</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>11.49</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails></RateReplyDetails><RateReplyDetails><ServiceType>INTERNATIONAL_PRIORITY</ServiceType><PackagingType>YOUR_PACKAGING</PackagingType><DeliveryStation>LBAA </DeliveryStation><DeliveryDayOfWeek>THU</DeliveryDayOfWeek><DeliveryTimestamp>2014-09-11T12:00:00</DeliveryTimestamp><CommitDetails><CommodityName>DOCUMENTS</CommodityName><ServiceType>INTERNATIONAL_PRIORITY</ServiceType><CommitTimestamp>2014-09-11T12:00:00</CommitTimestamp><DayOfWeek>THU</DayOfWeek><DestinationServiceArea>A2</DestinationServiceArea><BrokerToDestinationDays>0</BrokerToDestinationDays><ProofOfDeliveryDate>2014-09-12</ProofOfDeliveryDate><ProofOfDeliveryDayOfWeek>FRI</ProofOfDeliveryDayOfWeek><CommitMessages><Code>134</Code><Message>REQUEST COMPLETED</Message></CommitMessages><DeliveryMessages>BY NOON IF NO CUSTOMS DELAY</DeliveryMessages><DocumentContent>DOCUMENTS_ONLY</DocumentContent><RequiredDocuments>INTERNATIONAL_AIRWAY_BILL</RequiredDocuments></CommitDetails><DestinationAirportId>STN</DestinationAirportId><IneligibleForMoneyBackGuarantee>false</IneligibleForMoneyBackGuarantee><OriginServiceArea>A2</OriginServiceArea><DestinationServiceArea>A2</DestinationServiceArea><SignatureOption>SERVICE_DEFAULT</SignatureOption><ActualRateType>PAYOR_ACCOUNT_SHIPMENT</ActualRateType><RatedShipmentDetails><EffectiveNetDiscount><Currency>USD</Currency><Amount>14.41</Amount></EffectiveNetDiscount><ShipmentRateDetail><RateType>PAYOR_ACCOUNT_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>82.63</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>13.22</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>69.41</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>6.25</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>75.66</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>75.66</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><FreightDiscounts><RateDiscountType>BONUS</RateDiscountType><Description>Automation Bonus</Description><Amount><Currency>USD</Currency><Amount>13.22</Amount></Amount><Percent>16.0</Percent></FreightDiscounts><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>6.25</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails><RatedShipmentDetails><EffectiveNetDiscount><Currency>USD</Currency><Amount>14.41</Amount></EffectiveNetDiscount><ShipmentRateDetail><RateType>RATED_ACCOUNT_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>82.63</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>13.22</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>69.41</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>6.25</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>75.66</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>75.66</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>6.25</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails><RatedShipmentDetails><ShipmentRateDetail><RateType>PAYOR_LIST_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>82.63</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>0.0</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>82.63</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>7.44</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>90.07</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>90.07</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>7.44</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails><RatedShipmentDetails><ShipmentRateDetail><RateType>RATED_LIST_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>82.63</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>0.0</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>82.63</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>7.44</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>90.07</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>90.07</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>7.44</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails></RateReplyDetails><RateReplyDetails><ServiceType>INTERNATIONAL_ECONOMY</ServiceType><PackagingType>YOUR_PACKAGING</PackagingType><DeliveryStation>LBAA </DeliveryStation><DeliveryDayOfWeek>MON</DeliveryDayOfWeek><DeliveryTimestamp>2014-09-15T18:00:00</DeliveryTimestamp><CommitDetails><CommodityName>DOCUMENTS</CommodityName><ServiceType>INTERNATIONAL_ECONOMY</ServiceType><CommitTimestamp>2014-09-15T18:00:00</CommitTimestamp><DayOfWeek>MON</DayOfWeek><DestinationServiceArea>A2</DestinationServiceArea><BrokerToDestinationDays>0</BrokerToDestinationDays><ProofOfDeliveryDate>2014-09-16</ProofOfDeliveryDate><ProofOfDeliveryDayOfWeek>TUE</ProofOfDeliveryDayOfWeek><CommitMessages><Code>134</Code><Message>REQUEST COMPLETED</Message></CommitMessages><DeliveryMessages> 6:00 P.M. IF NO CUSTOMS DELAY</DeliveryMessages><DocumentContent>DOCUMENTS_ONLY</DocumentContent><RequiredDocuments>INTERNATIONAL_AIRWAY_BILL</RequiredDocuments></CommitDetails><DestinationAirportId>STN</DestinationAirportId><IneligibleForMoneyBackGuarantee>false</IneligibleForMoneyBackGuarantee><OriginServiceArea>A2</OriginServiceArea><DestinationServiceArea>A2</DestinationServiceArea><SignatureOption>SERVICE_DEFAULT</SignatureOption><ActualRateType>PAYOR_ACCOUNT_SHIPMENT</ActualRateType><RatedShipmentDetails><EffectiveNetDiscount><Currency>USD</Currency><Amount>13.35</Amount></EffectiveNetDiscount><ShipmentRateDetail><RateType>PAYOR_ACCOUNT_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>76.56</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>12.25</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>64.31</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>5.79</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>70.1</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>70.1</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><FreightDiscounts><RateDiscountType>BONUS</RateDiscountType><Description>Automation Bonus</Description><Amount><Currency>USD</Currency><Amount>12.25</Amount></Amount><Percent>16.0</Percent></FreightDiscounts><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>5.79</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails><RatedShipmentDetails><EffectiveNetDiscount><Currency>USD</Currency><Amount>13.35</Amount></EffectiveNetDiscount><ShipmentRateDetail><RateType>RATED_ACCOUNT_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>76.56</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>12.25</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>64.31</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>5.79</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>70.1</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>70.1</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>5.79</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails><RatedShipmentDetails><ShipmentRateDetail><RateType>PAYOR_LIST_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>76.56</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>0.0</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>76.56</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>6.89</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>83.45</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>83.45</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>6.89</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails><RatedShipmentDetails><ShipmentRateDetail><RateType>RATED_LIST_SHIPMENT</RateType><RateScale>0000000</RateScale><RateZone>US001O</RateZone><PricingCode>ACTUAL</PricingCode><RatedWeightMethod>ACTUAL</RatedWeightMethod><CurrencyExchangeRate><FromCurrency>USD</FromCurrency><IntoCurrency>USD</IntoCurrency><Rate>1.0</Rate></CurrencyExchangeRate><DimDivisor>0</DimDivisor><FuelSurchargePercent>9.0</FuelSurchargePercent><TotalBillingWeight><Units>LB</Units><Value>1.0</Value></TotalBillingWeight><TotalBaseCharge><Currency>USD</Currency><Amount>76.56</Amount></TotalBaseCharge><TotalFreightDiscounts><Currency>USD</Currency><Amount>0.0</Amount></TotalFreightDiscounts><TotalNetFreight><Currency>USD</Currency><Amount>76.56</Amount></TotalNetFreight><TotalSurcharges><Currency>USD</Currency><Amount>6.89</Amount></TotalSurcharges><TotalNetFedExCharge><Currency>USD</Currency><Amount>83.45</Amount></TotalNetFedExCharge><TotalTaxes><Currency>USD</Currency><Amount>0.0</Amount></TotalTaxes><TotalNetCharge><Currency>USD</Currency><Amount>83.45</Amount></TotalNetCharge><TotalRebates><Currency>USD</Currency><Amount>0.0</Amount></TotalRebates><Surcharges><SurchargeType>FUEL</SurchargeType><Description>Fuel</Description><Amount><Currency>USD</Currency><Amount>6.89</Amount></Amount></Surcharges></ShipmentRateDetail></RatedShipmentDetails></RateReplyDetails></RateReply></SOAP-ENV:Body></SOAP-ENV:Envelope>

It looks like it's pulling correct rates, but why does it show up as $5.00 in the checkout_shipping.php page?

EDIT: Boy! That's a lot of debug response!

Edited by TomB01, 08 September 2014 - 13:04.


#625   TomB01

TomB01
  • Members
  • 159 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 08 September 2014 - 15:45

I re-read the install from v9.4.6 and it says, "(Also the FedEx quote modules have been known to fail on international shipments if you select List Rates. See lines 284 and 285 of fedexwebservices.php for a possible fix)"

My first reaction was to try resetting the Admin configure back to "Account" rates. It seems to work, now. I don't know why it didn't when I made the post up there (#622).

Check that: now it fails with a Fatal error on domestic.

Edited by TomB01, 08 September 2014 - 15:46.


#626   TomB01

TomB01
  • Members
  • 159 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 09 September 2014 - 10:51

Tried again this morning by completely removing the module, commenting out line 299 (in V9.5) in fedexwebservices.php:

if($ShipmentRateDetail->ShipmentRateDetail->RateType=='PAYOR_LIST_PACKAGE')

and removing the comments from line 300:
if($ShipmentRateDetail->ShipmentRateDetail->RateType==('PAYOR_LIST_PACKAGE' || 'PAYOR_LIST_SHIPMENT')) // try this if having international quoting errors

It now seems to work for both domestic and international. I must not have removed and re-installed the module after applying the V9.5 update files.

#627   TomB01

TomB01
  • Members
  • 159 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 14 October 2014 - 00:41

Why is my FedEx shipping not recognizing Canada addresses as "International Ground" instead of just "Ground?"  It cost me about $30 today. :(



#628   TomB01

TomB01
  • Members
  • 159 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 14 October 2014 - 00:50

It seems this is a trait by FedEx that FedEx Ground is returned for Canada.  However, why is this code not working in my fedexwebservices.php file:

 

    // because FEDEX_GROUND also is returned for Canadian Addresses, we need to check if the country matches the store country and whether international ground is enabled
    if ((MODULE_SHIPPING_FEDEX_WEB_SERVICES_GROUND == 'true' && $order->delivery['country']['id'] == STORE_COUNTRY) || (MODULE_SHIPPING_FEDEX_WEB_SERVICES_GROUND == 'true' && ($order->delivery['country']['id'] != STORE_COUNTRY) && MODULE_SHIPPING_FEDEX_WEB_SERVICES_INTERNATIONAL_GROUND == 'true')) {
      $this->types['FEDEX_GROUND'] = array('icon' => '', 'handling_fee' => ($order->delivery['country']['id'] == STORE_COUNTRY ? MODULE_SHIPPING_FEDEX_WEB_SERVICES_HANDLING_FEE : MODULE_SHIPPING_FEDEX_WEB_SERVICES_INT_HANDLING_FEE));
      $this->types['GROUND_HOME_DELIVERY'] = array('icon' => '', 'handling_fee' => ($order->delivery['country']['id'] == STORE_COUNTRY ?

 

??

 

My store country is most definitely USA - my USPS and UPS modules are not having a problem distinguishing Canada as an International destination.



#629   TomB01

TomB01
  • Members
  • 159 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 17 October 2014 - 17:51

This is another one where the module/code makes me feel pretty stupid.  This is entirely setup in the admin-configuration for the FedEx module.  "International Ground" apparently means FedEx Ground if you are in an international country (Canada).  For some reason, I thought "International Ground" would work for a Canadian address.  Disable it, and the domestic rate option of "FedEx Ground" disappears from the checkout.  "FedEx Ground" does not actually show up for any addresses, including Canada.  The only ground service that shows up is "Ground Home Delivery" for US addresses (if your store is in the US and you enable "Ground").


Edited by TomB01, 17 October 2014 - 17:53.