Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

UPS Choice 1.8.3


Chadduck

Recommended Posts

Hello everyone -

Before I begin the dreaded process of troubleshooting my UPS shipping issue I wanted to ask IF I am the only one that is having issues with UPS Choice 1.8.3.  Shipping has been working fine for years.  

I received a phone call asking IF Priority Mail was the only method of shipping that we offered on Wednesday, April 17. 2019.  Of course it was not, but it was the first time anyone had told me that there was no other option. 

Since the module is returning this error message (see image)
We are unable to obtain a rate quote for UPS shipping.
Please contact the store if no other alternative is shown

I do NOT believe that the module is the issue HOWEVER I am of the opinion that UPS may have finally removed the cgi server since the module has this
disclaimer in step 7

------------------------------------
Disclaimer:
This revision is based on ups.php v.1.54, which employs the UPS cgi method that has been
deprecated for over a year and although it appears to remain functional is no longer officially
supported by UPS.  The currently supported UPS API requires XML requests through a secure socket
layer, for which there is not yet an osC implementation.  
------------------------------------

Is anyone else having this issue?

Anyone have a suggestion for a similar module for replacement?

BJ

Store Checkout Shipping.JPG

Link to comment
Share on other sites

I've received reports from several of my clients that UPS is not working. According to this site most of the US is having problems. But according to UPS, only Iowa is affected. I checked sites that are in Canada and UPS is working for them so it is only a problem with the US, as far as I can tell.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

59 minutes ago, OldPete said:

However I learned my lesson.  I'll keep the XML one on "False" so I can just click over to it.

OldPete

In regards to the XML install - is there a cost for the access key?  I started to move over to it UPS XML 1.7 but when I went to create the access key I got the impression that there was a charge.  I stopped because of it.  

BJ

 

Link to comment
Share on other sites

  • 2 weeks later...
On 4/20/2019 at 6:38 PM, repete said:

Got a fix for this....

Modify /includes/modules/shipping/ups.php changing line 267 from...

if ($http->Connect('www.ups.com', 80)) {

To....

if ($http->Connect('ssl://www.ups.com', 443)) {

it doesn't work for me.. not sure why!?  here my code in ups.php.  What did I do wrong?

 

                              '19_destPostal=' . $this->_upsDestPostalCode,
                                 '22_destCountry=' . $this->_upsDestCountryCode,
                                 '23_weight=' . $this->_upsPackageWeight,
                                 '47_rate_chart=' . $this->_upsRateCode,
                                 '48_container=' . $this->_upsContainerCode,
                                 '49_residential=' . $this->_upsResComCode));
      $http = new httpClient();
/*        if ($http->Connect('www.ups.com', 80)) {  */
        if ($http->Connect('ssl://www.ups.com', 443?)) {  
        $http->addHeader('Host', 'www.ups.com');
        $http->addHeader('User-Agent', 'osCommerce');
        $http->addHeader('Connection', 'Close');

        if ($http->Get('/using/services/rave/qcostcgi.cgi?' . $request)) $body = $http->getBody();

        $http->Disconnect();
      } else {
        return 'error';
      }
      $body_array = explode("\n", $body);

 

Edited by yungi
Link to comment
Share on other sites

26 minutes ago, yungi said:

if ($http->Connect('ssl://www.ups.com', 443?)) {

Hi Yungi, :)

The above should be

if ($http->Connect('ssl://www.ups.com', 443)) {

Also, UPS is going to stop the API for this module. They don't have a firm date but I'm guessing it will be this year. They will be keeping the UPS XML API so you need to install that module.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

12 hours ago, Jack_mcs said:

 


if ($http->Connect('ssl://www.ups.com', 443)) {

Also, UPS is going to stop the API for this module. They don't have a firm date but I'm guessing it will be this year. They will be keeping the UPS XML API so you need to install that module.

 

Jack, you know for sure UPS ending support for this module?  

I like it much better than the XML version for the same reasons the others here have pointed out.

Link to comment
Share on other sites

12 hours ago, yungi said:

still doesn't work.  Testing on dev .biz site.

I took a look at the file. You commented out the wrong line so it is still using the original code.

18 minutes ago, yungi said:

Jack, you know for sure UPS ending support for this module?  

Yes. I was dealing with UPS tech support on another problem and this is what the tech said when he realized the API the UPS Choice module uses:

Quote

...Also, please note that this version of the API is going to be sunsetted soon. While we do not have a hard date as of this writing we strongly advice moving your customers to other versions of the APIs such as XML, Web Services or Json as soon as possible.

 

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Jack 

Not to sound like an idiot on my part but could you kinda walk me through it?  I created the UPS user account but didn't know what, or where to go ,to acquire what I needed.

I am sure it is quite easy but when I was attempting to do it - I was a little stressed since 1.8.3 was not working and I needed UPS quotes.

Thanks in advance 

BJ

 

Link to comment
Share on other sites

3 hours ago, Jack_mcs said:

I took a look at the file. You commented out the wrong line so it is still using the original code.

You're right.. it's working now. Thanks

 

Link to comment
Share on other sites

6 hours ago, Chadduck said:

Not to sound like an idiot on my part but could you kinda walk me through it?  I created the UPS user account but didn't know what, or where to go ,to acquire what I needed.

You need to get an API access key from here (step 4). That goes into the settings for the UPS XML module.

Edited by Jack_mcs

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 2 weeks later...
On 4/20/2019 at 9:38 PM, repete said:

Got a fix for this....

Modify /includes/modules/shipping/ups.php changing line 267 from...

if ($http->Connect('www.ups.com', 80)) {

To....

if ($http->Connect('ssl://www.ups.com', 443)) { 

It's a miracle!  Eternally grateful!

Link to comment
Share on other sites

  • 6 months later...

Hey I did the change as you requested but I get this error after the change? Is there something else I can do or is this not a working solution anymore?

Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version in /var/www/vhosts/freysupply.com/httpdocs/store/catalog/includes/classes/http_client.php on line 330 Warning: fsockopen(): Failed to enable crypto in /var/www/vhosts/freysupply.com/httpdocs/store/catalog/includes/classes/http_client.php on line 330 Warning: fsockopen(): unable to connect to ssl://www.ups.com:443 (Unknown error) in /var/www/vhosts/freysupply.com/httpdocs/store/catalog/includes/classes/http_client.php on line 330
 
Link to comment
Share on other sites

  • 3 years later...

This morning I noticed that the OsCommerce UPS Choice 1.8.3.2 was not returning UPS rates.  Has been working flawlessly since Sep 2019.

I checked past orders and the last order received that chose UPS was 5/17/2023. So obviously it was working on that date.

Suggestions on how to solve the issue?


 

Link to comment
Share on other sites

@ChadduckThe type of code used by UPS Choice is no longer accepted by UPS. If you have a copy of UPSXML that will work. However, that module requires an access key and, I think, they have stopped issuing them. They are using a new method to get rates. I don't know if the OAuth key they provide will work with the UPSXML module, though I'm guessing it won't. The new method doesn't get completely switched to until June, 2024 so it seems strange that they won't allow new access keys. Explaining the situation to UPS tech support might be helpful.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...