USPS Shipping (RESTful)
This module allows sellers to offer customers United States Postal Service (USPS) shipping rates during checkout. The rates are pulled directly from the USPS API v3. This module innately supports versions 1.5.8 onward. (Support from 1.5.7 and backward is not necessarily guaranteed but is plausible. Read the Installation steps in the readme for more details.) This script was primarily written with PHP8 in mind. (It might have problems working with PHP7.) --------------- If you use the "USPS Web Tools module" and it works for you, KEEP USING IT. There is no major difference between this module and the original Web Tools API and this module. This module is being provided as a headstart to the eventual deprecation of USPS WebTools. |
![]() |
v1.5.5, v1.5.6, v1.5.7, v1.5.8, v2.0.0, v2.1.0 |
![]() |
retched |
![]() |
retched - 16 Mar 2025 |
![]() |
172 |
Version History
USPS Shipping (RESTful) - Version: v1.2.0 | |||||||||||||
To non-encapsulated users: starting with 1.1.0, you can simply overwrite the installation by extracting the files as directed. If there were any database changes, the module will self-correct. Fixed - Fixed an issue where the estimated delivery and estimated day count would repeat twice. (Ex: "USPS (Priority Mail [est. delivery 03/09/2025] [est. delivery 03/09/2025])) Still not sure where it came from but it's resolved. [#36] - Fixed an issue where an older version of ZenCart would try to invoke zen_db_perform with capitalized commands (`UPDATE` instead of `update`) and ZC just doesn't know what to do. [#40] - Fixed an issue where after selecting add-ons, you couldn't clear all of them off in bulk. In short, you had to leave one up and deselect the others. [#42] - Fixed an issue where the originating JSON request wasn't being attached to the log. [#43] - Fixed an issue that caused a crash when using the "Shipping Zones" function to limit where the module should be allowed. (This evidently was also an issue in lat9's USPS module as they were trying to move away from the legacy form of traversing `$db` output. Whenever the `MoveNext()` functionality is removed, that will cause a breaking change in the module as older ZC's will be left out.) [#44] --- This zip file includes both the Encapsulated and Non-Encapsulated forms of the module. Please read the directions of the included README.html or README.md to see how to install it and which versions of ZenCart can use which versions. |
|||||||||||||
|
|||||||||||||
USPS Shipping (RESTful) - Version: v1.1.2 | |||||||||||||
To non-encapsulated users: starting with 1.1.0, you can simply overwrite the file. If there were any database changes, the module will self-correct. Fixed - (v1.1.1) Resolved all issues regarding the selection of shipping methods during checkout. (Issues #28, #29, #30, #31) (Long and short run, there was a problem with the counting of each module presented and it caused issues.) - (v1.1.1) Fixed an issue that came up when trying to squash options but you were also using estimated dates/times (the squashing was ignored and all options were presented anyway due to bad regex matching). (Issue #32) - (v1.1.2) Fixed an issue that users had with selecting a shipping method and having it "stick". (There was an unused $method variable that was set by ZenCart that stored the selected method which is used to carry it forward but was ignored by the main logic and instead had the first option listed displayed instead.) (Issue #34) --- This zip file includes both the Encapsulated and Non-Encapsulated forms of the module. Please read the directions of the included README.html or README.md to see how to install it and which versions of ZenCart can use which versions. |
|||||||||||||
|
|||||||||||||
USPS Shipping (RESTful) - Version: v1.1.0 | |||||||||||||
Added - The module will now call into the ZenCart Plugin database to see if a new version is available. If there is, you will see a banner on the top of the page alerting you. [Issue #19] - Ground Advantage and Ground Advantage Cubic will now be squashed into the cheaper method being offered. Same with Priority Mail and Priority Mail Cubic. [Issue #23]. (In short, if you have both Priority Mail and Priority Mail Cubic quoted, with the toggle made for Priority Mail, the module will choose the cheaper of the two methods and display that.) Removed - Removed the check and comparison to see what format the site is using for shipping and length measurements on upgrades. (It was supposed to check if kilograms was the rate at the time of installation and then convert the defaults to that. Now, the module will check on install, place those defaults, and leave it. This means if you change the measuring standard, you'll have to reset the limits of the shipping methods.) - Removed the unit of measure from the shipping methods table. (It wasn't supposed to go into the final cut.) Changed - Debug mode now has two separate modes: Display Errors, and Generate Logs. If errors are found, they are hidden from the customer view unless toggled on. Additionally, you can generate logs for all requests. (TODO: On any error, generate a log regardless of setting.) Fixed - There was a spelling error for "Priority Mail" which made "Priorty Mail". That was fixed. - Resolved Issue #25: Some error messages still bled through even though there was a series of flags and checks to make sure not to bother with launching the quote. Now the logic is: If the order country is bound to the United States and there is no zip code, the module will not try to get a quote. If the quote is requested for an order going elsewhere, the Zip Code is less important. --- This zip file includes both the Encapsulated and Non-Encapsulated forms of the module. Please read the directions of the included README.html or README.me to see how to install it and which versions of ZenCart can use which versions. |
|||||||||||||
|
|||||||||||||
USPS Shipping (RESTful) - Version: 1.0.0 | |||||||||||||
[Encapsulated version] See full patch notes on the forum support thread: https://www.zen-cart.com/showthread.php?230512-USPS-Shipping-(RESTful)-(USPSr)&p=1406123#post1406123 |
|||||||||||||
|
|||||||||||||
USPS Shipping (RESTful) - Version: 1.0.0_noEPS | |||||||||||||
[Non-encapsulated version] See full patch notes on forum support thread: https://www.zen-cart.com/showthread.php?230512-USPS-Shipping-(RESTful)-(USPSr)&p=1406123#post1406123 |
|||||||||||||
|
|||||||||||||
USPS Shipping (RESTful) - Version: 0.2.0_noEPS | |||||||||||||
[Non-encapsulated Version] Full changelog can be found here: https://www.zen-cart.com/showthread.php?230512-USPS-Shipping-(RESTful)-(USPSr)&p=1405380#post1405380 |
|||||||||||||
|
|||||||||||||
USPS Shipping (RESTful) - Version: 0.2.0 | |||||||||||||
[Encapsulated Version] Full changelog can be found here: https://www.zen-cart.com/showthread.php?230512-USPS-Shipping-(RESTful)-(USPSr)&p=1405380#post1405380 |
|||||||||||||
|
|||||||||||||
USPS Shipping (RESTful) - Version: 0.1.0 | |||||||||||||
Initial Release. --- This download contains the encapsulated version. A non-encapsulated version is available from the GitHub Repository's "Releases" page. To use the encapsulated version with 1.5.7, you must make changes to your installation to allow for front-side encapsulated plugins. |
|||||||||||||
|
|||||||||||||
USPS Shipping (RESTful) - Version: 0.0.0 | |||||||||||||
|
|||||||||||||