Merge pull request #473 from abhishek-webkul/gli-1047

Fix database exception issue on Book Now page at back office when multiple QloApps installations are present on the same domain
This commit is contained in:
Rohit Jain
2023-01-17 18:30:15 +05:30
committed by GitHub
4 changed files with 48 additions and 68 deletions

View File

@@ -888,14 +888,6 @@ abstract class PaymentModuleCore extends Module
// delete cart feature prices after booking creation success
HotelRoomTypeFeaturePricing::deleteByIdCart($id_cart);
if (isset($_COOKIE['wk_id_cart'])) {
setcookie('wk_id_cart', ' ', time() - 86400, '/');
setcookie('wk_id_guest', ' ', time() - 86400, '/');
unset($_COOKIE['wk_id_cart']);
unset($_COOKIE['wk_id_guest']);
}
if (self::DEBUG_MODE) {
PrestaShopLogger::addLog('PaymentModule::validateOrder - Hook validateOrder is about to be called', 1, null, 'Cart', (int)$id_cart, true);
}