Order exists error message at front office

This commit is contained in:
Abhishek Kumar
2022-05-30 15:23:59 +05:30
parent b2f02196cc
commit 016dc7c64d
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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;
}