zc 1.58a. php 8.1. opc 2.5.2.
I received the following warning.
Line 115 is the following section:Code:Request URI: /ajax.php?act=ajaxOnePageCheckout&method=updateShippingSelection, IP address: xxxx, Language id 1 #0 /includes/classes/ajax/zcAjaxOnePageCheckout.php(115): zen_debug_error_handler() #1 /includes/classes/ajax/zcAjaxOnePageCheckout.php(104): zcAjaxOnePageCheckout->formatOrderTotal() #2 /ajax.php(85): zcAjaxOnePageCheckout->updateShippingSelection() --> PHP Warning: Undefined array key "opc_saved_order_total" in /includes/classes/ajax/zcAjaxOnePageCheckout.php on line 115.
Does the following change work? $_SESSION['opc_saved_order_total'] should not be zero or null?Code:protected function formatOrderTotal() { return $_SESSION['opc_saved_order_total'];//line 115 }
Code:return $_SESSION['opc_saved_order_total'] ?? '';


Reply With Quote

