Zen Cart Logo
Forums / Addon Shipping Modules / USPS Shipping Module [Support Thread]

USPS Shipping Module [Support Thread]

Sticky

Views: 77,352

Results 141 to 160 of 447
10 Jul 2022, 7:03 PM
#141
swguy avatar

swguy

Administrator

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

USPS Shipping Module [Support Thread]

Thank you Cindy!

11 Jul 2022, 4:25 PM
#142
njcyx avatar

njcyx

Zen Follower

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

Re: USPS Shipping Module [Support Thread]

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.

11 Jul 2022, 5:19 PM
#143
swguy avatar

swguy

Administrator

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

Re: USPS Shipping Module [Support Thread]

I can replicate this issue.

11 Jul 2022, 5:27 PM
#144
njcyx avatar

njcyx

Zen Follower

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

Re: USPS Shipping Module [Support Thread]

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:

  • First-Class Mail® Parcel
  • First-Class™ Postcard Stamped
  • First-Class™ Large Postcards
  • First-Class™ Keys and IDs
  • First-Class™ Package Service
  • First-Class Mail® Metered Letter
  • First-Class™ Package Service Hold For Pickup
  • Priority Mail Express™ Hold for Pickup
  • Priority Mail Express™
  • Priority Mail Express™ Sunday/Holiday
  • USPS Retail Ground ( Standard Post™ )
  • Media Mail
  • Library Mail
  • Priority Mail®
  • Priority Mail® Keys and IDs
  • Priority Mail® Hold For Pickup
  • Priority Mail® Regional Rate Box A
  • Priority Mail® Regional Rate Box B

USPS International Services:

  • Priority Mail Express International™
  • Priority Mail International®
  • Global Express Guaranteed® (GXG)
  • Global Express Guaranteed® Envelope
  • Global Express Guaranteed® Non-Document Rectangular
  • Global Express Guaranteed® Non-Document Non-Rectangular
  • USPS GXG™ Envelope
  • First Class Package Service™ International Letters
  • First Class Package Service™ International Large Envelope
  • First Class Package International Service™
  • International Postcards
11 Jul 2022, 7:51 PM
#145
split63 avatar

split63

Totally Zenned

Join Date:
May 2010
Location:
Texas
Posts:
513
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

.
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?

11 Jul 2022, 8:29 PM
#146
dbltoe avatar

dbltoe

Totally Zenned

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

Re: USPS Shipping Module [Support Thread]

If you have a, you can load just the includes/modules/shipping/usps.php and files are updated without having to redo your settings.

11 Jul 2022, 8:35 PM
#147
swguy avatar

swguy

Administrator

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

Re: USPS Shipping Module [Support Thread]

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.

11 Jul 2022, 9:04 PM
#148
njcyx avatar

njcyx

Zen Follower

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

Re: USPS Shipping Module [Support Thread]

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;
12 Jul 2022, 12:04 PM
#149
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

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.

12 Jul 2022, 12:41 PM
#150
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

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.

12 Jul 2022, 1:51 PM
#151
njcyx avatar

njcyx

Zen Follower

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

Re: USPS Shipping Module [Support Thread]

Hi @lat9, thanks for your fast update again! I just updated my site to k11c and it worked great!

13 Jul 2022, 10:23 PM
#152
teresa529 avatar

teresa529

New Zenner

Join Date:
Oct 2008
Location:
Rancho cordova, CA
Posts:
12
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

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.

14 Jul 2022, 5:11 AM
#153
dbltoe avatar

dbltoe

Totally Zenned

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

Re: USPS Shipping Module [Support Thread]

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.

14 Jul 2022, 11:47 AM
#154
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

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:

27 Jul 2022, 1:25 AM
#155
rios avatar

rios

New Zenner

Join Date:
Dec 2018
Posts:
4
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

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.

27 Jul 2022, 1:50 AM
#156
rios avatar

rios

New Zenner

Join Date:
Dec 2018
Posts:
4
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

Nevermind, re-installed the payment module folder and solved the issue.

30 Jul 2022, 4:08 PM
#157
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

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).

31 Jul 2022, 6:02 PM
#158
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

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

7 Aug 2022, 11:30 AM
#159
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,096
Plugin Contributions:
56

Re: USPS Shipping Module [Support Thread]

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!

11 Aug 2022, 1:58 PM
#160
njcyx avatar

njcyx

Zen Follower

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

Re: USPS Shipping Module [Support Thread]

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']);
}