Re: UPS Shipping using RESTful/OAuth API [Support Thread]
OK here is the fix. Same happened to me.
Find the line that says (mine is line 102) in /includes/modules/shipping/upsoath.php
case '1.1.0':
Change it to
case '1.2.0':
That removes the error. However, It still does not show rates on the estimator nor the checkout page. I have yet to figure that one out. It may be a template issue on my side.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Quote:
Originally Posted by
4allthingsweb
OK here is the fix. Same happened to me.
Find the line that says (mine is line 102) in /includes/modules/shipping/upsoath.php
case '1.1.0':
Change it to
case '1.2.0':
That removes the error. However, It still does not show rates on the estimator nor the checkout page. I have yet to figure that one out. It may be a template issue on my side.
Instead of changing that line, the '1.2.0' case should be added under the '1.1.0' one.
Regarding the 'rates not showing', try enabling the UPS debug and review the generated log. It's possible that the credentials aren't valid or you've not added the UPS "Rating" or "Time in Transit" apps to be associated with your OAuth token credentials (see post #54 in this support-thread).
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Quote:
Originally Posted by
lat9
Arggh, I'd forgotten about that initial beta release. You can edit /includes/modules/shipping/upsoauth.php, adding the highlighted line:
Code:
if (!defined('MODULE_SHIPPING_UPSOAUTH_VERSION') || MODULE_SHIPPING_UPSOAUTH_VERSION !== $this->moduleVersion || count($this->keys()) !== $chk_sql->RecordCount()) {
if (!defined('MODULE_SHIPPING_UPSOAUTH_VERSION')) {
define('MODULE_SHIPPING_UPSOAUTH_VERSION', '1.0.0');
}
switch (MODULE_SHIPPING_UPSOAUTH_VERSION) {
case '0.0.1': //- Initial Beta release
case '1.0.0':
Made the change and reinstalled. I still get the same message. Thank you
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Quote:
Originally Posted by
n8pbm
Made the change and reinstalled. I still get the same message. Thank you
I changed it to:
Code:
switch (MODULE_SHIPPING_UPSOAUTH_VERSION) {
case '0.0.1': //- Initial Beta release
case '1.0.0':
case '1.2.0':
$db->Execute(
which worked fine.
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
UPS RESTful/OAuth v1.2.1 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2374
This release contains changes associated with the following GitHub issues:
#18: Correct upgrade when module is currently installed and disabled.
#19: Correctly return quotes when a shipment is less than 1 lb/kg.
1 Attachment(s)
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Quote:
Originally Posted by
lat9
UPS RESTful/OAuth v1.2.1 is now available for download:
https://www.zen-cart.com/downloads.php?do=file&id=2374
This release contains changes associated with the following GitHub issues:
#18: Correct upgrade when module is currently installed and disabled.
#19: Correctly return quotes when a shipment is less than 1 lb/kg.
Updated to 1.2.1 overwriting my manual changes and got the exact same error as the previous version.
1. Uninstalled old module from admin
2. Uploaded and used overwrite for all files included in 1.2.1
3. Installed and configured module and get the same prior error
Attachment 20409
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
In a word: cr@p
Is the shipping module enabled?
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
When you navigate to Tools :: Developers Tool Kit and enter MODULE_SHIPPING_UPSOAUTH_VERSION in the upper (database) search box, what displays?
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
Quote:
Originally Posted by
lat9
When you navigate to Tools :: Developers Tool Kit and enter MODULE_SHIPPING_UPSOAUTH_VERSION in the upper (database) search box, what displays?
Yes, enabled. Here are the results of the search:
Lookup CONSTANT Definitions |
Key: |
MODULE_SHIPPING_UPSOAUTH_VERSION |
Title: |
UPS OAuth Version |
Description: |
You have installed: |
Value: |
1.2.1 |
Group: |
ID#6 Module Options or, HIDDEN |
Re: UPS Shipping using RESTful/OAuth API [Support Thread]
I don't get it; that's a problem to be solved tomorrow.