Remove usage of $_COOKIE when creating a booking at back office

This commit is contained in:
Abhishek Kumar
2022-12-06 12:20:46 +05:30
parent 3bd98addb6
commit 4da84bfbd4
4 changed files with 17 additions and 21 deletions

View File

@@ -849,14 +849,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, $this->context->shop->physical_uri);
setcookie('wk_id_guest', ' ', time() - 86400, $this->context->shop->physical_uri);
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);
}