Updated the functions names

This commit is contained in:
vishalsingh.qlo325
2025-05-19 17:45:43 +05:30
parent df5eead3dd
commit 3ffa3b5adc
3 changed files with 24 additions and 18 deletions

View File

@@ -1042,7 +1042,7 @@ class AdminCustomersControllerCore extends AdminController
$this->errors[] = Tools::displayError('Some error ocurred while deleting the Customer');
return;
} else {
if ($idCustomerGuest = CustomerGuestDetail::getIdCustomerGuest($customerEmail, false)) {
if ($idCustomerGuest = CustomerGuestDetail::getCustomerGuestByEmail($customerEmail, false)) {
$objCustomerGuestDetail = new CustomerGuestDetail($idCustomerGuest);
$objCustomerGuestDetail->phone = preg_replace('/[0-9]/', '0', $objCustomer->phone);
$objCustomerGuestDetail->email = $objCustomer->email;