Received the following error when changing the billing address on the payment method selection page:
[21-Sep-2021 11:31:01 America/New_York] PHP Notice: Undefined index: payment in .../includes/modules/checkout_new_address.php on line 181
Normal checkout until reaching the payment method selection page. Clicked "Change Address" button. Selected one of the address book entries and clicked the "Continue" button. PHP notice appeared. The payment method had not yet been selected. Relevant code lines 177-185 follow:
Code:
case 'billto':
$reset_payment = false;
if ($_SESSION['billto']) {
if ($_SESSION['billto'] != $_POST['address']) {
if ($_SESSION['payment']) {
$reset_payment = true;
}
}
}
I think $_SESSION['payment'] needs a test to see if it's set. I'm working to get set up on GitHub and will submit a PR when I'm set up.
Dave
zc157c, PHP 7.3.x, standard checkout
Bookmarks