hook names updated
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<div class="panel-heading">
|
||||
<i class="icon-shopping-cart"></i>
|
||||
{l s='Cart Details'}
|
||||
{hook h='displayAdminCartDetailsHeader'}
|
||||
{hook h='displayAdminCartDetailsPanelTitleAfter'}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12 table-responsive">
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{hook h='displayAdminOrderOccupancyColumn' data=$data}
|
||||
{hook h='displayAdminOrderProductLineOccupancyAfter' data=$data}
|
||||
</td>
|
||||
<td class="center">
|
||||
<p>
|
||||
|
||||
@@ -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='displayAdminOrderPhoneAfter'}
|
||||
{hook h='displayAdminOrderCustomerPhoneAfter'}
|
||||
</dl>
|
||||
<dl class="list-detail col-sm-6">
|
||||
<label class="label-title">{l s='Customer Info'}</label>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<li role="presentation">
|
||||
<a href="#room_type_service_product_desc" aria-controls="services" role="tab" data-toggle="tab">{l s='Services'}</a>
|
||||
</li>
|
||||
{hook h='displayAdminOrderEditRoomTabNav' data=$data}
|
||||
{hook h='displayAdminOrderEditRoomTab' data=$data}
|
||||
</ul>
|
||||
|
||||
<div class="tab-content clearfix">
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<th>{l s='Total Price (tax excl.)'}</th>
|
||||
<th>{l s='Total Price (tax incl.)'}</th>
|
||||
<th class="text-right">{l s='Action'}</th>
|
||||
{hook h="displayAdminOrderExtraServicesTabContentHeading"}
|
||||
{hook h="displayAdminOrderSelectedServicesHeading"}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -106,7 +106,7 @@
|
||||
<td>{displayPrice price=$service['total_price_tax_excl']|escape:'html':'UTF-8' currency=$orderCurrency}</td>
|
||||
<td>{displayPrice price=$service['total_price_tax_incl']|escape:'html':'UTF-8' currency=$orderCurrency}</td>
|
||||
<td class="text-right"><a class="btn btn-danger pull-right del_room_additional_service" data-id_service_product_order_detail="{$service['id_service_product_order_detail']}" href="#"><i class="icon-trash"></i></a></td>
|
||||
{hook h="displayAdminOrderExtraServicesTabContentData" id_service_product=$service['id_product'] id_htl_booking_detail=$id_booking_detail id_service_product_order_detail=$service['id_service_product_order_detail'] room_type_id_product=$additionalServices['room_type_id_product']}
|
||||
{hook h="displayAdminOrderSelectedServicesData" id_service_product=$service['id_product'] id_htl_booking_detail=$id_booking_detail id_service_product_order_detail=$service['id_service_product_order_detail'] room_type_id_product=$additionalServices['room_type_id_product']}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
@@ -137,7 +137,7 @@
|
||||
<th class="fixed-width-sm"> </th>
|
||||
<th class="fixed-width-sm text-center">{l s='Quantity'}</th>
|
||||
<th>{l s='Unit Price (tax excl.)'}</th>
|
||||
{hook h="displayAdminOrderExtraServicesTabContentHeading"}
|
||||
{hook h="displayAdminOrderAvailableServicesHeading"}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -186,7 +186,7 @@
|
||||
<input type="text" class="form-control unit_price" name="service_price[{$product['id_product']|escape:'html':'UTF-8'}]" value="{$product['price_tax_exc']}" data-id-product="{$product.id_product}">
|
||||
</div>
|
||||
</td>
|
||||
{hook h="displayAdminOrderExtraServicesTabContentData" id_service_product=$product['id_product'] id_htl_booking_detail=$id_booking_detail}
|
||||
{hook h="displayAdminOrderAvailableServicesData" id_service_product=$product['id_product'] id_htl_booking_detail=$id_booking_detail}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
@@ -317,7 +317,7 @@
|
||||
<th>{l s='Unit Price (tax excl.)'}</th>
|
||||
<th>{l s='Total Price (tax excl.)'}</th>
|
||||
<th>{l s='Total Price (tax incl.)'}</th>
|
||||
{hook h="displayAdminOrderExtraServicesTabContentHeading"}
|
||||
{hook h="displayAdminOrderViewServicesHeading"}
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>
|
||||
@@ -366,6 +366,7 @@
|
||||
<td>
|
||||
{displayPrice price=$service['total_price_tax_incl'] currency=$orderCurrency}
|
||||
</td>
|
||||
{hook h="displayAdminOrderViewServicesData" id_service_product=$service['id_product'] id_htl_booking_detail=$id_booking_detail id_service_product_order_detail=$service['id_service_product_order_detail'] room_type_id_product=$additionalServices['room_type_id_product']}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
|
||||
@@ -424,7 +424,7 @@ class MailCore extends ObjectModel
|
||||
Hook::exec('actionMailAlterMessageBeforeSend', array(
|
||||
'template' => &$template,
|
||||
'message' => &$email,
|
||||
'template_vars' => $template_vars,
|
||||
'template_vars' => &$template_vars,
|
||||
));
|
||||
|
||||
$mailer->send($email);
|
||||
|
||||
@@ -3404,14 +3404,6 @@ class ProductCore extends ObjectModel
|
||||
}
|
||||
}
|
||||
|
||||
Hook::exec(
|
||||
'actionProductPriceModifier',
|
||||
array(
|
||||
'price' => &$price,
|
||||
'type' => 'pre_tax'
|
||||
)
|
||||
);
|
||||
|
||||
// Tax
|
||||
$address->id_country = $id_country;
|
||||
$address->id_state = $id_state;
|
||||
@@ -3423,10 +3415,16 @@ class ProductCore extends ObjectModel
|
||||
$id_tax_rule_group = Product::getIdTaxRulesGroupByIdProduct((int)$id_product, $context);
|
||||
}
|
||||
|
||||
Hook::exec('actionProductTaxRuleGroupModifier', array(
|
||||
'id_product' => $id_product,
|
||||
'id_tax_rule_group' => &$id_tax_rule_group
|
||||
));
|
||||
Hook::exec(
|
||||
'actionProductPriceModifier',
|
||||
array(
|
||||
'price' => &$price,
|
||||
'type' => 'pre_tax',
|
||||
'id_product' => $id_product,
|
||||
'id_tax_rule_group' => &$id_tax_rule_group
|
||||
|
||||
)
|
||||
);
|
||||
|
||||
$tax_manager = TaxManagerFactory::getManager($address, $id_tax_rule_group);
|
||||
$product_tax_calculator = $tax_manager->getTaxCalculator();
|
||||
|
||||
@@ -245,8 +245,6 @@ 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('actionAdminProductsQueryModifier', array('join' => &$this->_join, 'where' => &$this->_where));
|
||||
|
||||
$this->_group = 'GROUP BY a.`id_product`';
|
||||
|
||||
$this->fields_list = array();
|
||||
|
||||
@@ -633,11 +633,6 @@ class AdminOrdersControllerCore extends AdminController
|
||||
unset($this->toolbar_btn['new']);
|
||||
}
|
||||
|
||||
Hook::exec('actionOrderDetailToolbarModifier', array(
|
||||
'toolbar_btn' => &$this->toolbar_btn,
|
||||
'id_order' => (int) Tools::getValue('id_order')
|
||||
));
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
{/if}
|
||||
<td>
|
||||
{$service['name']}
|
||||
{hook h='displayServiceProductDatesInvoiceAndEmail' id_service_product_order_detail=$service['id_service_product_order_detail']}
|
||||
{hook h='displayInvoiceServiceProductNameAfter' id_service_product_order_detail=$service['id_service_product_order_detail']}
|
||||
</td>
|
||||
<td class="center">
|
||||
{if isset($service['product_tax_label']) && $service['product_tax_label']}{$service['product_tax_label']}{else}{l s='No tax' pdf='true'}{/if}
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
{/capture}
|
||||
{include file='_partials/ui-tooltip.tpl' tooltip_content=$smarty.capture.htl_pcm_tooltip allow_html=true}
|
||||
</div>
|
||||
{hook h='displayOrderedServiceProduct' product_order_detail=$additionalService}
|
||||
{hook h='displayOrderDetailServiceProductNameBlockAfter' product_order_detail=$additionalService}
|
||||
</div>
|
||||
<div class="">
|
||||
<span>
|
||||
|
||||
Reference in New Issue
Block a user