PHP 8.3.4, ZC 2.1.0, ZCABootstrap 3.7.6
I don't know what is wrong but for some reason I cannot show the shipping estimator on the shipping cart as either a button or listing.
I keep getting the following error code:
The only thing I get a reference to is:Code:[11-Feb-2025 14:12:01 America/New_York] PHP Fatal error: Uncaught TypeError: Cannot access offset of type array on array in E:\xampp\htdocs\justuptown\includes\modules\shipping_estimator.php:152 Stack trace: #0 E:\xampp\htdocs\justuptown\includes\templates\bootstrap\templates\tpl_shopping_cart_default.php(229): require() #1 E:\xampp\htdocs\justuptown\includes\templates\bootstrap\common\tpl_main_page.php(233): require('E:\\xampp\\htdocs...') #2 E:\xampp\htdocs\justuptown\index.php(94): require('E:\\xampp\\htdocs...') #3 {main} thrown in E:\xampp\htdocs\justuptown\includes\modules\shipping_estimator.php on line 152
I can say removing the $currencies->currencies[$currency]['value'] bit of the code or just setting 'currency_value' to 1, causes the module to work and the shipping estimator form to display.Code:'currency_value' => isset($currency, $currencies->currencies[$currency]['value']) ? $currencies->currencies[$currency]['value'] : 1,
Odd enough I can run this on a barebones ZenCart and encounter no errors.


Reply With Quote
