Fix account creation on checkout page

This commit is contained in:
Abhishek Kumar
2024-02-27 13:27:22 +05:30
parent 17256b4ccb
commit 4c70d324fd

View File

@@ -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');