From 4c70d324fdca7f571ff513f70c147ee92a22e2c3 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 27 Feb 2024 13:27:22 +0530 Subject: [PATCH] Fix account creation on checkout page --- controllers/front/AuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/AuthController.php b/controllers/front/AuthController.php index 723e7d86c..94c4dca39 100644 --- a/controllers/front/AuthController.php +++ b/controllers/front/AuthController.php @@ -619,7 +619,7 @@ class AuthControllerCore extends FrontController $customer->active = 1; // New Guest customer if (Tools::isSubmit('is_new_customer')) { - if ($idCustomer) { + if (isset($idCustomer) && $idCustomer) { // update guest customer details $customer = new Customer($idCustomer); $customer->firstname = Tools::getValue('firstname');