If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Shipping Modules / FedEx Web Services Shipping [Unofficial Discussion Thread]

FedEx Web Services Shipping [Unofficial Discussion Thread]

Started by njcyx on 18 Aug 2022, 2:29 PM · Views: 9,549

Results 1 to 20 of 30
18 Aug 2022, 2:29 PM
#1
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

FedEx Web Services Shipping [Unofficial Discussion Thread]

It looks like there is no much discussion nor support thread for the numinix FedEx shipping module. So I start this thread here.

The latest version (v1.8.1, updated on 1/22/2021) can be downloaded from numinix directly:
https://www.numinix.com/zen-cart-plugins-modules-shipping-c-179_250_373_163/fedex-web-services-shipping

Compatible with: Zen Cart 1.3.8a, 1.3.9h, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5a, 1.5.5b, 1.5.5c, 1.5.5d, 1.5.5e, 1.5.5f, 1.5.6, 1.5.6a, 1.5.6b, 1.5.6c

By my test, it seems that it is working fine with the latest zen cart version 1.57d.

An old FedEx module version (v1.5.4, updated on 6/15/2016) can be downloaded from Zen Cart
https://www.zen-cart.com/downloads.php?do=file&id=1784

Compatible with: Zen Cart v1.3.8, v1.3.9, v1.5.0, v1.5.1, v1.5.2, v1.5.3, v1.5.4, v1.5.5

Disclaimer: I have no relationship with numinix and I'm not a professional developer.

18 Aug 2022, 5:24 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

If you have a large volume of shipping, I would go with DrByte's mod at https://www.zen-cart.com/downloads.php?do=file&id=1324

It ties your site into ShipStation with UPS, USPS, and FedEx.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 Aug 2022, 7:12 PM
#3
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

Unfortunately, our site use Shipworks for many years... Shipworks doesn't offer eCommerce plan any more and Shipstation is recommended for new users. (Shipworks and ShipStation are owned by the same company)

24 Aug 2022, 8:01 PM
#4
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

I tested the v1.8.1 plug-in from numinix with zen cart 1.5.8 dev and php 8.0.22. No surprisingly, I received a lot of warnings and errors from this plug-in. I spent some time to edit the code so now it is no more bugs showing on my testing site. If you like to try my code, please find the link below:

https://github.com/njcyx/fedexwebservices

26 Oct 2022, 6:18 PM
#5
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

The link in the previous post sometimes may not work. Not sure how it happens. Anyway the following link should work then.

https://github.com/njcyx/fedexwebservices.git

It is just a temporary solution. Hopefully Numinix will update this plug-in in a more professional way soon.

26 Oct 2022, 6:37 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

It might be a permanent solution and you might be the proud new owner of this plugin. :) Numinix is not that active on the Zen Cart forum these days.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Oct 2022, 6:44 PM
#7
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

Hi @swguy, thanks but I don't think I'm capable to do that. I'm still under PHP learning process and I can only fix a few basic, non-critical warning/bugs. My site needs to use FedEx so I did some trial and error to make it work.

Actually Numinix shown up in the forum early this month, for a different thread.

26 Oct 2022, 7:14 PM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

Yes, all six of the posts they have made in 2022 are in the last month or so. I would call six posts in 10 months "not that active."

But we'll see what happens. Thanks for updating the plugin. Would you please submit your work to
https://www.zen-cart.com/downloads.php?do=file&id=1784
(just click the "Submit an updated version button" and call it something like 1.8.1-PHP8.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Oct 2022, 9:06 PM
#9
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

Hi @swguy, thanks for your suggestion. Let's give it some time and see if any complaints from other users for this mod...Actually I posted the link here is because I would like other users to try and see how it works. I tested this mod on my test site without issues but maybe others may have different issues. Who knows.

Anyway, users who need this plug-in will search and find this thread here.

3 Nov 2022, 9:38 PM
#11
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

dbltoe:

If you have a large volume of shipping, I would go with DrByte's mod at https://www.zen-cart.com/downloads.php?do=file&id=1324

It ties your site into ShipStation with UPS, USPS, and FedEx.

Does this also provide Fedex shipping rate quotes to customers? We already use Shipstation, but I need to allow our customers to choose Fedex as their shipping method.

3 Nov 2022, 9:48 PM
#12
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

Never mind the previous question--I just checked and we're already using that Shipstation interface. It does not provide Fedex shipping rate quotes.

1 Dec 2022, 8:25 PM
#13
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

Numinix updated this plug-in on Nov 29, 2022 (v1.9.0)! Now it supports zc 1.5.8 officially.

https://www.numinix.com/zen-cart-plugins-modules-shipping-c-179_250_373_163/fedex-web-services-shipping

Changelog:

Version notes

- Updating rates.
- Supporting ZC v1.5.8
Added

ZC1.5.8/includes/languages/english/modules/shipping/lang.fedexwebservices.php
ZC1.5.8/includes/library/fedex-common.php5
ZC1.5.8/includes/modules/shipping/fedexwebservices.php
ZC1.5.8/includes/modules/shipping/fedexwebservices/wsdl/AddressValidationService_v4.wsdl
ZC1.5.8/includes/modules/shipping/fedexwebservices/wsdl/RateService_v31.wsdl
docs/fedex_web_services_shipping/images/american-express.png
docs/fedex_web_services_shipping/images/discover.png
docs/fedex_web_services_shipping/images/maestro.png
docs/fedex_web_services_shipping/images/numinix-emblem.png
docs/fedex_web_services_shipping/images/paypal.png
docs/fedex_web_services_shipping/images/visa.png
includes/modules/shipping/fedexwebservices/wsdl/RateService_v31.wsdl
Modified

docs/fedex_web_services_shipping/css/sh_style.css
docs/fedex_web_services_shipping/css/stylesheet.css
docs/fedex_web_services_shipping/readme.html
includes/languages/english/modules/shipping/fedexwebservices.php
includes/modules/shipping/fedexwebservices.php
Removed

includes/modules/shipping/fedexwebservices/wsdl/RateService_v20.wsdl
9 Dec 2022, 5:16 PM
#14
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

I just tried v1.9.0 on my 1.57d test site (php7.4), it seems working fine but Fedex priority international doesn't display any more. I tried several quote to Canada, in previous v1.8.1, fedex priority can be display properly. But in v1.9.0, it is gone.

Setting "Enable International Priority" is confirmed to be true.

Anyone has the same issue?

9 Dec 2022, 7:05 PM
#15
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

I did some tests and I narrowed down the issue from the new pricing file RateService_v31.wsdl. FedEx could change something in this pricing file...

If you do want to use 1.9.0, one walk around solution is to use the previous v20 pricing file instead. Here are the steps:

  1. Put the previous pricing file back /includes/modules/shipping/fedexwebservices/wsdl/RateService_v20.wsdl

  2. Edit \includes\modules\shipping\fedexwebservices.php

  1. Find

$path_to_wsdl = DIR_WS_MODULES . 'shipping/fedexwebservices/wsdl/RateService_v31.wsdl';

Change it to

$path_to_wsdl = DIR_WS_MODULES . 'shipping/fedexwebservices/wsdl/RateService_v20.wsdl';

And 2) Find

$request['TransactionDetail'] = array('CustomerTransactionId' => ' *** Rate Request using PHP ***');
$request['Version'] = array('ServiceId' => 'crs', 'Major' => '31', 'Intermediate' => '0', 'Minor' => '0');

Change them to

$request['TransactionDetail'] = array('CustomerTransactionId' => ' *** Rate Request v20 using PHP ***');
$request['Version'] = array('ServiceId' => 'crs', 'Major' => '20', 'Intermediate' => '0', 'Minor' => '0');

Other code remains unchanged. I just tried it on my end and it worked...

22 Dec 2022, 5:17 PM
#16
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

I keep receiving the following intermittent warning from Fedex plug-in, v1.8.1

Request URI: /index.php?main_page=checkout_one,
#1 fedexwebservices->do_request() called at [/public_html/includes/modules/shipping/fedexwebservices.php:514]
#2 fedexwebservices->quote() called at [/public_html/includes/classes/shipping.php:174]
#3 shipping->quote() called at [/public_html/includes/modules/pages/checkout_one/header_php.php:222]
#4 require(/public_html/includes/modules/pages/checkout_one/header_php.php) called at [/public_html/index.php:35]
--> PHP Warning: Invalid argument supplied for foreach() in /public_html/includes/modules/shipping/fedexwebservices.php on line 767.

The code near line 767 is the following:

          // check if it's saturday delivery
          $saturday = false;
          if (MODULE_SHIPPING_FEDEX_WEB_SERVICES_SATURDAY == 'true') {
            foreach($rateReply->RatedShipmentDetails as $ShipmentRateDetail) {
                foreach($ShipmentRateDetail->ShipmentRateDetail->Surcharges as $surcharge) {
                    if ($surcharge->SurchargeType == 'SATURDAY_DELIVERY') $saturday = true;
                }
            }
          }
28 Dec 2022, 9:46 PM
#17
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

njcyx:

I keep receiving the following intermittent warning from Fedex plug-in, v1.8.1

Request URI: /index.php?main_page=checkout_one,
#1 fedexwebservices->do_request() called at [/public_html/includes/modules/shipping/fedexwebservices.php:514]
#2 fedexwebservices->quote() called at [/public_html/includes/classes/shipping.php:174]
#3 shipping->quote() called at [/public_html/includes/modules/pages/checkout_one/header_php.php:222]
#4 require(/public_html/includes/modules/pages/checkout_one/header_php.php) called at [/public_html/index.php:35]
--> PHP Warning: Invalid argument supplied for foreach() in /public_html/includes/modules/shipping/fedexwebservices.php on line 767.

The code near line 767 is the following:

          // check if it's saturday delivery
          $saturday = false;
          if (MODULE_SHIPPING_FEDEX_WEB_SERVICES_SATURDAY == 'true') {
            foreach($rateReply->RatedShipmentDetails as $ShipmentRateDetail) {
                foreach($ShipmentRateDetail->ShipmentRateDetail->Surcharges as $surcharge) {
                    if ($surcharge->SurchargeType == 'SATURDAY_DELIVERY') $saturday = true;
                }
            }
          }

Ok. I changed the following line

foreach($ShipmentRateDetail->ShipmentRateDetail->Surcharges as $surcharge) {

To:

foreach((array)($ShipmentRateDetail->ShipmentRateDetail->Surcharges) as $surcharge) {

And it seems working fine now.

13 Jan 2023, 9:57 PM
#18
njcyx avatar

njcyx

Zen Follower

Join Date:
Apr 2019
Posts:
382
Plugin Contributions:
0

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

https://github.com/njcyx/fedexwebservices.git

I just updated my FedEx mod. It is based on Numinix v1.9.0 with some changes:

  1. Resolve a variety of warning/error caused by php 8.0 or higher. I just got a chance to try and unfortunately, the files from Numinix v1.9.0 still caused me some warning due to php 8.0. So I made several changes to resolve them.

  2. (Temp solution) Resolve the bug which will not display FedEx intl priority. My mod uses RateService_v20.wsdl instead of RateService_v31.wsdl (as I mentioned in the previous posts)

  3. Resolve occasional warning, Invalid argument supplied for foreach() (as I mentioned in the previous posts)

12 Jun 2023, 9:58 PM
#19
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

At least right now, Fedex seems not to be giving out production keys (Meter numbers). They want people to convert to their RESTful API.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Jun 2023, 11:03 AM
#20
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: FedEx Web Services Shipping [Unofficial Discussion Thread]

This was a brief blip, they are giving out meter numbers again.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.