Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 1 votes

FedEx - Web Services v9


230 replies to this topic

#221 mvanderhoff

  • Community Member
  • 43 posts
  • Real Name:Matt

Posted 11 May 2012, 15:40

My FedEx shipping options are going most expensive to cheapest anyway to switch that so it goes from cheapest to most expensive or in descending order?

#222 pcwerks

  • Community Member
  • 2 posts
  • Real Name:Josh Odegard

Posted 15 May 2012, 19:23

I just switched from the old fedex module to this new web services module and I wanted to put in a few notes that might help some others.

1) If you were using the previous FedEx module that supported the "products ship separately", and you are using v9.4.1 of this Web Services module, that also supports the "products ship separately", then you do not have to modify the 2 categories.php files in the admin section, and you do not have to modify your database. All of the changes made for both of these modules are the same.

2) If you are running your own Apache server and you get a fatal error on the shipping pages, make sure that you have enabled php_soap.dll module in your PHP.INI file, and also make sure you have enabled the php_openssl.dll module. Also make sure that you have ssleay32.dll and libeay32.dll in your windows\system32 directory. I didn't have the OpenSSL module enabled and the web services module wasn't able to connect to the FedEx HTTPS server because of it. See the following link for more information.

http://webponce.com/rants/2008/04/https-support-for-soap-in-php5-under-windows/

#223 DriWashSolutions

  • Community Member
  • 207 posts
  • Real Name:John Skurka
  • Location:Ithaca, NY

Posted 17 May 2012, 18:04

I must say, after waiting until the 11th hour, I DL'd this contribution and copied the files to my server. After getting my Key/PW from Fedex, adding my acct number - BINGO. It works.

Cudo's to ROADOCTOR for his efforts and everyone else who contributed before.

I now have realtime FedEx Quotes running, but now the bigger question:

Is there any way to get this contrib to work with the FedEx Automated Labels contrib?
John Skurka

#224 nafwa

  • Community Member
  • 1 posts
  • Real Name:Chris

Posted 17 May 2012, 23:48

This mod works. If you are testing locally using something like xampp, you have to ensure your openssl is all set. This will get rid of the wrapper https error people have. If you get transaction error, just edit the wsdl/RateService_v9.wsdl. At bottom

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

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

Gateway is the production server so duh it works with a production key. If you have a test key (dev test), you need to post the response to the sandbox. Hope this helps someone. The mod does work just poor documentation.

#225 DriWashSolutions

  • Community Member
  • 207 posts
  • Real Name:John Skurka
  • Location:Ithaca, NY

Posted 18 May 2012, 14:16

I suspect there may be a rounding issue somewhere in this contribution.

I had added a 5% handling fee to all shipments, and when I tried to process an order for a customer, my gateway came back with an error. I processed the order by hand, and when I added up product subtotal, shipping, and sales tax manually, the grand total came back $0.01 lower than what OSC reported as the total. I went back and removed the 5%, and everything added up.

Can someone please check? I would - but I have no idea where to even start.

Edited by DriWashSolutions, 18 May 2012, 14:16.

John Skurka

#226 Roaddoctor

  • Community Member
  • 643 posts
  • Real Name:David Jennings
  • Gender:Not Telling
  • Location:Texas

Posted 19 May 2012, 16:26

View Postmvanderhoff, on 11 May 2012, 15:40, said:

My FedEx shipping options are going most expensive to cheapest anyway to switch that so it goes from cheapest to most expensive or in descending order?

This may address your needs:
http://www.zen-cart.com/showthread.php?194803-FedEx-sort-order

Please let us know if it works with this version and post back the code you end up with...
-Dave

#227 Roaddoctor

  • Community Member
  • 643 posts
  • Real Name:David Jennings
  • Gender:Not Telling
  • Location:Texas

Posted 19 May 2012, 18:52

if anyone is using this module succesfully with Google Checkout and using Merchant Calculated Ship Methods...

PLEASE PLEASE post your functioning merchant_calculated_methods.php file


thank you much
-Dave

#228 Roaddoctor

  • Community Member
  • 643 posts
  • Real Name:David Jennings
  • Gender:Not Telling
  • Location:Texas

Posted 20 May 2012, 17:54

New version posted v9.4.2
http://addons.oscommerce.com/info/7977

v9.4.2 by Roaddoctor 5/20/2012
Changes since v9.4.1
- fixed text in Enable ready-to-ship field
- Corrected error in $show_box_weight
- fixed fatal divide by 0 error with Google Checkout

TO DO LIST:
- add switches for displaying item count, weight, transit days etc...
- work out issues with EXT DAS, EXT RES DAS surcharges
- add disable module limits by weight or box count
- code SmartPost into the module
- add seperate surcharge control field for freight (to apply your freight discount)

This is a minor bug fix update to v9.4.1. See the install.txt for upgrade instructions.

Please keep support questions here in the forum. Please post any issues or problems.

-Dave
-Dave

#229 creepo

  • Community Member
  • 40 posts
  • Real Name:Jim
  • Gender:Male
  • Location:IN, USA

Posted 22 May 2012, 17:58

Hi all - thanks for the contribution and support. I just wanted to raise a couple of remaining issues that we are having.

1) We did experience a $0.00 shipping incident to Canada. We were using List rates. I found someone else's solution was basically to NOT use List Rates or to shut off all ground options to Canada. I'm not sure if that denial of Canada ground options has been incorporated into the newest version, but I am hoping someone can figure out why List rates occasionally fail for Canada - basically defaulting to free shipping. It's a big issue for my client, but we have no options at this point. What we have done is to use Account rates, but I programmed in the ability to adjust % increase cost per service. The % increases in handling fees are applied to groups of services - not a fine enough control for my client - and we were trying to emulate the same rates as the previous module, so I found it much easier to make calculated increased per service hardcoded in the code.

2) Additionally, we had a customer with a SOAP error regarding the handling / use of special characters.

Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: string 'M\xe9...' is not a valid utf-8 string in /includes/modules/shipping/fedexwebservices.php:268

I guess I will try to strip / convert special characters that are offensive in the module, class etc. Has anyone else slayed this one?

Thanks!

Jim

#230 creepo

  • Community Member
  • 40 posts
  • Real Name:Jim
  • Gender:Male
  • Location:IN, USA

Posted 22 May 2012, 18:31

OK, not sure if this will cause other issues, but in /includes/modules/shipping/fedexwebservices.php, I was able to stop the special character SOAP encoding error by applying utf8 encoding to the street address and city (that's where we were getting the errors). Tested ok.

In case it is useful, here's what I changed around line 160 in mine (which is slightly edited now):


$request['RequestedShipment']['Recipient'] = array('Address' => array (
'StreetLines' => array(utf8_encode($street_address), utf8_encode($street_address2)), // customer street address
'City' => (utf8_encode($city)), //customer city

#231 TheJackal

  • Community Member
  • 172 posts
  • Real Name:Jackal
  • Gender:Male
  • Location:San Francisco

Posted 24 May 2012, 23:31

For those who got a '556' error: There are no valid services available. Just change the shipper State/Province data field (in admin panel) to a 2 character state format for e.g. "CA" instead of "California".

Great module!
- The Jackal