diff --git a/modules/hotelreservationsystem/classes/HotelBookingDetail.php b/modules/hotelreservationsystem/classes/HotelBookingDetail.php index 1b3899caf..da06f3240 100644 --- a/modules/hotelreservationsystem/classes/HotelBookingDetail.php +++ b/modules/hotelreservationsystem/classes/HotelBookingDetail.php @@ -839,18 +839,6 @@ class HotelBookingDetail extends ObjectModel $avai_rooms = Db::getInstance()->executeS($sql); - Hook::exec('actionAvailableRoomData', array( - 'avai_rooms' => &$avai_rooms, - 'unavailableRoomTypes' => &$unavailableRoomTypes, - 'params' => array( - 'id_hotel' => $idHotel, - 'id_product' => $idRoomType, - 'date_from' => $dateFrom, - 'date_to' => $dateTo, - 'all_params' => $allParams - ) - )); - if ($avai_rooms) { $availableRoomTypes = array( 'roomTypes' => array(), @@ -1393,19 +1381,6 @@ class HotelBookingDetail extends ObjectModel // free space unset($roomTypeDetail); - Hook::exec('actionPartiallyAvailableRoomData', array( - 'dateWiseRoomTypes' => &$dateWiseRoomTypes, - 'dateWiseCartRooms' => &$dateWiseCartRooms, - 'unavailableRoomTypes' => &$unavailableRoomTypes, - 'params' => array( - 'id_hotel' => $idHotel, - 'id_product' => $idRoomType, - 'date_from' => $dateFrom, - 'date_to' => $dateTo, - 'all_params' => $allParams - ) - )); - // Return room type wise instead of date wise foreach ($dateWiseRoomTypes as $timeStamp => $dateWiseDetail) { foreach ($dateWiseDetail['roomTypes'] as $idProduct => $roomTypeDetail) { diff --git a/modules/hotelreservationsystem/classes/HotelBranchInformation.php b/modules/hotelreservationsystem/classes/HotelBranchInformation.php index cefbf1b93..5d33d64a9 100644 --- a/modules/hotelreservationsystem/classes/HotelBranchInformation.php +++ b/modules/hotelreservationsystem/classes/HotelBranchInformation.php @@ -505,8 +505,6 @@ class HotelBranchInformation extends ObjectModel LEFT JOIN `'._DB_PREFIX_.'htl_branch_info_lang` hbl ON (hbl.`id` = hbi.`id` AND hbl.`id_lang` = '.(int)$idLang.')'; - Hook::exec('actionSellerHotelQueryModifier', array('query' => &$sql)); - return Db::getInstance()->executeS($sql); } diff --git a/modules/hotelreservationsystem/classes/HotelHelper.php b/modules/hotelreservationsystem/classes/HotelHelper.php index e3418e839..b247b7dce 100644 --- a/modules/hotelreservationsystem/classes/HotelHelper.php +++ b/modules/hotelreservationsystem/classes/HotelHelper.php @@ -3343,8 +3343,6 @@ class HotelHelper INNER JOIN `'._DB_PREFIX_.'category` AS c ON (hbi.`id_category` = c.`id_category`) WHERE 1'; - Hook::exec('actionSellerHotelQueryModifier', array('treeQuery' => &$sql)); - if ($cities) { $sql .= ' AND c.`id_parent` IN ('.implode(', ', $cities).')'; } diff --git a/modules/hotelreservationsystem/classes/HotelRoomTypeFeaturePricing.php b/modules/hotelreservationsystem/classes/HotelRoomTypeFeaturePricing.php index 32a6dccd4..d068ec0b6 100644 --- a/modules/hotelreservationsystem/classes/HotelRoomTypeFeaturePricing.php +++ b/modules/hotelreservationsystem/classes/HotelRoomTypeFeaturePricing.php @@ -232,7 +232,7 @@ class HotelRoomTypeFeaturePricing extends ObjectModel $res &= $objFeaturePriceRestriction->deleteFeaturePriceRestrictionsById($existingFeaturePrices); } - Hook::exec('actionCustomFeaturePrice', array( + Hook::exec('actionFeaturePriceRestrictionsSaveAfter', array( 'id_feature_price' => $idFeaturePrice, 'restrictions' => $restrictions, 'existing_feature_prices' => $existingFeaturePrices diff --git a/modules/hotelreservationsystem/classes/ServiceProductCartDetail.php b/modules/hotelreservationsystem/classes/ServiceProductCartDetail.php index d3cdc745d..5930a7e37 100644 --- a/modules/hotelreservationsystem/classes/ServiceProductCartDetail.php +++ b/modules/hotelreservationsystem/classes/ServiceProductCartDetail.php @@ -288,14 +288,6 @@ class ServiceProductCartDetail extends ObjectModel $product['date_to'] ); - Hook::exec('actionCalculateDaysForServiceUnitPrice', array( - 'date_from' => $product['date_from'], - 'date_to' => $product['date_to'], - 'numdays' => &$numDays, - 'id_service_product' => (int) $product['id_product'], - 'id_cart' => $idCart - )); - $priceTaxIncl = Product::getServiceProductPrice( $objProduct->id, $product['id_product_option'], @@ -311,7 +303,7 @@ class ServiceProductCartDetail extends ObjectModel null, $product['htl_cart_booking_id'] ) / max($numDays, 1); - + $priceTaxExcl = Product::getServiceProductPrice( $objProduct->id, $product['id_product_option'],