Okay I think that explains dbltoe's error log earlier. Will look into this one.
Printable View
It might also make sense to review how the old USPS module handles this.
I get that this is a bunch of work. Thanks for helping the project by tackling it.
Yup that actually put me on to the right path. Pretty much I just ended up checking to see what the value of $method was and, if set/not empty, only added that to $quotes array. Before this, the entire list was sent to checkout_confirmation and ZenCart only put the first item from the array.
Nonetheless, I have pulled it off. I managed to get ZenCart to play nice with standard and OPC checkout. I still have to look into an odd issue with the date of delivery and days count being plastered twice. (I cannot replicate this, but am looking out for it. If you encounter this, please tell me what options you used (shipping methods, etc.) right away so I can try to replicate it.)
Combined v1.1.1 + v1.1.2 Notes (to the admins of the modules directory, please delete 1.1.1 if it hasn't been published... it's redundant at this point)
What's changed?
Fixed
- (v1.1.1) Resolved all issues with regards to 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, bad regex matching). (Issue #32)
- (v1.1.2) Resolved 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.) (Issue #34)
Download from GitHub: https://github.com/retched/ZC-USPSRe...ses/tag/v1.1.2, ZenCart modules directory coming shortly.
Just tested - you've got it! Thanks for your diligence.
Using encapsuilated latest github. 500 error at plugin update.
Code:[08-Mar-2025 20:54:03 UTC] PHP Fatal error: Uncaught Error: Call to undefined method messageStack::addSession() in /zc_plugins/USPSRestful/v1.1.2/Installer/ScriptedInstaller.php:235
Stack trace:
#0 /includes/classes/PluginSupport/ScriptedInstaller.php(76): ScriptedInstaller->executeUpgrade('v0.0.0')
#1 /includes/classes/PluginSupport/Installer.php(114): Zencart\PluginSupport\ScriptedInstaller->doUpgrade('v0.0.0')
#2 /includes/classes/PluginSupport/Installer.php(59): Zencart\PluginSupport\Installer->executeScriptedUpgrader('/home/enigjohn/...', 'v0.0.0')
#3 /includes/classes/PluginSupport/BasePluginInstaller.php(55): Zencart\PluginSupport\Installer->executeUpgraders('/home/enigjohn/...', 'v0.0.0')
#4 /includes/classes/ViewBuilders/PluginManagerController.php(302): Zencart\PluginSupport\BasePluginInstaller->processUpgrade('USPSRestful', 'v1.1.2', 'v0.0.0')
#5 /includes/classes/ViewBuilders/BaseController.php(37): Zencart\ViewBuilders\PluginManagerController->processActionDoUpgrade()
#6 /jetmar_ENL210/plugin_manager.php(101): Zencart\ViewBuilders\BaseController->processRequest()
#7 /jetmar_ENL210/index.php(16): require('/home/enigjohn/...')
#8 {main}
thrown in /zc_plugins/USPSRestful/v1.1.2/Installer/ScriptedInstaller.php on line 235
[08-Mar-2025 20:54:03 UTC] Request URI: /jetmar_ENL210/index.php?cmd=plugin_manager&page=1&colKey=USPSRestful&action=doUpgrade, IP address: 216.177.186.199
--> PHP Fatal error: Uncaught Error: Call to undefined method messageStack::addSession() in /zc_plugins/USPSRestful/v1.1.2/Installer/ScriptedInstaller.php:235
Stack trace:
#0 /includes/classes/PluginSupport/ScriptedInstaller.php(76): ScriptedInstaller->executeUpgrade('v0.0.0')
#1 /includes/classes/PluginSupport/Installer.php(114): Zencart\PluginSupport\ScriptedInstaller->doUpgrade('v0.0.0')
#2 /includes/classes/PluginSupport/Installer.php(59): Zencart\PluginSupport\Installer->executeScriptedUpgrader('/home/enigjohn/...', 'v0.0.0')
#3 /includes/classes/PluginSupport/BasePluginInstaller.php(55): Zencart\PluginSupport\Installer->executeUpgraders('/home/enigjohn/...', 'v0.0.0')
#4 /includes/classes/ViewBuilders/PluginManagerController.php(302): Zencart\PluginSupport\BasePluginInstaller->processUpgrade('USPSRestful', 'v1.1.2', 'v0.0.0')
#5 /includes/classes/ViewBuilders/BaseController.php(37): Zencart\ViewBuilders\PluginManagerController->processActionDoUpgrade()
#6 /jetmar_ENL210/plugin_manager.php(101): Zencart\ViewBuilders\BaseController->processRequest()
#7 /jetmar_ENL210/index.php(16): require('/home/enigjohn/...')
#8 {main}
thrown in /zc_plugins/USPSRestful/v1.1.2/Installer/ScriptedInstaller.php on line 235.
[08-Mar-2025 20:54:03 UTC] Request URI: /jetmar_ENL210/index.php?cmd=plugin_manager&page=1&colKey=USPSRestful&action=doUpgrade, IP address: 216.177.186.199
--> PHP Fatal error: Uncaught Error: Call to undefined method messageStack::addSession() in /zc_plugins/USPSRestful/v1.1.2/Installer/ScriptedInstaller.php:235
Stack trace:
#0 /includes/classes/PluginSupport/ScriptedInstaller.php(76): ScriptedInstaller->executeUpgrade('v0.0.0')
#1 /includes/classes/PluginSupport/Installer.php(114): Zencart\PluginSupport\ScriptedInstaller->doUpgrade('v0.0.0')
#2 /includes/classes/PluginSupport/Installer.php(59): Zencart\PluginSupport\Installer->executeScriptedUpgrader('/home/enigjohn/...', 'v0.0.0')
#3 /includes/classes/PluginSupport/BasePluginInstaller.php(55): Zencart\PluginSupport\Installer->executeUpgraders('/home/enigjohn/...', 'v0.0.0')
#4 /includes/classes/ViewBuilders/PluginManagerController.php(302): Zencart\PluginSupport\BasePluginInstaller->processUpgrade('USPSRestful', 'v1.1.2', 'v0.0.0')
#5 /includes/classes/ViewBuilders/BaseController.php(37): Zencart\ViewBuilders\PluginManagerController->processActionDoUpgrade()
#6 /jetmar_ENL210/plugin_manager.php(101): Zencart\ViewBuilders\BaseController->processRequest()
#7 /jetmar_ENL210/index.php(16): require('/home/enigjohn/...')
#8 {main}
thrown in /zc_plugins/USPSRestful/v1.1.2/Installer/ScriptedInstaller.php on line 235.
That worked but still getting the double est. delivey on the second option.
same config and error is on estimator first.