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.
I'm off to bed.
Version is submitted to the module directory. Available on GitHub under Releases.
I just updated to all the new stuff. Upgraded my zencart to 2.1.0 and now using this plugin and not the old one for USPS. No clue what's going on. I have an item that is 1 oz and when i put in my zip code to get shipping estimate it shows $22.40 for ground advantage In the old system it would only be just over $5 https://thecubden.org/store
I just went in and checked the settings, resaved the info and it looks good now
I have several categories and products I cannot use USPS.
In the other USPS module, I was able to modify usps.php and add categories and products to exclude from using USPS. I thought I might be able to do the same with the uspsr.php but it is very different. Can I modify the file and where would I do this? would add this to the file:
//bof: Skip and only use UPS
$chk_cart = 0;
$chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id','4854');
$chk_cart += $_SESSION['cart']->in_cart_check('products_id','4');
//bof: Skip and only use UPS
$chk_cart = 0;
Thank you
never modify core code when you do not have to.
try and play along.
create an auto-loading observer. also this post.
that you want to observer this notifier.
if you have successfully gotten that far, you can then add your code as follows:
best.PHP Code:
public function updateNotifyShippingUspsUpdateStatus(&$class)
{
$chk_cart = 0;
$chk_cart += $_SESSION['cart']->in_cart_check('master_categories_id', '4854');
$chk_cart += $_SESSION['cart']->in_cart_check('products_id', '4');
if ($chk_cart > 0) {
$class->enabled = false;
}
}
^^ Effectively this. Because by modifying my core code, you'll just have the work erased when a new version comes out (right now working on getting First Class Mail Letter to work).
You can do this by targeting the NOTIFY_SHIPPING_USPS_CHECK_CART notifier on line 352 and having the $contents_ok variable return (boolean) false. This will in effect disable the module if triggered. I can probably write up an observer class sometime later after some testing.
Bookmarks