diff --git a/admin/themes/default/template/controllers/customer_threads/helpers/view/view.tpl b/admin/themes/default/template/controllers/customer_threads/helpers/view/view.tpl index b42bea915..471eeb0ba 100644 --- a/admin/themes/default/template/controllers/customer_threads/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/customer_threads/helpers/view/view.tpl @@ -36,6 +36,7 @@ {/if} + {if $can_edit}
{foreach $actions as $action} @@ -48,6 +49,7 @@
+ {/if}
@@ -97,6 +99,7 @@ {/foreach}
+{if $can_edit}

{l s="Your answer to"} {if isset($customer->firstname)}{$customer->firstname|escape:'html':'UTF-8'} {$customer->lastname|escape:'html':'UTF-8'} {else} {$thread->email}{/if}

@@ -125,7 +128,7 @@
- +{/if} {if count($timeline_items)}

diff --git a/admin/themes/default/template/controllers/orders/form.tpl b/admin/themes/default/template/controllers/orders/form.tpl index 3d6f19103..2ef8a34ac 100644 --- a/admin/themes/default/template/controllers/orders/form.tpl +++ b/admin/themes/default/template/controllers/orders/form.tpl @@ -2364,17 +2364,14 @@
-
-

-
- -

+

-
+ +
{if !$PS_CATALOG_MODE}
diff --git a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl index d77e15187..cbc87b3f8 100644 --- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl @@ -712,7 +712,7 @@ {if isset($messages) && $messages}
-  {l s='Order Private Notes'} +  {l s='Order Notes'}
{foreach from=$messages item=message name=customerMessage} @@ -725,11 +725,11 @@ {$message['elastname']|escape:'html':'UTF-8'}{else}{$message['cfirstname']|escape:'html':'UTF-8'} {$message['clastname']|escape:'html':'UTF-8'} {/if},   - {dateFormat date=$message['date_add']} + {dateFormat date=$message.date_add full=1} - {if ($message['private'] == 1)} + {* {if ($message['private'] == 1)} {l s='Private'} - {/if} + {/if} *}

{if !$smarty.foreach.customerMessage.last}
{/if} diff --git a/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl b/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl index b9e6524cf..c9d897d84 100644 --- a/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl +++ b/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl @@ -128,6 +128,12 @@
{/if}
+
+
+ + +
+
{if isset($invoices_collection) && sizeof($invoices_collection)}
+
+
+ + +
+
+ +
+
+ + +
+
-
- {if ($product.show_price && !isset($restricted_country_mode)) || isset($groups)} - - {if !$priceDisplay}{convertPrice price=$product.price_tax_incl}{else}{convertPrice price=$product.price_tax_exc}{/if} - {if Product::getServicePriceBillableDays( - $product.price_calculation_method, - $cartRoom.date_from|default:'', - $cartRoom.date_to|default:'' - ) > 1}{l s='/Night'}{/if} - +
+ {if ($product.show_price && !isset($restricted_country_mode)) || isset($groups)} + + {if !$priceDisplay} + {if $serviceSelected} + {convertPrice price=$cartRoom['selected_service'][$product['id_product']]['total_price_tax_incl']} + {else} + {convertPrice price=$product.price_tax_incl} + {/if} + {else} + {if $serviceSelected} + {convertPrice price=$cartRoom['selected_service'][$product['id_product']]['total_price_tax_excl']} + {else} + {convertPrice price=$product.price_tax_exc} + {/if} + {/if} + {if Product::getServicePriceBillableDays( + $product.price_calculation_method, + $cartRoom.date_from|default:'', + $cartRoom.date_to|default:'' + ) > 1}{l s='/Night'}{/if} + {/if}
diff --git a/themes/hotel-reservation-theme/css/global.css b/themes/hotel-reservation-theme/css/global.css index da55c3acc..9b2089a8b 100644 --- a/themes/hotel-reservation-theme/css/global.css +++ b/themes/hotel-reservation-theme/css/global.css @@ -9052,6 +9052,11 @@ a.open_rooms_extra_services_panel { border-radius: 0 0 4px 0; box-shadow: 0 1px 0 0 rgb(0 0 0 / 13%); } +#rooms_extra_services .price-per-night { + font-size: 12px; + color: #777; + margin-bottom: 5px; +} /* fancybox changes */ diff --git a/themes/hotel-reservation-theme/js/order-opc.js b/themes/hotel-reservation-theme/js/order-opc.js index a1f51a07a..272497b62 100644 --- a/themes/hotel-reservation-theme/js/order-opc.js +++ b/themes/hotel-reservation-theme/js/order-opc.js @@ -599,6 +599,9 @@ $(document).ready(function() $(document).on('click', '#rooms_extra_services .qty_up', function(e) { e.preventDefault(); qtyfield = $(this).closest('.qty_container').find('input.qty'); + roomServiceProductValue = $(this).closest('.room_demand_block').find('.room-service-product-value'); + roomServiceProductUnitPrice = roomServiceProductValue.data('unit_price'); + roomServiceProductCurrencySign = roomServiceProductValue.data('currency_sign'); var newQuantity = parseInt(qtyfield.val()) + 1; if (qtyfield.data('max_quantity') && qtyfield.data('max_quantity') < newQuantity) { newQuantity = qtyfield.data('max_quantity'); @@ -608,6 +611,8 @@ $(document).ready(function() showErrorMessage(txtMaxQuantityAdded); } } else { + roomServiceProductTotalPriceQtyUp = newQuantity*roomServiceProductUnitPrice; + roomServiceProductValue.text(roomServiceProductCurrencySign + roomServiceProductTotalPriceQtyUp.toFixed(priceDisplayPrecision)) qtyfield.val(newQuantity).trigger('focusout'); } }); @@ -615,9 +620,15 @@ $(document).ready(function() $(document).on('click', '#rooms_extra_services .qty_down', function(e) { e.preventDefault(); qtyfield = $(this).closest('.qty_container').find('input.qty'); + roomServiceProductValue = $(this).closest('.room_demand_block').find('.room-service-product-value'); + roomServiceProductUnitPrice = roomServiceProductValue.data('unit_price'); + roomServiceProductCurrencySign = roomServiceProductValue.data('currency_sign'); var currentVal = parseInt(qtyfield.val()); if (!isNaN(currentVal) && currentVal > 1) { qtyfield.val(currentVal - 1).trigger('focusout'); + roomServiceProductTotalPriceQtyDown = qtyfield.val()*roomServiceProductUnitPrice; + roomServiceProductValue.text(roomServiceProductCurrencySign + roomServiceProductTotalPriceQtyDown.toFixed(priceDisplayPrecision)) + } else { qtyfield.val(1); if (currentVal != 1) { @@ -628,12 +639,20 @@ $(document).ready(function() $(document).on('focusout', '#rooms_extra_services .qty', function(e) { var qty_wntd = $(this).val(); - if (qty_wntd == '' || !$.isNumeric(qty_wntd)) { + roomServiceProductValue = $(this).closest('.room_demand_block').find('.room-service-product-value'); + roomServiceProductUnitPrice = roomServiceProductValue.data('unit_price'); + roomServiceProductCurrencySign = roomServiceProductValue.data('currency_sign'); + + if (qty_wntd == '' || !$.isNumeric(qty_wntd) || qty_wntd < 1) { $(this).val(1); } if ($(this).data('max_quantity') && $(this).data('max_quantity') < qty_wntd) { $(this).val(qtyfield.data('max_quantity')); } + + roomServiceProductTotalPriceQty = $(this).val()*roomServiceProductUnitPrice; + roomServiceProductValue.text(roomServiceProductCurrencySign + roomServiceProductTotalPriceQty.toFixed(priceDisplayPrecision)) + if ($(this).closest('.room_demand_block').find('.change_room_type_service_product').is(':checked')) { updateServiceProducts($(this).closest('.room_demand_block').find('.change_room_type_service_product')); }