I totally didn't mean to submit this as an update to the WebTools module (mods: please deny/delete that update)
New changes coming in 1.8.5
Added in 1.8.5
- Added new debug log message that will generate when the module installs or upgrades to the next version. Also improved the comparison mechanism between when the versions differ. (This prevents accidental downgrades.)
Removed in 1.8.5
- Dropped the warning about lower-tiered API access. The USPS has bumped the request limits for basic tiers from 60 requests per hour to 10,000 requests per day. At that point, if you have a high-demand site that receives 10,000 hits per day, you should then reach out and request a higher level of access. [#128]
Fixed in 1.8.5
- Once again fixed the issue of the zero weight carts not causing the cart to progress correctly. (This bug should have been fixed in 1.8.0 but it wasn’t. dbltoe from the Forums gave a fix that should patch it). [#133]
---
PLEASE READ THE "README_1st.md" file FIRST
This zip file includes both the Encapsulated and Non-Encapsulated forms of the module. Please read the directions in the included README.html or README.md to see how to install it and which versions of ZenCart are compatible with each version.
As always:
- Traditional/Manual: Overwrite everything from the admin directory into your admin directory. Overwrite everything from the root/includes directory into the includes directory of the root of your ZenCart.
- Encapsulated: Upload the zc_plugins directory from the root of the ZIP to the root of your admin. (Nothing should be overwritten as it is a new directory.) Visit the Plugins Manager and upgrade from there.
I'm running 1.5.8a and recently updated the USPS module to 1.8.5 without a problem. I have around 250 categories/sub-categories (the highest catID is 297, but some categories have been deleted over time, or may not contain any products currently), but only 3 have products that would qualify for Media Mail. To be safe I added a complete list of category numbers 1-300 in the exclude field within the module settings (except the 3 categories); however, the module continues to display Media Mail as an option, even when carts with items from the excluded categories are present. When I try with just one category listed it works fine. So, I'm wondering if I have too many categories and the module is ignoring the string, or perhaps adding catID for non-existent or empty categories possibly causing the issue? Would it be any easier to modify the code to only list the "allowed" categories, which would also be beneficial as new categories are added in the future in case I forget to manually add them to the excluded list? Thanks in advance!
I appear to have resolved my problem by modifying the preg_split coding in the includes/modules/shipping/uspsr.php file around line 3031:
I changed
toCode:$key_values = preg_split('/[\s+]/', MODULE_SHIPPING_USPSR_MEDIA_MAIL_EXCLUDE);
Whether this would work in all cases I don't know, but if there is a better fix (or perhaps a setting issue I missed that would allow the original code to work) please let me know.Code:$key_values = preg_split('/[\s,]+/', MODULE_SHIPPING_USPSR_MEDIA_MAIL_EXCLUDE);