updated : multiple hooks names updated
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{hook h='displayAdminOrderCartRoomCellAfterOccupancy' data=$data}
|
||||
{hook h='displayAdminOrderCartRoomOccupancyAfter' data=$data}
|
||||
</td>
|
||||
{/if}
|
||||
<td id="cart_detail_data_unit_price_{$data.id|escape:'html':'UTF-8'}">
|
||||
@@ -154,7 +154,7 @@
|
||||
<button class="delete_hotel_cart_data btn btn-danger" data-id_room="{$data.id_room|escape:'html':'UTF-8'}" data-id_product="{$data.id_product|escape:'html':'UTF-8'}" data-id="{$data.id|escape:'html':'UTF-8'}" data-id_cart="{$data.id_cart|escape:'html':'UTF-8'}" data-date_to="{$data.date_to|escape:'html':'UTF-8'}" data-date_from="{$data.date_from|escape:'html':'UTF-8'}">
|
||||
<i class="icon-trash"></i> {l s='Delete'}
|
||||
</button>
|
||||
{hook h='displayAfterAdminCartDetailsDeleteAction' data=$data}
|
||||
{hook h='displayAdminCartDetailsDeleteActionAfter' data=$data}
|
||||
<br />
|
||||
<a href="#" id_hotel_cart_booking="{$data.id|escape:'html':'UTF-8'}" id_room="{$data.id_room|escape:'html':'UTF-8'}" date_from="{$data.date_from|escape:'html':'UTF-8'}" date_to="{$data.date_to|escape:'html':'UTF-8'}" id_product="{$data.id_product|escape:'html':'UTF-8'}" id_cart="{$data.id_cart|escape:'html':'UTF-8'}" class="open_rooms_extra_services btn btn-success" title="{l s='Click here to add or remove the extra services of this room type.'}">
|
||||
<i class="icon-pencil"></i> {l s='Services'}
|
||||
|
||||
@@ -2316,7 +2316,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{hook h="displayAdminBeforeOrderMessage"}
|
||||
{hook h="displayAdminOrderMessageBefore"}
|
||||
<div class="row">
|
||||
<div class="order_message_right col-lg-12">
|
||||
<div class="form-group">
|
||||
@@ -2442,14 +2442,14 @@
|
||||
<p class="help-block">{l s='Select or type the payment method using which payment for booking will be made.'}</p>
|
||||
</div>
|
||||
</div>
|
||||
{hook h="displayOrderPaymentSelectionAfter"}
|
||||
{hook h="displayAdminOrderPaymentSelectionAfter"}
|
||||
<div class="form-group" {if $order_total <= 0}style="display: none;"{/if}>
|
||||
<label class="control-label col-lg-3">{l s='Transaction ID'}</label>
|
||||
<div class="col-lg-9">
|
||||
<input type="text" class="fixed-width-xxl" name="payment_transaction_id" id="payment_transaction_id" value="{if isset($smarty.post.payment_transaction_id)}{$smarty.post.payment_transaction_id}{/if}" />
|
||||
</div>
|
||||
</div>
|
||||
{hook h="displayAdminAddOrderFormFieldsAfter"}
|
||||
{hook h="displayAdminOrderFormFieldsAfter"}
|
||||
<div class="form-group">
|
||||
<div class="col-lg-9 col-lg-offset-3">
|
||||
<button type="submit" name="submitAddOrder" class="btn btn-default" />
|
||||
|
||||
@@ -518,7 +518,7 @@
|
||||
{if $customer->phone}
|
||||
<dd><i class="icon-phone"></i> <b><a href="tel:{$customer->phone}">{$customer->phone}</a></b></dd>
|
||||
{/if}
|
||||
{hook h='displayAdminOrderAfterPhone'}
|
||||
{hook h='displayAdminOrderPhoneAfter'}
|
||||
</dl>
|
||||
<dl class="list-detail col-sm-6">
|
||||
<label class="label-title">{l s='Customer Info'}</label>
|
||||
|
||||
@@ -204,7 +204,7 @@
|
||||
<input maxlength="12" type="text" id="upc" name="upc" value="{$product->upc|escape:'html':'UTF-8'}" />
|
||||
</div>
|
||||
</div>
|
||||
{hook h='displayAddExtraProductInformation' item=$product}
|
||||
{hook h='displayAdminProductInformationAfter' item=$product}
|
||||
|
||||
<!-- <hr/> -->
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{hook h='displayBeforeKpi'}
|
||||
{hook h='displayAdminKpiBefore'}
|
||||
<div class="panel kpi-container{if isset($no_wrapping) && $no_wrapping} no-wrapping{/if}">
|
||||
<div class="kpis-wrap">
|
||||
{foreach from=$kpis item=kpi}
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
{if $has_actions}
|
||||
<td class="text-right">
|
||||
{assign var='compiled_actions' value=array()}
|
||||
{capture assign='row_actions_before_delete'}{hook h='displayAdminListRowActionsBeforeDelete' table=$table identifier=$identifier id=$tr.$identifier token=$token}{/capture}
|
||||
{capture assign='row_actions_before_delete'}{hook h='displayAdminListRowActionsDeleteBefore' table=$table identifier=$identifier id=$tr.$identifier token=$token}{/capture}
|
||||
{assign var='row_actions_before_delete_added' value=false}
|
||||
{foreach $actions AS $key => $action}
|
||||
{if isset($tr.$action)}
|
||||
|
||||
@@ -245,7 +245,7 @@ class AdminNormalProductsControllerCore extends AdminController
|
||||
// Code For Standard product working
|
||||
$this->_where .= ' AND a.`selling_preference_type` = '.(int)Product::SELLING_PREFERENCE_WITH_ROOM_TYPE;
|
||||
|
||||
Hook::exec('actionFilterAdminProducts', array('join' => &$this->_join, 'where' => &$this->_where));
|
||||
Hook::exec('actionAdminProductsQueryModifier', array('join' => &$this->_join, 'where' => &$this->_where));
|
||||
|
||||
$this->_group = 'GROUP BY a.`id_product`';
|
||||
|
||||
|
||||
@@ -9001,7 +9001,7 @@ class AdminOrdersControllerCore extends AdminController
|
||||
{
|
||||
$idHotelBookingDetail = (int) Tools::getValue('id_hotel_booking_detail');
|
||||
if (Validate::isLoadedObject($objHotelBookingDetail = new HotelBookingDetail($idHotelBookingDetail))) {
|
||||
Hook::exec('actionAdminOnChangeRoomStatus', array(
|
||||
Hook::exec('actionAdminRoomStatusChangeAfter', array(
|
||||
'post_data' => Tools::getAllValues(),
|
||||
'errors' => &$this->errors
|
||||
));
|
||||
|
||||
@@ -152,7 +152,7 @@ class AdminProductsControllerCore extends AdminController
|
||||
}
|
||||
|
||||
// Allow modules to override the labels of the product tabs
|
||||
$tabNameOverrides = Hook::exec('displayUpdateProductTabName', array('id_product' => (int) Tools::getValue('id_product')), null, true);
|
||||
$tabNameOverrides = Hook::exec('actionAdminProductTabNameModifier', array('id_product' => (int) Tools::getValue('id_product')), null, true);
|
||||
if (is_array($tabNameOverrides)) {
|
||||
foreach ($tabNameOverrides as $moduleOverrides) {
|
||||
if (is_array($moduleOverrides)) {
|
||||
|
||||
@@ -505,7 +505,7 @@ 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('actionFilterSellerHotel', array('query' => &$sql));
|
||||
Hook::exec('actionSellerHotelQueryModifier', array('query' => &$sql));
|
||||
|
||||
return Db::getInstance()->executeS($sql);
|
||||
}
|
||||
|
||||
@@ -3343,7 +3343,7 @@ class HotelHelper
|
||||
INNER JOIN `'._DB_PREFIX_.'category` AS c ON (hbi.`id_category` = c.`id_category`)
|
||||
WHERE 1';
|
||||
|
||||
Hook::exec('actionFilterSellerHotel', array('treeQuery' => &$sql));
|
||||
Hook::exec('actionSellerHotelQueryModifier', array('treeQuery' => &$sql));
|
||||
|
||||
if ($cities) {
|
||||
$sql .= ' AND c.`id_parent` IN ('.implode(', ', $cities).')';
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
<dt class="col-xs-5">{l s='Guests'}</dt>
|
||||
<dd class="col-xs-7">
|
||||
{$rm_v.adults|string_format:'%02d'} {if $rm_v.adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v.children}, {$rm_v.children|string_format:'%02d'} {if $rm_v.children > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}
|
||||
{hook h='displayOrderDetailAfterOccupancy' data=$data_v room=$rm_v id_order=$order->id}
|
||||
{hook h='displayOrderDetailOccupancyAfter' data=$data_v room=$rm_v id_order=$order->id}
|
||||
</dd>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
<div class="noRoomsAvailAlert">
|
||||
<span>{l s='No room available for this property!'}</span>
|
||||
</div>
|
||||
{hook h='displayAfterNoRoomAvailableBlock'}
|
||||
{hook h='displayNoRoomAvailableBlockAfter'}
|
||||
{/if}
|
||||
|
||||
{block name='displayRoomTypeListAfter'}
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<div class="rte{if $content_only} content_only{/if}">
|
||||
{$cms->content}
|
||||
</div>
|
||||
{hook h='displayCMSPage' page=$cms}
|
||||
{hook h='displayCMSPageContentAfter' page=$cms}
|
||||
{elseif isset($cms_category)}
|
||||
<div class="block-cms">
|
||||
<h1><a href="{if $cms_category->id eq 1}{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}{else}{$link->getCMSCategoryLink($cms_category->id, $cms_category->link_rewrite)}{/if}">{$cms_category->name|escape:'html':'UTF-8'}</a></h1>
|
||||
|
||||
@@ -191,7 +191,7 @@
|
||||
<input type="hidden" name="contactKey" value="{$contactKey}" />
|
||||
<button class="btn button button-medium contact_btn" type="submit" name="submitMessage" id="submitMessage" ><span>{l s='Send Message'}</span></button>
|
||||
</div>
|
||||
{hook h='displayAfterContactUsSubmitButton'}
|
||||
{hook h='displayContactFormSubmitButtonAfter'}
|
||||
</form>
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
<dt class="col-xs-5">{l s='Guests'}</dt>
|
||||
<dd class="col-xs-7">
|
||||
{$rm_v.adults|string_format:'%02d'} {if $rm_v.adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v.children}, {$rm_v.children|string_format:'%02d'} {if $rm_v.children > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}
|
||||
{hook h='displayOrderConfirmationAfterOccupancy' data=$data_v room=$rm_v}
|
||||
{hook h='displayOrderConfirmationOccupancyAfter' data=$data_v room=$rm_v}
|
||||
</dd>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -419,7 +419,7 @@
|
||||
<div class="submit opc-add-save clearfix">
|
||||
<button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium pull-right"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
|
||||
</div>
|
||||
{hook h='displayAddAccountFormBottom'}
|
||||
{hook h='displayCustomerAccountFormBottom'}
|
||||
{/block}
|
||||
<!-- END Account -->
|
||||
</div>
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
{block name='displayCheckoutGuestDetailsAfter'}{hook h='displayCheckoutGuestDetailsAfter'}{/block}
|
||||
{hook h='displayCheckoutGuestDetailsAfter'}
|
||||
|
||||
{* proceed only if no order restrict errors are there *}
|
||||
{if !$orderRestrictErr}
|
||||
|
||||
Reference in New Issue
Block a user