hook names changed
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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).')';
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user