Post by StormDesigner » Tue Apr 15, 2025 4:43 am

I'm running 3.0.3.9 and the cart seems to run great. My client is using Fedex for shipping and Paypal integration for payment. Paypal seems fine. Fedex is behaving VERY odd though. PHP version is 8.2

Some delivery addresses seem to work fine, others are returning a warning "No Shipping Options are Available" when I've spoken to Fedex they are able to see the pings to their server and confirmed their system is not erroring and is providing a rate but OpenCart won't display the rate or allow the buyer to continue!? How on Earth is it able to ship to an address in Belleview WA but not to an address in Fall City WA? (where a friend of mine confirmed he receives Fedex packages no problem?) Fedex suggests the "problem is on my end" and it does appear that way. I believe other methods would work fine too. I haven't tested UPS as I don't think client has an account with them. Has anyone else experienced this reliability/accuracy issue with the Fedex module?

Is there an updated replacement module for the Fedex module pre-loaded in 3.0.3.9 but would be compatible to that OC version?
.

StormDesigns, Inc. Website Design and Web Application Development - plus graphic design and print media.

www.StormDesigns.com


User avatar
New member

Posts

Joined
Wed Feb 01, 2012 1:53 am


Post by khnaz35 » Tue Apr 15, 2025 4:09 pm

How about debugging it on your end and provide some logs here?

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by StormDesigner » Tue Apr 15, 2025 9:46 pm

khnaz35 wrote:
Tue Apr 15, 2025 4:09 pm
How about debugging it on your end and provide some logs here?
I'm sure that's one of those things that is "easy to do when you know how" but impossible if you don't (I don't) and I'm not sure where to learn that skill. If you are able to point me in the direction to learn that I'd love to read up on where the logs are and how to "debug" the system. An OC Dev I work with suggested I use a paid or other optional plugin to resolve this which seems like an easier plan.

I see a few Fedex plugins, two appear to be free so I guess I'll try those first. Another I see is paid, not very expensive but may then provide support if it continues to have an issue. Do you know where a log file exists that would show me all requests for shipping totals from Fedex? PS: Spoke to Fedex about this and they are indicating that the requests to their server are being responded to correctly with amounts etc. So this does appear to be more about something in OpenCart or the server configuration than it does with Fedex's response.

StormDesigns, Inc. Website Design and Web Application Development - plus graphic design and print media.

www.StormDesigns.com


User avatar
New member

Posts

Joined
Wed Feb 01, 2012 1:53 am


Post by ADD Creative » Tue Apr 15, 2025 11:27 pm

You can check the standard OpenCart error log. The extension will write errors there. If there are no errors it could be that some of the services are not selected in the settings or the services have changed. The built in FedEx extension hasn't been updated in many years.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by khnaz35 » Tue Apr 15, 2025 11:44 pm

Yep, totally get that—it is easy once you know where to look.

To see logs:

Code: Select all

Admin > System > Maintenance > Error Logs
Or check

Code: Select all

/system/storage/logs/ 
via FTP for more detail

Enable error logging:

Code: Select all

Admin > System > Settings > Edit your store > Server tab > Turn on "Log Errors"
Some shipping modules also have their own logs—check the plugin settings.

If FedEx says the response is fine, it could be:
A parsing issue in the module, Missing address fields in your checkout, Server blocking or cURL issue
Trying a paid plugin with support might save time if free ones don’t work right.

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by StormDesigner » Wed Apr 16, 2025 3:40 am

ADD Creative wrote:
Tue Apr 15, 2025 11:27 pm
You can check the standard OpenCart error log. The extension will write errors there. If there are no errors it could be that some of the services are not selected in the settings or the services have changed. The built in FedEx extension hasn't been updated in many years.
Particularly the last part (hasn't been updated in many years.) connects to this. I am curious if anyone else had experienced this same thing, peculiar that it works much of the time but not some of the time. Am also curious if a more recent compile of the app has the same or a different encoding of the built-in Fedex extension.
Thank you for the info. ;)

StormDesigns, Inc. Website Design and Web Application Development - plus graphic design and print media.

www.StormDesigns.com


User avatar
New member

Posts

Joined
Wed Feb 01, 2012 1:53 am


Post by Johnathan » Wed Apr 16, 2025 3:42 am

If you end up wanting to use an extension then I just released a basic version of my Fedex extension:

Basic FedEx

I also have a more powerful extension that has a packing algorithm, supports delivery estimates, and can print labels:

FedEx Pro

Both of these use the new RESTful API so they are more future-proof than the older built-in Fedex extension. Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any questions.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by StormDesigner » Wed Apr 16, 2025 3:44 am

Excellent instructions, thank you. I'm looking into an alternate free or paid plug ins with some support as the next step but I'll also familiarize myself with those log files.

I appreciate the clear directionals! 8) - "enjoy nature!"

khnaz35 wrote:
Tue Apr 15, 2025 11:44 pm
Yep, totally get that—it is easy once you know where to look.

To see logs:

Code: Select all

Admin > System > Maintenance > Error Logs
Or check

Code: Select all

/system/storage/logs/ 
via FTP for more detail

Enable error logging:

Code: Select all

Admin > System > Settings > Edit your store > Server tab > Turn on "Log Errors"
Some shipping modules also have their own logs—check the plugin settings.

If FedEx says the response is fine, it could be:
A parsing issue in the module, Missing address fields in your checkout, Server blocking or cURL issue
Trying a paid plugin with support might save time if free ones don’t work right.

StormDesigns, Inc. Website Design and Web Application Development - plus graphic design and print media.

www.StormDesigns.com


User avatar
New member

Posts

Joined
Wed Feb 01, 2012 1:53 am


Post by StormDesigner » Wed Apr 16, 2025 11:04 pm

Quick update, through various testing I determined that the issue relates to the default fedex shipping extension provided in the original OC 3.0.3.9 installation. Simply put, if a Company Name was included, the address would fail to connect to the shipping option selected (Fedex Ground) possibly others as well. That was why it appeared to randmonly discriminate between addresses and even how they were entered. With no company name, no problem, Fedex returned the pricing info and the order can process. Company name included? "No shipping options are available - Contact Us". and ??? .

I'm about to install the "Clear Thinking" Basic Fedex Shipping" extension and feel pretty confident that will resolve the issue likely as it uses a current Fedex API where as was pointed out earlier, the original extension is very dated and Fedex informed me is using a generations old api. Thanks again to all the help within the forum!

StormDesigns, Inc. Website Design and Web Application Development - plus graphic design and print media.

www.StormDesigns.com


User avatar
New member

Posts

Joined
Wed Feb 01, 2012 1:53 am


Post by khnaz35 » Thu Apr 17, 2025 12:09 am

Thanks for letting us know with that Said you can close this thread. Simply add word [SOLVED] in the first post title.

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by ADD Creative » Thu Apr 17, 2025 12:35 am

Interesting that the company name had an effect.

It's used in the following place in the extension.
https://github.com/opencart/opencart/bl ... x.php#L104
https://github.com/opencart/opencart/bl ... x.php#L119

The second line is as follows and is definitely wrong.

Code: Select all

$xml .= '						<ns1:Residential>' . ($address['company'] ? 'true' : 'false') . '</ns1:Residential>';
It maybe could be removed (having a company name is not always a reliable indication that's it's not a residential address) or changed to the following.

Code: Select all

$xml .= '						<ns1:Residential>' . ($address['company'] ? 'false' : 'true') . '</ns1:Residential>';

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by StormDesigner » Tue Apr 29, 2025 11:56 pm

Thank you ADD!,
ADD Creative wrote:
Thu Apr 17, 2025 12:35 am
Interesting that the company name had an effect...
That's awesome and appreciated :-X . That issue has been resolved by updating to a paid plugin supplied as above by ClearThinking. Their plugin fixed the issue and it seems related to an updated Fedex API. I'm not sure that being a commercial zoning was material to the issue originally as when I tested address it automatically and always failed with Co. Name present. Either way, if it works with the new plugin I'm fine for now.

I wish I'd been able to test your code before making that purchase but I know I am juggling too many things right now and finally got back to this forum. Client was very urgent about placing the fix so I tried to act fast for them.

I should note here that Johnathan from ClearThinking (who is NOT me by the way!! lol) provided excellent support and his product installed and ran entirely as expected. ;D

StormDesigns, Inc. Website Design and Web Application Development - plus graphic design and print media.

www.StormDesigns.com


User avatar
New member

Posts

Joined
Wed Feb 01, 2012 1:53 am

Who is online

Users browsing this forum: No registered users and 3 guests