Jump to content



Photo
* * * * * 2 votes

FedEx - Web Services v9


  • Please log in to reply
636 replies to this topic

#621   TomB01

TomB01
  • Members
  • 167 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
  • 167 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
  • 167 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
  • 167 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
  • 167 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
  • 167 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
  • 167 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
  • 167 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
  • 167 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.


#630   flying_kites

flying_kites
  • Members
  • 69 posts
  • Real Name:anon
  • Gender:Female

Posted 24 November 2014 - 15:38

FedEx is moving to dimensional shipping on 1 Jan 2015.  See http://news.van.fede...pricing-changes

 

FedEx Ground will apply dimensional weight pricing to all shipments, effective January 1, 2015.

 

 

Looks like this version of FedEx never had dimensional shipping added.

 

Anyone looking at that?



#631   indoinvegas

indoinvegas
  • Members
  • 17 posts
  • Real Name:Maria Shinta

Posted 25 December 2014 - 23:23

I downloaded Fedex shipping adds on. How can I instal or uplaod to my oscommerce website? I did unzip the file. whats the right path to upload to admin ?

 

Thank you,

 

Maria



#632   dr_lucas

dr_lucas
  • Members
  • 307 posts
  • Real Name:Michaela
  • Gender:Female

Posted 26 December 2014 - 04:28

FedEx is moving to dimensional shipping on 1 Jan 2015.  See http://news.van.fede...pricing-changes

 

 

Looks like this version of FedEx never had dimensional shipping added.

 

Anyone looking at that?

 

If I read that right, FedEx will apply dimensional shipping to Freight and Ground services, but they will also keep the weight based shipping.

This change to these 2 specific services seems to be USA exclusive and all other services are not affected anyway.

As I do not personally ship inside the USA, do not use any of these mentioned services and always ship by weight only, I did not have the need to look into this and will not spend the time to modify the module, but it should be quite easy to modify it and add the dimension shipping or you can hire a freelancer to modify it for you from places like http://www.freelancer.com


If my post has helped you in any way, and since I am doing this free of charge, please show your appreciation by clicking the "Like This" button at the bottom right corner of my helpful post. Clicking is free of charge too. ;-)
This is a nice way of thanking and motivating any other person who voluntarily helped you in the forum, not just me...

My contributions:

FedEx - Web Services v9
FAQ System
Who's Online Enhancement
Order Editor
MoneyBookers IPN
Ship in Cart (MS2)
Admin Products Paging
Margin Report v1.00
2Checkout INS / IPN (Instant Notification System) for MS2.2
Visitor Web Stats
Time Zone Offset - Adjust to match your location
User Tracking with Admin 1.0
Category Meta Tags

#633   Bobber

Bobber
  • Members
  • 30 posts
  • Real Name:Bobber
  • Gender:Male

Posted 31 January 2015 - 02:43

First, thank you RoadDoctor for all of your work on this module. I have v9.4.3.1 all working, but fixed one issue and still have another one.

First, I think the instructions for the "ship_separately" functionality are incomplete, and/or the code in the includes/modules/shipping/fedexwebservices.php file is wrong. The settings for the module seem to combine the UPS XML "Ready to Ship" and FedEx "Ship_Separately", and the code does the same, but the installation instructions only tell the user how to get the "ship_separately" working (there is a fedexweb.sql.php in the "sql" folder that alters the products table, and it does add the ship_separately field, but not the "ready_to_ship" field, which the code requires when the module option is enabled).

I was using the previous FedEx Realtime Quotes, so I already had the ship_separately field in the database, and already had the categories.php changes made, but the shipping module still expected the "ready_to_ship" field in the products table. For anyone else who has this issue, you have two options.

1) manually add the field to the products table

2) In the fedexwebservices.php module file, change the following two lines

Around line 181, change

$dimensions_query = "SELECT products_ready_to_ship, products_ship_sep, products_weight FROM " . TABLE_PRODUCTS . "

To this
$dimensions_query = "SELECT products_ship_sep, products_weight FROM " . TABLE_PRODUCTS . "

Around line 186, change

if ($product_dimensions['products_ready_to_ship'] == 1 || $product_dimensions['products_ship_sep'] == 1) {
To this
if ($product_dimensions['products_ship_sep'] == 1) {


The above changes will tell the code to not even try to find or use the "products_ready_to_ship" column in the products table.



I still have one more issue though. In the osCommerce general Shipping options, the "Maximum Weight You Will Ship" variable does work with this FedEx WebServices Module, but "Package Tare Weight" and "Larger Packages - percentage increase" options do not seem to have any effect on this shipping module. Is anyone else having this problem? Or does anyone know what could be affecting it or how to make it work?

 

@pcwerks Were you able to find a solution to this probelm?

 

I am exerpiencing the same issue :-/



#634   lukechanning

lukechanning
  • Members
  • 16 posts
  • Real Name:Luke Patrick

Posted 21 April 2015 - 15:44

For those struggling with Error Code 1000 (detailed report below) I found a fix. It's been talked about before on this thread, but looks like the specific bits have changed a little.

 

If you're using test credentials, the standard s1:address will not work, and you'll be rejected form the server. I think this has been mentioned elsewhere in the thread, but I couldn't find any exact details. To make it all work with test creds, change:

<s1:address location="https://gateway.fedex.com/web-services/"/>

to 

<s1:address location="https://wsbeta.fedex.com:443/web-services/rate"/>

and back again when you're done and want to use production info. Obviously, this can change frequently at FedEx' prerogative. So tread lightly and keep an eye out! 



#635   Supertex

Supertex
  • Members
  • 223 posts
  • Real Name:Shawn
  • Gender:Male
  • Location:Wichita Falls, Texas

Posted 02 June 2015 - 20:43

Has anyone successfully modified this to provide quotes with insurance?  I've found a post that mentioned 3 places that must be modified, but nothing specific as to how it needs to be changed.

 

All I need it to do is request insurance for the amount of the subtotal.  I've already added an "enable insurance" field to the config, and a check whether or not it's true or false.  Just no real idea where to go from here.



#636   Pinball

Pinball
  • Members
  • 63 posts
  • Real Name:John
  • Gender:Male
  • Location:Canada

Posted Yesterday, 22:53

Playing with insurance I like using Echo statements to show waht is happening with variables - for example to try and figure out what the value for insurance should be (sub_total - text) on the page I use:

 

      echo "Order amount for insurance purposes: " . $totals . "<br>";

 

However this shows as blank unless you enable one of the previous commented out statements (around line 144)

 

// Depending on your version of Order Editor, any one of the following lines may be appropriate for your setup.
//    $totals = $order->info['subtotal'] = $cart->total;  // from CRE Loaded code - testing - this may be the one for all? // 09/04/2014 -  Disabling this as it may no longer be necessary and it screws up the sub-totals
//    $totals = $order->info['subtotal'] = $_SESSION['cart']->show_total();  // original code
//    $totals = $order->info['subtotal'] || $_SESSION['cart']->show_total();  // or perhaps this is better
//    $totals = $cart->show_total();  // this seems to work for most - needed for insurance to get sub-total amount

 

I enable the last one to show the sub-totals in my echo statement that shows up in my test setup (localhost) at the left top of the screen. This value IS handed to the data sent to FedEx (when $totals shows a value), however it doesn't appear to come back as anything in the price that makes a difference. Unless the value in my shopping cart is too low during this test ($219USD).

 

I'll play some more and see what happens...



#637   Pinball

Pinball
  • Members
  • 63 posts
  • Real Name:John
  • Gender:Male
  • Location:Canada

Posted Today, 04:32

For those struggling with Error Code 1000 (detailed report below) I found a fix. It's been talked about before on this thread, but looks like the specific bits have changed a little.

 

If you're using test credentials, the standard s1:address will not work, and you'll be rejected form the server. I think this has been mentioned elsewhere in the thread, but I couldn't find any exact details. To make it all work with test creds, change:

<s1:address location="https://gateway.fedex.com/web-services/"/>

to 

<s1:address location="https://wsbeta.fedex.com:443/web-services/rate"/>

and back again when you're done and want to use production info. Obviously, this can change frequently at FedEx' prerogative. So tread lightly and keep an eye out! 

I reworked that somewhat, created two RateService file in /catalog/includes/wsdl/ - one called RateService_v9.wsdl (the default one) and a second called RateService_Test_v9.wsdl where I modified the line to:

<s1:address location="https://gatewaybeta.fedex.com:443/web-services/rate"/>

but left the default file as usual.

 

Then in catalog/includes/modules/shipping/fedexwebservice.php I added (around line 83):

// added for Web Services Testing - Sept 1, 2015
     if ((MODULE_SHIPPING_FEDEX_WEB_SERVICES_TEST) == 'true') {
     $path_to_wsdl = DIR_FS_CATALOG . DIR_WS_INCLUDES . "wsdl/RateService_v9_Test.wsdl"; 
     } else { 
     $path_to_wsdl = DIR_FS_CATALOG . DIR_WS_INCLUDES . "wsdl/RateService_v9.wsdl";
     }
// End addition for Web Services testing  

 and then at line 519:

    tep_db_query ("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Test Mode', 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_TEST', 'false', 'Testing using gatewaybeta.fedex.com', '6', '19', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now())");

and line 571 (just after module_shipping_debugging'; !!! Add a comma after module_shipping_debugging !!!

                 'MODULE_SHIPPING_FEDEX_WEB_SERVICES_TEST'

and the reinstalled fedexwebservices.php to install the changes.

 

Now it is easier to switch between the test and production environment - of course you have to change passwords, signin stuff, etc.!