Merge branch 'php-msql-8' of github.com:sumitwebkul/QloApps into php-msql-8

This commit is contained in:
Sumit Panwar
2025-05-23 18:49:16 +05:30
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ class CustomerGuestDetailCore extends ObjectModel
* @param int id_cart
* @return bool True on success, false on failure
*/
public function deleteCustomerGuestInCart($idCart)
public static function deleteCustomerGuestInCart($idCart)
{
return Db::getInstance()->delete(
'cart_customer_guest',

View File

@@ -1126,7 +1126,7 @@ class OrderOpcControllerCore extends ParentOrderController
$objCustomerGuestDetail->deleteCustomerGuestByIdCustomer($this->context->cart->id_customer, $maxGuestAccountAllowed);
}
// To prevent duplications for the same cart.
$objCustomerGuestDetail->deleteCustomerGuestInCart($this->context->cart->id);
CustomerGuestDetail::deleteCustomerGuestInCart($this->context->cart->id);
$objCustomerGuestDetail->saveCustomerGuestInCart($this->context->cart->id, $objCustomerGuestDetail->id);
Tools::redirect($this->context->link->getPageLink('order-opc', null, $this->context->language->id, array('proceed_to_payment' => 1)));
}