diff --git a/classes/ObjectModel.php b/classes/ObjectModel.php index 310a4b236..15a1ae728 100644 --- a/classes/ObjectModel.php +++ b/classes/ObjectModel.php @@ -211,7 +211,9 @@ public function __construct($id = null, $id_lang = null, $id_shop = null) throw new PrestaShopException('Identifier or table format not valid for class '.$class_name); } - ObjectModel::$loaded_classes[$class_name] = get_object_vars($this); + $objProperties = get_object_vars($this); + Hook::exec('actionObject'.$class_name.'PropertiesModifier', array('obj_properties' => &$objProperties)); + ObjectModel::$loaded_classes[$class_name] = $objProperties; } else { foreach (ObjectModel::$loaded_classes[$class_name] as $key => $value) { $this->{$key} = $value; diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index ed1f5ce7f..a6dab9e04 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -3279,6 +3279,14 @@ public function processConfiguration() $objHotelRoomDisableDates->reason = $disableDate['reason']; $objHotelRoomDisableDates->add(); } + + Hook::exec( + 'actionRoomDisableDatesAddAfter', + array( + 'room_info' => $roomInfo, + 'disable_dates' => $disableDates + ) + ); } } } diff --git a/modules/blocknavigationmenu/views/templates/hook/wkFooterNavigationBlock.tpl b/modules/blocknavigationmenu/views/templates/hook/wkFooterNavigationBlock.tpl index 16aa20aa2..4f6b35ef2 100644 --- a/modules/blocknavigationmenu/views/templates/hook/wkFooterNavigationBlock.tpl +++ b/modules/blocknavigationmenu/views/templates/hook/wkFooterNavigationBlock.tpl @@ -32,6 +32,7 @@ {$navigationLink['name']} {/foreach} + {hook h="displayFooterExploreSectionHook"} diff --git a/themes/hotel-reservation-theme/order-confirmation.tpl b/themes/hotel-reservation-theme/order-confirmation.tpl index 093669112..8772cefec 100644 --- a/themes/hotel-reservation-theme/order-confirmation.tpl +++ b/themes/hotel-reservation-theme/order-confirmation.tpl @@ -89,7 +89,9 @@

- {$data_v['hotel_name']} + {$data_v['hotel_name']} + {hook h="displayOrderConfirmationHotelNameAfter" id_product=$data_v['id_product']} +

{if $rm_v['adults'] <= 9}0{$rm_v['adults']}{else}{$rm_v['adults']}{/if} {if $rm_v['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v['children']}, {if $rm_v['children'] <= 9}0{$rm_v['children']}{else} {$rm_v['children']}{/if} {if $rm_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}
{if $rm_v['num_rm'] <= 9}0{/if}{$rm_v['num_rm']} {if $rm_v['num_rm'] > 1}{l s='Rooms'}{else}{l s='Room'}{/if} diff --git a/themes/hotel-reservation-theme/product.tpl b/themes/hotel-reservation-theme/product.tpl index 57cc9df5c..0e22ce119 100644 --- a/themes/hotel-reservation-theme/product.tpl +++ b/themes/hotel-reservation-theme/product.tpl @@ -72,9 +72,11 @@ {* Block for booking products *} {if isset($id_hotel) && $id_hotel} - {$hotel_name}{/if} + {hook h='displayRoomTypeDetailRoomTypeNameBlock' id_product=$product->id} {hook h='displayRoomTypeDetailRoomTypeNameAfter' id_product=$product->id} + {hook h='displayRoomTypeDetailRoomTypeImageBlockBefore' id_product=$product->id}

diff --git a/themes/hotel-reservation-theme/shopping-cart.tpl b/themes/hotel-reservation-theme/shopping-cart.tpl index 3b943c6d9..9a1383d77 100644 --- a/themes/hotel-reservation-theme/shopping-cart.tpl +++ b/themes/hotel-reservation-theme/shopping-cart.tpl @@ -108,12 +108,14 @@ {$data_v['name']} + {hook h='displayCartRoomTypeNameAfter' id_product=$data_v['id_product']}

{if isset($data_v['hotel_info']['location'])}

 {$data_v['hotel_info']['location']}

{/if} + {hook h='displayCartRoomTypeInfo' id_product=$data_v['id_product']}
{if isset($data_v['hotel_info']['room_features'])}