updated some function names according to their working

This commit is contained in:
vishalsingh.qlo325
2025-03-18 17:40:24 +05:30
parent bc7339e073
commit dd9d4be23e
3 changed files with 6 additions and 6 deletions

View File

@@ -1081,7 +1081,7 @@ class OrderOpcControllerCore extends ParentOrderController
$lastname = trim(Tools::getValue('lastname'));
$email = trim(Tools::getValue('email'));
$objCustomerGuestDetail = new CustomerGuestDetail();
if ($guestDetails = $objCustomerGuestDetail->getCustomerRelatedGuestDetails(
if ($guestDetails = $objCustomerGuestDetail->getCustomerGuestsByIdCustomer(
$this->context->cart->id_customer,
$firstname,
$lastname,
@@ -1167,7 +1167,7 @@ class OrderOpcControllerCore extends ParentOrderController
$objCustomerGuestDetail->id_customer = $this->context->customer->id;
if ($objCustomerGuestDetail->save()) {
if ($maxGuestAccountAllowed = Configuration::get('PS_CUSTOMER_GUEST_MAX_NUM')) {
$objCustomerGuestDetail->deleteCartCustomerGuestByIdCustomer($this->context->cart->id_customer, $maxGuestAccountAllowed);
$objCustomerGuestDetail->deleteCustomerGuestByIdCustomer($this->context->cart->id_customer, $maxGuestAccountAllowed);
}
// To prevent duplications for the same cart.
CustomerGuestDetail::deleteCartCustomerGuest($this->context->cart->id);