Order exists error message at front office
This commit is contained in:
@@ -964,7 +964,7 @@ abstract class PaymentModuleCore extends Module
|
||||
|
||||
return true;
|
||||
} else {
|
||||
$error = Tools::displayError('Cart cannot be loaded or a booking has already been placed using this cart');
|
||||
$error = Tools::displayError('Cart cannot be loaded or a booking has already been created using this cart.');
|
||||
PrestaShopLogger::addLog($error, 4, '0000001', 'Cart', intval($this->context->cart->id));
|
||||
die($error);
|
||||
}
|
||||
|
||||
@@ -307,7 +307,7 @@ class FrontControllerCore extends Controller
|
||||
}
|
||||
|
||||
if (Validate::isLoadedObject($cart) && $cart->OrderExists()) {
|
||||
PrestaShopLogger::addLog('Frontcontroller::init - Cart cannot be loaded or a booking has already been placed using this cart', 1, null, 'Cart', (int)$this->context->cookie->id_cart, true);
|
||||
PrestaShopLogger::addLog('Frontcontroller::init - Cart cannot be loaded or a booking has already been created using this cart', 1, null, 'Cart', (int)$this->context->cookie->id_cart, true);
|
||||
unset($this->context->cookie->id_cart, $cart, $this->context->cookie->checkedTOS);
|
||||
$this->context->cookie->check_cgv = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user