diff --git a/admin/themes/default/template/controllers/orders/_room_extra_services_modal.tpl b/admin/themes/default/template/controllers/orders/_room_extra_services_modal.tpl index 2e0cd1415..4714a077b 100644 --- a/admin/themes/default/template/controllers/orders/_room_extra_services_modal.tpl +++ b/admin/themes/default/template/controllers/orders/_room_extra_services_modal.tpl @@ -22,12 +22,8 @@ @@ -51,8 +46,8 @@ margin: 0px;} #rooms_type_extra_demands .demand_edit_badge { font-size: 14px;} - #rooms_extra_demands .room_ordered_demands td, #rooms_extra_demands .room_demand_detail { - font-size: 14px;} + /* #rooms_extra_demands .room_ordered_demands td, #rooms_extra_demands .room_demand_detail { */ + /* font-size: 14px;} */ #rooms_extra_demands .demand_header { padding: 10px; color: #333; diff --git a/admin/themes/default/template/controllers/orders/_room_facilities_block.tpl b/admin/themes/default/template/controllers/orders/_room_facilities_block.tpl index abc426f8d..1b96dba9b 100644 --- a/admin/themes/default/template/controllers/orders/_room_facilities_block.tpl +++ b/admin/themes/default/template/controllers/orders/_room_facilities_block.tpl @@ -17,91 +17,91 @@ * @license https://store.webkul.com/license.html *} -{if (isset($extraDemands) && $extraDemands) || (isset($roomTypeDemands) && $roomTypeDemands)} -
- - {if isset($orderEdit) && $orderEdit} -

- - -

+
+ + {if isset($orderEdit) && $orderEdit} +

+ + +

- {* Already selected room demands *} -
- - - {if isset($extraDemands) && $extraDemands} - {foreach $extraDemands as $roomDemand} - {foreach $roomDemand['extra_demands'] as $demand} - - - - - - {/foreach} + {* Already selected room demands *} +
+
{$demand['name']}{displayPrice price=$demand['total_price_tax_incl'] currency=$orderCurrency}
+ + {if isset($extraDemands) && $extraDemands} + {foreach $extraDemands as $roomDemand} + {foreach $roomDemand['extra_demands'] as $demand} + + + + + {/foreach} - {else} - - - - {/if} - -
{$demand['name']}{displayPrice price=$demand['total_price_tax_incl'] currency=$orderCurrency}
- {l s='No facilities added yet.'} -
-
+ {/foreach} + {else} + + + {l s='No facilities added yet.'} + + + {/if} + + +
- {* Room demands available for the current editing room*} -
-
- {if isset($roomTypeDemands) && $roomTypeDemands} - {foreach $roomTypeDemands as $idGlobalDemand => $demand} -
-
-
-
- -
-
-

{$demand['name']|escape:'html':'UTF-8'}

- {if isset($demand['adv_option']) && $demand['adv_option']} - - {else} - - {/if} -
+ {* Room demands available for the current editing room*} +
+
+ {if isset($roomTypeDemands) && $roomTypeDemands} + {foreach $roomTypeDemands as $idGlobalDemand => $demand} +
+
+
+
+ +
+
+

{$demand['name']|escape:'html':'UTF-8'}

+ {if isset($demand['adv_option']) && $demand['adv_option']} + + {else} + + {/if}
-
-

{if isset($selected_adv_option) && isset($demand['adv_option'][$selected_adv_option]['price'])}{convertPrice price = $demand['adv_option'][$selected_adv_option]['price']|escape:'html':'UTF-8'}{else}{convertPrice price = $demand['price']|escape:'html':'UTF-8'}{/if}

-
- {/foreach} - {/if} -
- -
- {elseif isset($extraDemands) && $extraDemands} - {foreach $extraDemands as $roomDemand} -
- {foreach $roomDemand['extra_demands'] as $demand} -
-

- {$demand['name']} - {displayPrice price=$demand['total_price_tax_incl'] currency=$orderCurrency} -

+
+

{if isset($selected_adv_option) && isset($demand['adv_option'][$selected_adv_option]['price'])}{convertPrice price = $demand['adv_option'][$selected_adv_option]['price']|escape:'html':'UTF-8'}{else}{convertPrice price = $demand['price']|escape:'html':'UTF-8'}{/if}

+
{/foreach} -
- {/foreach} - {/if} -
-{/if} \ No newline at end of file + {/if} +
+ +
+ {elseif isset($extraDemands) && $extraDemands} + {foreach $extraDemands as $roomDemand} +
+ {foreach $roomDemand['extra_demands'] as $demand} +
+

+ {$demand['name']} + {displayPrice price=$demand['total_price_tax_incl'] currency=$orderCurrency} +

+
+ {/foreach} +
+ {/foreach} + {else} + {l s='No facilities available!'} + {/if} +
\ No newline at end of file diff --git a/admin/themes/default/template/controllers/orders/_room_services_block.tpl b/admin/themes/default/template/controllers/orders/_room_services_block.tpl index 66c2e5b21..7566f1e5b 100644 --- a/admin/themes/default/template/controllers/orders/_room_services_block.tpl +++ b/admin/themes/default/template/controllers/orders/_room_services_block.tpl @@ -17,114 +17,114 @@ * @license https://store.webkul.com/license.html *} -{if (isset($additionalServices) && $additionalServices) || (isset($roomTypeServiceProducts) && $roomTypeServiceProducts)} -
- {if isset($orderEdit) && $orderEdit} +
+ {if isset($orderEdit) && $orderEdit} -

- - -

+

+ + +

- {* Already selected room services *} -
- - - {if isset($additionalServices) && $additionalServices} - {foreach $additionalServices['additional_services'] as $service} - - - + + + + {/foreach} + {else} + + + + {/if} + +
-
{$service['name']|escape:'html':'UTF-8'}
- {if $service['allow_multiple_quantity']} -
- -
- {/if} -
- {if $service['product_auto_add'] && $service['product_price_addition_type'] == Product::PRICE_ADDITION_TYPE_INDEPENDENT} - {l s='Convenience fee'} + {* Already selected room services *} +
+ + + {if isset($additionalServices) && $additionalServices} + {foreach $additionalServices['additional_services'] as $service} + + - - - - {/foreach} - {else} - - - - {/if} - -
+
{$service['name']|escape:'html':'UTF-8'}
+ {if $service['allow_multiple_quantity']} +
+ +
{/if} - {if $service['product_auto_add'] && $service['product_price_addition_type'] == Product::PRICE_ADDITION_TYPE_WITH_ROOM} - {l s='Auto added'} - {/if} -
{displayPrice price=$service['total_price_tax_excl']|escape:'html':'UTF-8' currency=$orderCurrency}
- {l s='No services added yet.'}
-
-
-
- {if isset($roomTypeServiceProducts) && $roomTypeServiceProducts} - {foreach $roomTypeServiceProducts as $product} -
-
-
-
- -
-
-

{$product['name']|escape:'html':'UTF-8'}

- {if $product.allow_multiple_quantity} -
- -
- {/if} -
-
-
-
-

- {convertPrice price=$product.price_tax_incl} -

-
-
- {/foreach} - {else} - {l s='No services available to select, All services already added.'} - {/if} -
- - -
- - {elseif isset($additionalServices) && $additionalServices} -
- {foreach $additionalServices['additional_services'] as $service} -
-
-
- +
{if $service['product_auto_add'] && $service['product_price_addition_type'] == Product::PRICE_ADDITION_TYPE_INDEPENDENT} {l s='Convenience fee'} {/if} {if $service['product_auto_add'] && $service['product_price_addition_type'] == Product::PRICE_ADDITION_TYPE_WITH_ROOM} {l s='Auto added'} {/if} - -
{$service['name']|escape:'html':'UTF-8'}
- {if $service['allow_multiple_quantity']} -
{l s='Qty:'} {$service['quantity']|escape:'html':'UTF-8'}
- {/if} - +
{displayPrice price=$service['total_price_tax_excl']|escape:'html':'UTF-8' currency=$orderCurrency}
+ {l s='No services added yet.'} +
+
+
+
+ {if isset($roomTypeServiceProducts) && $roomTypeServiceProducts} + {foreach $roomTypeServiceProducts as $product} +
+
+
+
+ +
+
+

{$product['name']|escape:'html':'UTF-8'}

+ {if $product.allow_multiple_quantity} +
+ +
+ {/if} +
+
-
- {displayPrice price=$service['total_price_tax_excl'] currency=$orderCurrency} +
+

+ {convertPrice price=$product.price_tax_incl} +

-
- {/foreach} + {/foreach} + {else} + {l s='No services available to select, All services already added.'} + {/if}
- {/if} -
-{/if} + + + + + {elseif isset($additionalServices) && $additionalServices} +
+ {foreach $additionalServices['additional_services'] as $service} +
+
+
+ + {if $service['product_auto_add'] && $service['product_price_addition_type'] == Product::PRICE_ADDITION_TYPE_INDEPENDENT} + {l s='Convenience fee'} + {/if} + {if $service['product_auto_add'] && $service['product_price_addition_type'] == Product::PRICE_ADDITION_TYPE_WITH_ROOM} + {l s='Auto added'} + {/if} + +
{$service['name']|escape:'html':'UTF-8'}
+ {if $service['allow_multiple_quantity']} +
{l s='Qty:'} {$service['quantity']|escape:'html':'UTF-8'}
+ {/if} + +
+
+ {displayPrice price=$service['total_price_tax_excl'] currency=$orderCurrency} +
+
+
+ {/foreach} +
+ {else} + {l s='No services available!'} + {/if} +
diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index f928ddfc8..d4a73c139 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -4742,6 +4742,7 @@ class AdminOrdersControllerCore extends AdminController $smartyVars['roomTypeServiceProducts'] = $roomTypeServiceProducts; } } + $smartyVars['show_active'] = true; $this->context->smarty->assign($smartyVars); $servicesTpl = $this->context->smarty->fetch(