Administrator
- Join Date:
- Feb 2006
- Location:
- Tampa Bay, Florida
- Posts:
- 10,703
- Plugin Contributions:
- 56
USPS Shipping Module [Support Thread]
Thank you Cindy!
Views: 77,352
Administrator
Thank you Cindy!
Zen Follower
Hi @lat9, thanks for your fast update on this plug-in! I just upgraded my site to 2022-07-10 K11b (downloaded from github) and US domestic works good (first-class, priority, EMS). However, Priority Express Intl (International EMS) doesn't show up like before. I have double checked that "Priority Express Intl" is enabled under the settings page.
Administrator
I can replicate this issue.
Zen Follower
Hi @swguy, thanks for your test.
Hi @lat9, I did some search to try to find the updated shipping method names and I found the following link. Not sure if it is useful or not. Google said this link is updated 3 days ago.
https://ve.wordpress.org/plugins/elex-usps-shipping-method/
USPS Domestic Services:
USPS International Services:
Totally Zenned
.
In the readme.txt file of the "2021-07-10 Version K11b" update is this:
"2. If USPS exists, Click on USPS and edit then save all your settings to NotePad as they will be lost ... UNLESS
... you've currently got '2021-05-05 K11a' installed and you're updating to '2022-07-10 K11b'. For that
update (and possibly future ones), the update is automatic so that you don't need to re-enter all
your settings!
"
For those that do have 2021-05-05 K11a installed, do the directions after that step change? For example, do we still remove the plugin? Does this delete the old plugin files?
Totally Zenned
If you have a, you can load just the includes/modules/shipping/usps.php and files are updated without having to redo your settings.
Administrator
You want to visit Admin > Modules > Shipping and click USPS to verify the update worked. Assuming all was well you'll see a green message at the top of the screen ("Updated to USPS version ...") and the right sidebox will say USPS version 2022-07-10 K11b.
Zen Follower
njcyx:
Hi @lat9, thanks for your fast update on this plug-in! I just upgraded my site to 2022-07-10 K11b (downloaded from github) and US domestic works good (first-class, priority, EMS). However, Priority Express Intl (International EMS) doesn't show up like before. I have double checked that "Priority Express Intl" is enabled under the settings page.
Ok I think I found the fix for this bug. I tested it on my site and it worked good. Maybe @lat9 has a better way to improve...
\includes\modules\shipping\usps.php
Near line 626, change from
if ($type === 'Priority Mail Flat RateRM Envelope') {
$type = 'Priority MailRM Flat Rate Envelope';
}
$type_rebuilt = $type;
To
if ($type === 'Priority Mail Flat RateRM Envelope') {
$type = 'Priority MailRM Flat Rate Envelope';
}
if ($type === 'Priority Mail Express InternationalRM') {
$type = 'Priority Mail Express International';
}
$type_rebuilt = $type;
Administrator
njcyx:
Hi @lat9, thanks for your fast update on this plug-in! I just upgraded my site to 2022-07-10 K11b (downloaded from github) and US domestic works good (first-class, priority, EMS). However, Priority Express Intl (International EMS) doesn't show up like before. I have double checked that "Priority Express Intl" is enabled under the settings page.
Sigh, the Priority Mail Express International has also changed from a TM to an RM; update forthcoming.
Administrator
2022-07-12 K11c of the USPS Shipping module has been submitted for the Zen Cart moderators' review.
This release corrects the quote-checking for "Priority Mail Express International" methods; see GitHub issue #22.
Zen Follower
Hi @lat9, thanks for your fast update again! I just updated my site to k11c and it worked great!
New Zenner
Is the latest version of the USPS Shipping module compatible with Zencart V 1.5.5d? Our Priority Mail quit showing with the latest price increase from USPS.
Totally Zenned
teresa529:
Is the latest version of the USPS Shipping module compatible with Zencart V 1.5.5d? Our Priority Mail quit showing with the latest price increase from USPS.It should work fine. If you have 2021-05-05 K11a, it's a simple matter of overwriting includes/modules/shipping/usps.php from the version 2022-07-12 K11c download.
Administrator
teresa529:
Is the latest version of the USPS Shipping module compatible with Zencart V 1.5.5d? Our Priority Mail quit showing with the latest price increase from USPS.
dbltoe:
It should work fine. If you have 2021-05-05 K11a, it's a simple matter of overwriting includes/modules/shipping/usps.php from the version 2022-07-12 K11c download.
What @dbltoe said.:smile:
New Zenner
Hey guys,
After I updated the USPS module I started having problems with payment page.
I tried reversing what what done, meaning reinstalled the 2021 usps files but nothing changed.
Here is what I have at the checkout page.
MODULE_PAYMENT_PAYFLOW_TEXT_TITLE
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_FIRSTNAME
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_LASTNAME
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_NUMBER
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_EXPIRES
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_CHECKNUMBER
MODULE_PAYMENT_PAYFLOW_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION
MODULE_PAYMENT_PAYPALWPP_TEXT_BUTTON_ALTTEXT MODULE_PAYMENT_PAYPALWPP_MARK_BUTTON_TXT
My cart version is v1.5.4
Any help will be very much appreciated.
New Zenner
Nevermind, re-installed the payment module folder and solved the issue.
Administrator
I've just uploaded 2022-07-30 K11d for the Zen Cart moderators' review and will post back here when it's available for download.
This release contains the correction for GitHub issue #23 (CommitmentName coming back as an empty array).
Administrator
lat9:
I've just uploaded 2022-07-30 K11d for the Zen Cart moderators' review and will post back here when it's available for download.
This release contains the correction for GitHub issue #23 (CommitmentName coming back as an empty array).
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1292
Administrator
I've just uploaded USPS version 2022-08-07 K11e, correcting the auto-update from 2022-07-12 K11c due to a misspelling (see GitHub issue #25).
Sorry about the churn!
Zen Follower
2022-08-07 K11e
This morning, my site received several error messages from an Australian customer:
[11-Aug-2022 07:10:50 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: 121.213.160.xx
#1 usps->quote() called at [/includes/classes/shipping.php:174]
#2 shipping->quote() called at [/includes/modules/pages/checkout_one/header_php.php:222]
#3 require(/includes/modules/pages/checkout_one/header_php.php) called at [/home3/auberins/public_html/index.php:35]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /includes/modules/shipping/usps.php on line 555.
and
[11-Aug-2022 06:54:41 America/New_York] Request URI: /index.php?main_page=popup_shipping_estimator, IP address: 121.213.160.x
#1 usps->quote() called at [/includes/classes/shipping.php:174]
#2 shipping->quote() called at [/includes/modules/shipping_estimator.php:156]
#3 require(/includes/modules/shipping_estimator.php) called at [/includes/templates/template_default/popup_shipping_estimator/tpl_main_page.php:16]
#4 require(/includes/templates/template_default/popup_shipping_estimator/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: count(): Parameter must be an array or an object that implements Countable in /includes/modules/shipping/usps.php on line 555.
Line 555 is the following:
if ($this->is_us_shipment) {
$PackageSize = count($uspsQuote['Package']);
// if object has no legitimate children, turn it into a firstborn:
if (isset($uspsQuote['Package']['ZipDestination']) && !isset($uspsQuote['Package'][0]['Postage'])) {
$uspsQuote['Package'][] = $uspsQuote['Package'];
$PackageSize = 1;
}
} else {
$PackageSize = count($uspsQuote['Package']['Service']); //line 555
}
I remember this error and I found out a temporary solution as the following before. I thought this bug was fixed already so I removed this modification... Maybe @lat9 has a better way to improve.
Change
$PackageSize = count($uspsQuote['Package']['Service']); //line 555
To
if ($uspsQuote['Package']['Service']) {
$PackageSize = count($uspsQuote['Package']['Service']);
}
Tell staff why this post should be reviewed.