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

USPS Shipping Module [Support Thread]

Sticky

Views: 77,349

Results 421 to 440 of 447
4 Feb 2025, 5:26 PM
#421
ndboots avatar

ndboots

New Zenner

Join Date:
Aug 2011
Location:
North Dakota
Posts:
68
Plugin Contributions:
0

USPS Shipping Module [Support Thread]

retched:

I was asking about the address used as part of the quote.

The Shipping Estimator won't work off non-logged in accounts unless a zip code and destination country is presented as that is part of the quote. (How would you get a USPS Shipping quote if there is no Zip Code to check against? You have to provide that as part of the quote. So there are fields to enter.)

Some part of the address is broken because ND Ph 701-486- is not a state, and looks like part of a phone number.

What info is being presented?

Thanks for reply Retched. It sounds like you think that the "/includes/templates/template_default/templates/tpl_checkout_shipping_default.php" file was for the shipping estimator then, instead for for Logined in Step 1 Checkout then. The name of the file of "tpl_checkout_shipping_default.php" would to be seem like it was for check out. No, I used the full state name and zipcode, prior to login, when the shipping estimator only gave me option to "pickup at store".

My previous Zen Cart would give estimated shipping cost to state and zip code, up until my webhost updated to PHP 8.1, then that shopping cart would no longer function right. Which is why I installed ZenCart 8.1.0 which also does not function right. The "main disfunction" is, can not got beyond checkout Step 1 for no continue button. But there are two other issues, which is shipping estimator does not calculate shipping cost when state name and zip is added prior to login. The other issue is, after login, "store pickup" radio icon does not show the radio button and text, during Step 1 of checkout, but the field area is there for it. And the biggest issue is there is NO CONITUE BUTTON to go to Step 2 of checkout.

4 Feb 2025, 6:35 PM
#422
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,794
Plugin Contributions:
22

Re: USPS Shipping Module [Support Thread]

balihr:

Based on the screenshot, my guess is this was an upgrade from an older version and storepickup options haven't been updated. Try removing storepickup module in the admin (not disable, but completely remove) and see if the error persists. Then simply install it again and configure as you need it and try again - hopefully the error will be gone.

Can you PLEASE try what I had suggested here?

The checkout_shipping page does load your USPS rates and moves on to the next available shipping option which is in your case store pickup (which is clear from the screenshot). It loads the title of that module and then tries to process the module itself and THEN breaks - this is why you don't see the radio button for store pickup. So, please try the suggestion above because I have a feeling you're wasting your time on USPS which seems to work fine.

The fatal error that you're getting is probably your storepickup module failing to format the cost of storepickup module or its location surcharges.

4 Feb 2025, 10:53 PM
#423
ndboots avatar

ndboots

New Zenner

Join Date:
Aug 2011
Location:
North Dakota
Posts:
68
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

balihr:

Can you PLEASE try what I had suggested here?

The checkout_shipping page does load your USPS rates and moves on to the next available shipping option which is in your case store pickup (which is clear from the screenshot). It loads the title of that module and then tries to process the module itself and THEN breaks - this is why you don't see the radio button for store pickup. So, please try the suggestion above because I have a feeling you're wasting your time on USPS which seems to work fine.

The fatal error that you're getting is probably your storepickup module failing to format the cost of storepickup module or its location surcharges.

Thank you so much balihr, for this tip, it was an answer to prayer! May God Bless you! I just installed ZenCart 2.1.0, and copied the MySql database to a new database, I did not copy over my old site images until the update finished. I was using the Responsive Classic theme, so only needed to change some wording here and there. I had turned on and off the store pickup a couple times, but never removed it. It's hard to believe that was what was causing the problem though. Anyway, it WORKED! The shopping cart goes through the make payment steps now, and I was able to make a test charge successfully! Thank you so much for that little tip!

4 Feb 2025, 11:05 PM
#424
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,794
Plugin Contributions:
22

Re: USPS Shipping Module [Support Thread]

NDboots:

Thank you so much for that little tip!

Glad to hear this was the problem. And this is pretty much the definition of "can't see the forest for the trees" :wink:

Don't forget to turn off USPS logging, no need to save these logs every time the module is triggered.

5 Feb 2025, 4:48 PM
#425
ndboots avatar

ndboots

New Zenner

Join Date:
Aug 2011
Location:
North Dakota
Posts:
68
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

balihr:

Glad to hear this was the problem. And this is pretty much the definition of "can't see the forest for the trees" :wink:

Don't forget to turn off USPS logging, no need to save these logs every time the module is triggered.

Thanks again for the extra advice balihr. I did shut off the USPS logging for now. But, I have installed ZenCart since 2004, I'm just no PHP programmer. But, besides for my own seasonal business, also for a couple non-profits I like to help, who did not have funds to hire anyone. I found when FTP is used to delete lots of files in a log, it does it one at a time, and that takes a long time. But, instead, go into the webhost file manager, one can delete the whole log folder in just a few seconds. Then I just copy back in the log folder from the original install files, so have that cleaned out in 3 to 4 minutes.

14 Feb 2025, 4:01 PM
#426
njcyx avatar

njcyx

Zen Follower

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

Re: USPS Shipping Module [Support Thread]

I just received an email from usps:

"As published in the February 6, 2025 Industry Alert, the Web Tools API platform will be retired on January 25, 2026. To avoid any service disruptions, we encourage you to migrate to the new USPS APIs as soon as possible.

The functional equivalents of the Web Tools API are available in the USPS API Catalogue: USPS APIs Developer Portal.

Additionally, please be aware that the Web Tools Label API retired on July 14, 2024. For Label API migration resources, visit the Announcements section at Web Tools APIs | USPS.

We value your input and would appreciate your feedback. Please take a moment to complete our brief Feedback Form. Your responses help us improve our services and ensure we meet your needs effectively.

This email comes from an unmonitored mailbox. For questions or support, please contact API Support. Thank you for your continued partnership."

Is any action required on my end for this USPS plug-in?

14 Feb 2025, 4:48 PM
#427
split63 avatar

split63

Totally Zenned

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

Re: USPS Shipping Module [Support Thread]

I received that notification from USPS also.

14 Feb 2025, 4:51 PM
#428
lat9 avatar

lat9

Administrator

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

Re: USPS Shipping Module [Support Thread]

Here's a copy of that email (with the links included):

As published in the February 6, 2025 Industry Alert (https://postalpro.usps.com/node/13834), the Web Tools API platform will be retired on January 25, 2026. To avoid any service disruptions, we encourage you to migrate to the new USPS APIs as soon as possible.

The functional equivalents of the Web Tools API are available in the USPS API Catalogue: USPS APIs Developer Portal (https://developers.usps.com/apis).

Additionally, please be aware that the Web Tools Label API retired on July 14, 2024. For Label API migration resources, visit the Announcements section at Web Tools APIs | USPS (https://www.usps.com/business/web-tools-apis/welcome.htm).

We value your input and would appreciate your feedback. Please take a moment to complete our brief Feedback Form. Your responses help us improve our services and ensure we meet your needs effectively.

This email comes from an unmonitored mailbox. For questions or support, please contact API Support. Thank you for your continued partnership.

Thank You,
USPS API Functional Team
Visit us at: usps.com/webtools, developers.usps.com

@retched has graciously updated the USPS Shipping module to make use of those updated APIs, available via download from the Zen Cart plugins: https://www.zen-cart.com/downloads.php?do=file&id=2395

14 Feb 2025, 4:58 PM
#429
split63 avatar

split63

Totally Zenned

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

Re: USPS Shipping Module [Support Thread]

Has anyone confirmed that the updated module by RESTful will work with 1.5.7c?

14 Feb 2025, 6:17 PM
#430
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]

lat9:

Here's a copy of that email (with the links included):
@retched has graciously updated the USPS Shipping module to make use of those updated APIs, available via download from the Zen Cart plugins: https://www.zen-cart.com/downloads.php?do=file&id=2395That link shows that it is declared usable with 1.5.7 and later.

14 Feb 2025, 7:20 PM
#431
lat9 avatar

lat9

Administrator

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

Re: USPS Shipping Module [Support Thread]

dbltoe:

That link shows that it is declared usable with 1.5.7 and later.
Sounds like time to upgrade to a now-current version of Zen Cart if a site wants to continue shipping via USPS.

15 Feb 2025, 5:06 AM
#432
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: USPS Shipping Module [Support Thread]

split63:

Has anyone confirmed that the updated module by RESTful will work with 1.5.7c?

I don't have an easy way to test with 1.5.7 but I guess I can test. I generally tested only with 1.5.8 onward. I strongly suggest you move up to 1.5.8 or 2.0.0 onward.

15 Feb 2025, 10:29 PM
#433
ndboots avatar

ndboots

New Zenner

Join Date:
Aug 2011
Location:
North Dakota
Posts:
68
Plugin Contributions:
0

Re: USPS Shipping Module [Support Thread]

lat9:

Here's a copy of that email (with the links included):

@retched has graciously updated the USPS Shipping module to make use of those updated APIs, available via download from the Zen Cart plugins: https://www.zen-cart.com/downloads.php?do=file&id=2395

Will the USPS United States Postal Service - Version: 2024-08-25 K11l work with these requirements?

16 Feb 2025, 1:11 PM
#434
lat9 avatar

lat9

Administrator

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

Re: USPS Shipping Module [Support Thread]

NDboots:

Will the USPS United States Postal Service - Version: 2024-08-25 K11l work with these requirements?
If, by these requirements, you mean the USPS requirement to change the API used to receive quotes ... the answer is no; that's why @retched has created that brand-new one that "talks the talk".

17 Feb 2025, 5:15 PM
#435
njcyx avatar

njcyx

Zen Follower

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

Re: USPS Shipping Module [Support Thread]

Version: 2024-08-25 K11l. OPC 2.5.4

Not sure if it is worthy to debug this plug-in now or not. Since last Friday, I started to receive the following warning. Like around 4 per day.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: P line 6 and BODY in /includes/modules/shipping/usps.php on line 1616.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): </BODY></HTML> in /includes/modules/shipping/usps.php on line 1616.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): ^ in /includes/modules/shipping/usps.php on line 1616.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: BODY line 3 and HTML in /includes/modules/shipping/usps.php on line 1616.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): </BODY></HTML> in /includes/modules/shipping/usps.php on line 1616.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): ^ in /includes/modules/shipping/usps.php on line 1616.

Line 1616 is the following.

$body_array = simplexml_load_string($body);

Line 483 is the following.

$this->uspsQuote = $this->_getQuote();

No change for USPS code in the past several months. It is my first time to see this type of warning.

17 Feb 2025, 5:21 PM
#436
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: USPS Shipping Module [Support Thread]

I keep receiving emails from USPS

USPS Web Tools Notice – Migrate to USPS APIs before January 2026

Do we need to update the module?

17 Feb 2025, 5:51 PM
#437
lat9 avatar

lat9

Administrator

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

Re: USPS Shipping Module [Support Thread]

Webskipper:

I keep receiving emails from USPS

USPS Web Tools Notice – Migrate to USPS APIs before January 2026

Do we need to update the module?
You'll need to get new credentials for use with the USPS RESTful (https://www.zen-cart.com/downloads.php?do=file&id=2395) updated shipping module.

18 Feb 2025, 2:27 PM
#438
njcyx avatar

njcyx

Zen Follower

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

Re: USPS Shipping Module [Support Thread]

njcyx:

Version: 2024-08-25 K11l. OPC 2.5.4

Not sure if it is worthy to debug this plug-in now or not. Since last Friday, I started to receive the following warning. Like around 4 per day.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: P line 6 and BODY in /includes/modules/shipping/usps.php on line 1616.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): </BODY></HTML> in /includes/modules/shipping/usps.php on line 1616.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): ^ in /includes/modules/shipping/usps.php on line 1616.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: BODY line 3 and HTML in /includes/modules/shipping/usps.php on line 1616.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): </BODY></HTML> in /includes/modules/shipping/usps.php on line 1616.

[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): ^ in /includes/modules/shipping/usps.php on line 1616.

> 
> Line 1616 is the following.
> ```php
$body_array = simplexml_load_string($body);

Line 483 is the following.

$this->uspsQuote = $this->_getQuote();

> 
> No change for USPS code in the past several months. It is my first time to see this type of warning.

I keep receiving this warning everyday since last Friday. I highly doubt USPS changed something on this API since last Friday. 

Temp fix. Add "error_reporting(0);" to the 2nd line of the code.
18 Feb 2025, 3:51 PM
#439
lat9 avatar

lat9

Administrator

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

Re: USPS Shipping Module [Support Thread]

@njcyx, something changed! If you turn on USPS debug, the response received from USPS will be logged.

20 Feb 2025, 2:33 PM
#440
njcyx avatar

njcyx

Zen Follower

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

Re: USPS Shipping Module [Support Thread]

Update. I turned on the USPS debug on this Tuesday, and I haven't received any warning after that!

USPS maybe just corrected the bug on their side this Tuesday then. Anyway.

Thanks.