Thanks Cindy for the code....and yes (sorry) I am running v.2.1
I will implement this code and let you know tomorrow how it all works out!
Thanks Cindy for the code....and yes (sorry) I am running v.2.1
I will implement this code and let you know tomorrow how it all works out!
Here is another of the PHP Warnings that I get in Debug Log....hoping you will be able to help with this one as well.....
Request URI: /shop/index.php?main_page=shopping_cart&action=update_product, IP address: 97.154.151.109, Language id 1
#0 /home/public_html/shop/includes/classes/shopping_cart.php(2669): zen_debug_error_handler()
#1 /home/public_html/shop/includes/classes/shopping_cart.php(1784): shoppingCart->in_cart_product_mixed_changed()
#2 /home/public_html/shop/includes/main_cart_actions.php(50): shoppingCart->actionUpdateProduct()
#3 /home/public_html/shop/includes/init_includes/init_cart_handler.php(42): require('...')
#4 /home/public_html/shop/includes/autoload_func.php(40): require_once('...')
#5 /home/public_html/shop/includes/application_top.php(329): require('...')
#6 /home/public_html/shop/index.php(25): require('...')
--> PHP Warning: Undefined array key 1 in /home/public_html/shop/includes/classes/shopping_cart.php on line 2669.
[26-Mar-2025 14:55:40 America] Request URI: /shop/index.php?main_page=shopping_cart&action=update_product, IP address: 97.154.151.109, Language id 1
#0 /home/public_html/shop/includes/classes/shopping_cart.php(2669): zen_debug_error_handler()
#1 /home/public_html/shop/includes/classes/shopping_cart.php(1784): shoppingCart->in_cart_product_mixed_changed()
#2 /home/public_html/shop/includes/main_cart_actions.php(50): shoppingCart->actionUpdateProduct()
#3 /home/public_html/shop/includes/init_includes/init_cart_handler.php(42): require('...')
#4 /home/public_html/shop/includes/autoload_func.php(40): require_once('...')
#5 /home/public_html/shop/includes/application_top.php(329): require('...')
#6 /home/public_html/shop/index.php(25): require('...')
--> PHP Warning: Undefined array key 2 in /home/public_html/shop/includes/classes/shopping_cart.php on line 2669.
Thank you for your help!
Lastly...I have one more Debug Log to share with a PHP Warning. If you could take a look and let me know what code changes are needed to mitigate the warning.
Request URI: /shop/ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 8.18.235.206, Language id 1
#0 /home/public_html/shop/includes/templates/custom/templates/tpl_ajax_checkout_confirmation_default.php(35): zen_debug_error_handler()
#1 /home/public_html/shop/includes/classes/ajax/zcAjaxPayment.php(191): require_once('...')
#2 /home/public_html/shop/ajax.php(77): zcAjaxPayment->prepareConfirmation()
--> PHP Warning: Undefined global variable $ in /home/public_html/shop/includes/templates/custom/templates/tpl_ajax_checkout_confirmation_default.php on line 35.
[28-Mar-2025 06:04:36 America] Request URI: /shop/ajax.php?act=ajaxPayment&method=prepareConfirmation, IP address: 8.18.235.206, Language id 1
#0 /home/public_html/shop/includes/templates/custom/templates/tpl_ajax_checkout_confirmation_default.php(35): zen_debug_error_handler()
#1 /home/public_html/shop/includes/classes/ajax/zcAjaxPayment.php(191): require_once('...')
#2 /home/public_html/shop/ajax.php(77): zcAjaxPayment->prepareConfirmation()
--> PHP Warning: Attempt to read property "title" on null in /home/public_html/shop/includes/templates/custom/templates/tpl_ajax_checkout_confirmation_default.php on line 35.
Thanks again for your help and hope this help with future updates.
See this Zen Cart GitHub PR for the proposed correction: https://github.com/zencart/zencart/pull/7043
Bookmarks