This morning I switched my dev site template to responsive, re-uploaded ALL the files from a clean download, and double checked the tpl_shopping_cart_default.php file was your copy. I retested and still get the error below.
I'm running ZC 1.5.8, PHP 8.1.24, and have admin and store logs set to yes.
adding
else {
$flagHasSavedContents = 0;
}
seems to fix it, but doesn't exactly seem right.
The ver 1.9 copy I downloaded has $flagHasSavedContents = 1; on line 24, not line 21, so I'm wondering if we are looking at different versions?
I've also realized that while a logged-in user can move items from cart to SFL and from SFL to cart, the delete button in SFL isn't working. I have tested this both with my copy and with yours while switched to the responsive template. No error is thrown, the page just reloads and nothing changes.
[20-Oct-2023 08:29:00 America/Chicago] Request URI: /shopping_cart, IP address: 73.67.37.4, Language id 1
#0 /includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php(28): zen_debug_error_handler()
#1 /includes/templates/responsive_classic/common/tpl_main_page.php(178): require('/i...')
#2 /index.php(94): require('/i...')
--> PHP Warning: Undefined variable $flagHasSavedContents in /includes/templates/responsive_classic/templates/tpl_shopping_cart_default.php on line 28.