Merge branch 'php-msql-8' of github.com:sumitwebkul/QloApps into php-msql-8
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user