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 0c58d10b2..374e669e4 100644 --- a/admin/themes/default/template/controllers/orders/helpers/view/view.tpl +++ b/admin/themes/default/template/controllers/orders/helpers/view/view.tpl @@ -1066,7 +1066,7 @@ - + diff --git a/admin/themes/default/template/controllers/products/occupancy.tpl b/admin/themes/default/template/controllers/products/occupancy.tpl index db17ea06e..1d61e478f 100644 --- a/admin/themes/default/template/controllers/products/occupancy.tpl +++ b/admin/themes/default/template/controllers/products/occupancy.tpl @@ -35,7 +35,7 @@
- +
diff --git a/admin/themes/default/template/controllers/products/prices.tpl b/admin/themes/default/template/controllers/products/prices.tpl index d8fd3d417..5713c330d 100644 --- a/admin/themes/default/template/controllers/products/prices.tpl +++ b/admin/themes/default/template/controllers/products/prices.tpl @@ -284,95 +284,96 @@ $(document).ready(function () {
- -
-
{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}
- -
- - - - - - - -
-
- -
-
{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}
- -
-
- -
-
- +
+
+
{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}
+ +
+ + + + + + +
-
- -
-
{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}
-
- -
- -
-
- % - +
+
+
{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}
+ +
+
+ +
+
+
+
+
{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}
+
-
- -
-
+
+
- {$currency->prefix}{$currency->suffix} - + % +
-
- {l s='If final price of the room type is less than advance payment amount for the customer then customer will pay the final(lesser) price of the room type.'} + +
+ +
+
+
+
+ {$currency->prefix}{$currency->suffix} + +
+
+
+
+ {l s='If final price of the room type is less than advance payment amount for the customer then customer will pay the final(lesser) price of the room type.'} +
+
+
- +
+
{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}
+ +
+ + + + + + + +
+
-
-
{include file="controllers/products/multishop/checkbox.tpl" field="price" type="price"}
- -
- - - - - - - -
-
{/if}
{l s='Refund ID'}{l s='Request ID'} {l s='Total Rooms'} {l s='Status'} {l s='Requested Date'}
+
{if !$isRefundCompleted} @@ -118,9 +118,8 @@ - - - + + {if !$isRefundCompleted} {/if} @@ -137,14 +136,43 @@ - - - + + {if !$isRefundCompleted} {/if} @@ -155,7 +183,7 @@ {displayPrice price=$booking['refunded_amount'] currency=$orderCurrency['id']} {else} {$orderCurrency['sign']|escape:'html':'UTF-8'} - + {l s='tax incl.' mod='hotelreservationsystem'} {/if} diff --git a/modules/wkroomsearchblock/views/css/wk-global-search.css b/modules/wkroomsearchblock/views/css/wk-global-search.css index 8234891ea..a9f773a21 100644 --- a/modules/wkroomsearchblock/views/css/wk-global-search.css +++ b/modules/wkroomsearchblock/views/css/wk-global-search.css @@ -212,7 +212,7 @@ #search_occupancy_wrapper { border: none; max-height: 400px; - min-width: 250px; + min-width: 280px; overflow: auto; box-shadow: 0 8px 25px -4px rgba(0,0,0,0.39); left: 0px; @@ -249,15 +249,6 @@ font-size: 12px; color: #FF4343; text-align: right;} - #search_occupancy_wrapper .occupancy_info_block { - display: grid; - grid-template-columns: repeat(2, 1fr); } - #search_occupancy_wrapper .occupancy_info_block .occupancy_count_block{ - display: grid;} - #search_occupancy_wrapper .occupancy_info_block .occupancy_count_block > div{ - align-self: end;} - #search_occupancy_wrapper .occupancy_info_block .children_age_info_block { - grid-column: 1 / 3} #search_occupancy_wrapper .occupancy_info_block .occupancy_count { padding: 14px; border: 1px solid #E1E3E7; @@ -286,7 +277,7 @@ #search_occupancy_wrapper .children_ages { display: grid; grid-template-columns: 1fr 1fr; - column-gap: 5px; + gap: 8px; justify-content: space-between; } #search_occupancy_wrapper .children_ages select { diff --git a/modules/wkroomsearchblock/views/js/wk-room-search-block.js b/modules/wkroomsearchblock/views/js/wk-room-search-block.js index 0208e51e0..bfb5f13bc 100644 --- a/modules/wkroomsearchblock/views/js/wk-room-search-block.js +++ b/modules/wkroomsearchblock/views/js/wk-room-search-block.js @@ -349,43 +349,48 @@ $(document).ready(function() { occupancy_block += '
'; occupancy_block += '
'+ room_txt + ' - ' + countRooms + '' + remove_txt + '
'; occupancy_block += '
'; - occupancy_block += '
'; - occupancy_block += ''; - occupancy_block += '
'; - occupancy_block += ''; - occupancy_block += '
'; - occupancy_block += '1'; - occupancy_block += '
'; - occupancy_block += '
'; - occupancy_block += ''; - occupancy_block += ''; - occupancy_block += ''; - occupancy_block += ''; - occupancy_block += ''; - occupancy_block += ''; + occupancy_block += '
'; + occupancy_block += '
'; + occupancy_block += ''; + occupancy_block += '
'; + occupancy_block += ''; + occupancy_block += '
'; + occupancy_block += '1'; + occupancy_block += '
'; + occupancy_block += '
'; + occupancy_block += ''; + occupancy_block += ''; + occupancy_block += ''; + occupancy_block += ''; + occupancy_block += ''; + occupancy_block += ''; + occupancy_block += '
'; occupancy_block += '
'; occupancy_block += '
'; - occupancy_block += '
'; - occupancy_block += '
'; - occupancy_block += ''; - occupancy_block += '
'; - occupancy_block += ''; - occupancy_block += '
'; - occupancy_block += '0'; - occupancy_block += '
'; - occupancy_block += '
'; - occupancy_block += ''; - occupancy_block += ''; - occupancy_block += ''; - occupancy_block += ''; - occupancy_block += ''; - occupancy_block += ''; + occupancy_block += '
'; + occupancy_block += ''; + occupancy_block += '
'; + occupancy_block += ''; + occupancy_block += '
'; + occupancy_block += '0'; + occupancy_block += '
'; + occupancy_block += '
'; + occupancy_block += ''; + occupancy_block += ''; + occupancy_block += ''; + occupancy_block += ''; + occupancy_block += ''; + occupancy_block += ''; + occupancy_block += '
'; occupancy_block += '
'; + occupancy_block += '

(' + below_txt + ' ' + max_child_age + ' ' + years_txt + ')

'; occupancy_block += '
'; occupancy_block += '
'; - occupancy_block += '
'; - occupancy_block += ''; - occupancy_block += '
'; + occupancy_block += '
'; + occupancy_block += '
'; + occupancy_block += ''; + occupancy_block += '
'; + occupancy_block += '
'; occupancy_block += '
'; occupancy_block += '
'; occupancy_block += '
'; diff --git a/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl b/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl index 86605eec5..79e7bcf2f 100644 --- a/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl +++ b/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl @@ -75,56 +75,61 @@
{l s='Room' mod='wkroomsearchblock'} - {$countRoom|escape:'htmlall':'UTF-8'} {if !$smarty.foreach.occupancyInfo.first}{l s='Remove' mod='wkroomsearchblock'}{/if}
-
- -
- -
- {$occupancy['adults']|escape:'htmlall':'UTF-8'} -
-
- - - - - - +
+
+ +
+ +
+ {$occupancy['adults']|escape:'htmlall':'UTF-8'} +
+
-
-
- -
- -
- {$occupancy['children']|escape:'htmlall':'UTF-8'} -
-
- - - - - - +
+ +
+ +
+ {$occupancy['children']|escape:'htmlall':'UTF-8'} +
+
+

({l s='Below' mod='wkroomsearchblock'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years' mod='wkroomsearchblock'})

-
- -
- {if isset($occupancy['child_ages']) && $occupancy['child_ages']} - {foreach $occupancy['child_ages'] as $childAge} -
- -
- {/foreach} - {/if} +
+
+ +
+ {if isset($occupancy['child_ages']) && $occupancy['child_ages']} + {foreach $occupancy['child_ages'] as $childAge} +
+ +
+ {/foreach} + {/if} +
@@ -136,51 +141,56 @@
{l s='Room - 1' mod='wkroomsearchblock'}
-
- -
- -
- 1 -
-
- - - - - - - - - - +
+
+ +
+ +
+ 1 +
+
-
-
- -
- -
- 0 -
-
- - - - - - - - - - +
+ +
+ +
+ 0 +
+
+

({l s='Below' mod='wkroomsearchblock'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years' mod='wkroomsearchblock'})

-
- -
+
+
+ +
+
diff --git a/pdf/invoice.total-tab.tpl b/pdf/invoice.total-tab.tpl index 748cfbc77..2f70c1267 100644 --- a/pdf/invoice.total-tab.tpl +++ b/pdf/invoice.total-tab.tpl @@ -38,7 +38,7 @@ {l s='Extra Services Cost (tax excl.)' pdf='true'}
{/if} @@ -52,6 +52,16 @@ {/if} + {if $footer.product_discounts_tax_excl > 0} + + + + + {/if} {* {if isset($footer.product_taxes) && $footer.product_taxes} {/if} *} + {/if} - {if $footer.product_discounts_tax_excl > 0} - - - - - {/if} +
{l s='Room type' mod='hotelreservationsystem'} {l s='Hotel' mod='hotelreservationsystem'} {l s='Duration' mod='hotelreservationsystem'}{l s='Total room cost (tax incl.)'}{l s='Room amount paid (tax incl.)'}{l s='Additional services amount paid (tax incl.)'}{l s='Total cost (tax incl.)'}{l s='Total paid amount (tax incl.)'}{l s='Rooms cancelation charges' mod='hotelreservationsystem'}{$booking['room_type_name']|escape:'htmlall':'UTF-8'} {$booking['hotel_name']|escape:'htmlall':'UTF-8'} {$booking['date_from']|date_format:"%d-%m-%Y"} {l s='To' mod='hotelreservationsystem'} {$booking['date_to']|date_format:"%d-%m-%Y"}{displayPrice price=$booking['total_price_tax_incl'] currency=$orderCurrency['id']}{displayPrice price=$booking['room_paid_amount'] currency=$orderCurrency['id']}{displayPrice price=$booking['extra_service_total_paid_amount'] currency=$orderCurrency['id']} + {displayPrice price=($booking['total_price_tax_incl'] + $booking['extra_service_total_price_tax_incl']) currency=$orderCurrency['id']} + +   + + + + {displayPrice price=($booking['room_paid_amount'] + $booking['extra_service_total_paid_amount']) currency=$orderCurrency['id']} + +   + + + {displayPrice price=$booking['cancelation_charge'] currency=$orderCurrency['id']} {if $booking['reduction_type'] == HotelOrderRefundRules::WK_REFUND_RULE_PAYMENT_TYPE_PERCENTAGE} -

{Tools::ps_round($booking['reduction_value'])}{l s='% of'} {displayPrice price=$booking['total_price_tax_incl'] currency=$orderCurrency['id']}

+

{Tools::ps_round($booking['reduction_value'], 2)}{l s='% of'} {displayPrice price=($booking['total_price_tax_incl'] + $booking['extra_service_total_price_tax_incl']) currency=$orderCurrency['id']}

{/if}
- {displayPrice currency=$order->id_currency price=($footer.additional_service_price_tax_excl - $footer.total_convenience_fee_te)} + {displayPrice currency=$order->id_currency price=($footer.additional_service_price_tax_excl)}
+ {l s='Total Discounts' pdf='true'} + + - {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_excl} +
@@ -92,6 +102,7 @@
{l s='Total (Tax excl.)' pdf='true'} @@ -110,16 +121,7 @@
- {l s='Total Discounts' pdf='true'} - - - {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_excl} -
diff --git a/themes/hotel-reservation-theme/_partials/occupancy_field.tpl b/themes/hotel-reservation-theme/_partials/occupancy_field.tpl index e793e8618..4adb17599 100644 --- a/themes/hotel-reservation-theme/_partials/occupancy_field.tpl +++ b/themes/hotel-reservation-theme/_partials/occupancy_field.tpl @@ -63,7 +63,7 @@
- +
@@ -78,16 +78,19 @@
+
+ ({l s='Below'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years'}) +
-
+
{if isset($occupancy['child_ages']) && $occupancy['child_ages']} {foreach $occupancy['child_ages'] as $childAge} -
+
0 @@ -153,13 +156,16 @@
+
+ ({l s='Below'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years'}) +
-
+
diff --git a/themes/hotel-reservation-theme/address.tpl b/themes/hotel-reservation-theme/address.tpl index 57c00ef9c..3e3e9da78 100644 --- a/themes/hotel-reservation-theme/address.tpl +++ b/themes/hotel-reservation-theme/address.tpl @@ -23,6 +23,11 @@ * International Registered Trademark & Property of PrestaShop SA *} {capture name=path}{l s='Your address'}{/capture} + {if isset($smarty.get.updated) && $smarty.get.updated} +

+ {l s='Your address has been successfully updated.'} +

+ {/if}

{l s='Your address'}

diff --git a/themes/hotel-reservation-theme/css/global.css b/themes/hotel-reservation-theme/css/global.css index 16eec4358..3cd05730d 100644 --- a/themes/hotel-reservation-theme/css/global.css +++ b/themes/hotel-reservation-theme/css/global.css @@ -9145,3 +9145,10 @@ a.open_rooms_extra_services_panel { height: 10px; } /* skeleton loading animations - end */ + + +a.link { + font-weight: 700; + color: #0000ff; + text-decoration: none; +} \ No newline at end of file diff --git a/themes/hotel-reservation-theme/css/occupancy.css b/themes/hotel-reservation-theme/css/occupancy.css index 14b82ed81..6523d35ee 100644 --- a/themes/hotel-reservation-theme/css/occupancy.css +++ b/themes/hotel-reservation-theme/css/occupancy.css @@ -35,6 +35,11 @@ .booking_occupancy_wrapper .children_age_info_block label { font-size: 12px; color: #777777;} + .booking_occupancy_wrapper .children_age_info_block .children_ages{ + display: grid; + grid-template-columns: 1fr 1fr; + gap: 8px; + justify-content: space-between;} .booking_occupancy_wrapper .label-desc-txt { font-size: 12px; color: #777777;} @@ -97,7 +102,6 @@ height: 37px; border-radius: 4px; padding: 3px 5px; - margin-bottom: 10px; font-size: 12px; color: #333; border: 1px solid #E1E3E7; diff --git a/themes/hotel-reservation-theme/js/occupancy.js b/themes/hotel-reservation-theme/js/occupancy.js index b50060688..d8a0da637 100644 --- a/themes/hotel-reservation-theme/js/occupancy.js +++ b/themes/hotel-reservation-theme/js/occupancy.js @@ -64,7 +64,7 @@ $(document).ready(function(){ let roomBlockIndex = parseInt($(this).closest('.occupancy_info_block').attr('occ_block_index')); - let childAgeSelect = '

'; + let childAgeSelect = '
'; childAgeSelect += ''; occupancy_block += '
'; occupancy_block += '0'; @@ -243,13 +243,14 @@ $(document).ready(function(){ occupancy_block += ''; occupancy_block += '
'; occupancy_block += '
'; + occupancy_block += '
(' + below_txt + ' ' + max_child_age + ' ' + years_txt + ')
'; occupancy_block += '
'; occupancy_block += '
'; occupancy_block += '
'; occupancy_block += '
'; occupancy_block += ''; occupancy_block += '
'; - occupancy_block += '
'; + occupancy_block += '
'; occupancy_block += '
'; occupancy_block += '
'; occupancy_block += '
'; diff --git a/themes/hotel-reservation-theme/js/order-opc.js b/themes/hotel-reservation-theme/js/order-opc.js index bc79fef42..0649a68dd 100644 --- a/themes/hotel-reservation-theme/js/order-opc.js +++ b/themes/hotel-reservation-theme/js/order-opc.js @@ -509,8 +509,14 @@ $(document).ready(function() var newQuantity = parseInt(qtyfield.val()) + 1; if (qtyfield.data('max_quantity') && qtyfield.data('max_quantity') < newQuantity) { newQuantity = qtyfield.data('max_quantity'); - } - qtyfield.val(newQuantity).trigger('focusout'); + if (qtyfield.val() != qtyfield.data('max_quantity')) { + qtyfield.trigger('focusout'); + } else { + showErrorMessage(txtMaxQuantityAdded); + } + } else { + qtyfield.val(newQuantity).trigger('focusout'); + } }); $(document).on('click', '#rooms_extra_services .qty_down', function(e) { @@ -520,7 +526,10 @@ $(document).ready(function() if (!isNaN(currentVal) && currentVal > 1) { qtyfield.val(currentVal - 1).trigger('focusout'); } else { - qtyfield.val(1).trigger('focusout'); + qtyfield.val(1); + if (currentVal != 1) { + qtyfield.trigger('focusout'); + } } }); diff --git a/themes/hotel-reservation-theme/js/product.js b/themes/hotel-reservation-theme/js/product.js index bf1139758..c3ee9ae7f 100644 --- a/themes/hotel-reservation-theme/js/product.js +++ b/themes/hotel-reservation-theme/js/product.js @@ -1255,7 +1255,11 @@ $(document).ready(function() { $(that).closest('.service_product_action_block').find('input.service_product_qty').val(1); $(that).closest('.service_product_action_block').find('.qty_count span').text(1); if (result.msg) { - showSuccessMessage(result.msg); + if (result.add) { + showSuccessMessage(result.msg); + } else { + showErrorMessage(result.msg); + } } BookingForm.refresh(); } else { diff --git a/themes/hotel-reservation-theme/order-detail.tpl b/themes/hotel-reservation-theme/order-detail.tpl index 96af48089..e6a88a799 100644 --- a/themes/hotel-reservation-theme/order-detail.tpl +++ b/themes/hotel-reservation-theme/order-detail.tpl @@ -658,7 +658,9 @@

diff --git a/themes/hotel-reservation-theme/order-opc.tpl b/themes/hotel-reservation-theme/order-opc.tpl index f63d65626..8cdc91e23 100644 --- a/themes/hotel-reservation-theme/order-opc.tpl +++ b/themes/hotel-reservation-theme/order-opc.tpl @@ -506,6 +506,7 @@ {capture}{l s='Update' js=1}{/capture} {addJsDefL name=liUpdate}{$smarty.capture.default|@addcslashes:'\''}{/addJsDefL} {addJsDefL name=txtExtraDemandSucc}{l s='Updated Successfully' js=1}{/addJsDefL} + {addJsDefL name=txtMaxQuantityAdded}{l s='Maximum quantity of service added' js=1}{/addJsDefL} {addJsDefL name=txtExtraDemandErr}{l s='Some error occurred while updating demands' js=1}{/addJsDefL} {/strip} {/if} diff --git a/themes/hotel-reservation-theme/order-return.tpl b/themes/hotel-reservation-theme/order-return.tpl index d5bdf2c2d..dd45651ea 100644 --- a/themes/hotel-reservation-theme/order-return.tpl +++ b/themes/hotel-reservation-theme/order-return.tpl @@ -148,22 +148,22 @@ {if $orderReturnInfo['return_type'] == OrderReturn::RETURN_TYPE_CART_RULE}
- {l s='Voucher ID:' mod='hotelreservationsystem'} + {l s='Voucher' mod='hotelreservationsystem'}
{elseif $orderReturnInfo['return_type'] == OrderReturn::RETURN_TYPE_ORDER_SLIP}