From afe0c6d65dbe84fb29c8ffbff55a5937ff81e998 Mon Sep 17 00:00:00 2001 From: azhar bhat Date: Mon, 19 Oct 2026 18:41:07 +0530 Subject: [PATCH] Updated: hooks position updated --- .../template/controllers/orders/_product_line.tpl | 1 + .../controllers/orders/helpers/view/view.tpl | 2 +- .../template/helpers/list/list_content.tpl | 15 +++++++++++---- pdf/invoice.additinal-services-tab.tpl | 2 +- .../_partials/order-extra-services.tpl | 2 +- .../_partials/order-room-detail.tpl | 2 +- themes/hotel-reservation-theme/contact-form.tpl | 2 +- .../order-confirmation.tpl | 2 +- 8 files changed, 18 insertions(+), 10 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/orders/_product_line.tpl b/admin-dev/themes/default/template/controllers/orders/_product_line.tpl index 9576af251..cc01b5317 100644 --- a/admin-dev/themes/default/template/controllers/orders/_product_line.tpl +++ b/admin-dev/themes/default/template/controllers/orders/_product_line.tpl @@ -62,6 +62,7 @@ {/if} + {hook h='displayAdminOrderOccupancyColumn' data=$data}

diff --git a/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl index 4a5e53675..4c7765e5c 100644 --- a/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl @@ -495,7 +495,6 @@ {if $customer->phone}

 {$customer->phone}
{/if} - {hook h='displayAdminOrderAfterPhone'}
@@ -519,6 +518,7 @@ {if $customer->phone}
 {$customer->phone}
{/if} + {hook h='displayAdminOrderAfterPhone'}
diff --git a/admin-dev/themes/default/template/helpers/list/list_content.tpl b/admin-dev/themes/default/template/helpers/list/list_content.tpl index 99f826656..807444c4b 100644 --- a/admin-dev/themes/default/template/helpers/list/list_content.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_content.tpl @@ -158,19 +158,26 @@ {if $has_actions} {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} + {assign var='row_actions_before_delete_added' value=false} {foreach $actions AS $key => $action} {if isset($tr.$action)} {if $key == 0} {assign var='action' value=$action} {/if} - {if $action == 'delete' && $actions|@count > 2} - {$compiled_actions[] = 'divider'} + {if $action == 'delete'} + {if $row_actions_before_delete} + {$compiled_actions[] = $row_actions_before_delete} + {assign var='row_actions_before_delete_added' value=true} + {/if} + {if $actions|@count > 2} + {$compiled_actions[] = 'divider'} + {/if} {/if} {$compiled_actions[] = $tr.$action} {/if} {/foreach} - {capture assign='row_actions_before_delete'}{hook h='displayAdminListRowActionsBeforeDelete' table=$table identifier=$identifier id=$tr.$identifier token=$token}{/capture} - {if $row_actions_before_delete}{$compiled_actions[] = $row_actions_before_delete}{/if} + {if $row_actions_before_delete && !$row_actions_before_delete_added}{$compiled_actions[] = $row_actions_before_delete}{/if} {if $compiled_actions|count > 0} {if $compiled_actions|count > 1}
{/if}
diff --git a/pdf/invoice.additinal-services-tab.tpl b/pdf/invoice.additinal-services-tab.tpl index 5a37503cb..abe4b2d43 100644 --- a/pdf/invoice.additinal-services-tab.tpl +++ b/pdf/invoice.additinal-services-tab.tpl @@ -52,7 +52,7 @@ {/if} {$service['name']} - {hook h='displayPartyServiceProductDatesInvoiceAndEmail' id_service_product_order_detail=$service['id_service_product_order_detail']} + {hook h='displayServiceProductDatesInvoiceAndEmail' id_service_product_order_detail=$service['id_service_product_order_detail']} {if isset($service['product_tax_label']) && $service['product_tax_label']}{$service['product_tax_label']}{else}{l s='No tax' pdf='true'}{/if} diff --git a/themes/hotel-reservation-theme/_partials/order-extra-services.tpl b/themes/hotel-reservation-theme/_partials/order-extra-services.tpl index 2cdc79afd..9396d461b 100644 --- a/themes/hotel-reservation-theme/_partials/order-extra-services.tpl +++ b/themes/hotel-reservation-theme/_partials/order-extra-services.tpl @@ -68,7 +68,7 @@ {/capture} {include file='_partials/ui-tooltip.tpl' tooltip_content=$smarty.capture.htl_pcm_tooltip allow_html=true}
- {hook h='displayOrderedPartyServiceProduct' id_service_product_order_detail=$additionalService['id_service_product_order_detail']} + {hook h='displayOrderedServiceProduct' product_order_detail=$additionalService}
diff --git a/themes/hotel-reservation-theme/_partials/order-room-detail.tpl b/themes/hotel-reservation-theme/_partials/order-room-detail.tpl index 4a75bee19..d25ecde7c 100644 --- a/themes/hotel-reservation-theme/_partials/order-room-detail.tpl +++ b/themes/hotel-reservation-theme/_partials/order-room-detail.tpl @@ -90,10 +90,10 @@
{l s='Guests'}
{$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='displayOrderDetailAfterOccupancy' data=$data_v room=$rm_v id_order=$order->id}
diff --git a/themes/hotel-reservation-theme/contact-form.tpl b/themes/hotel-reservation-theme/contact-form.tpl index c618cb905..d5a9b05e6 100644 --- a/themes/hotel-reservation-theme/contact-form.tpl +++ b/themes/hotel-reservation-theme/contact-form.tpl @@ -190,8 +190,8 @@ - {hook h='displayAfterContactUsSubmitButton'}
+ {hook h='displayAfterContactUsSubmitButton'} {/block} diff --git a/themes/hotel-reservation-theme/order-confirmation.tpl b/themes/hotel-reservation-theme/order-confirmation.tpl index 2dea17aa9..677ff93b1 100644 --- a/themes/hotel-reservation-theme/order-confirmation.tpl +++ b/themes/hotel-reservation-theme/order-confirmation.tpl @@ -127,10 +127,10 @@
{l s='Guests'}
{$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='displayOrderConfirmationAfterOccupancy' data=$data_v room=$rm_v}