- {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}
-
- |
- {$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 *}
+
-
-
- {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} |
+ |
+ |
+ {/foreach}
+ {else}
+
+ |
+ {l s='No services added yet.'}
+ |
+
+ {/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(