From 748e1c24f3ba2f44df7b4365cd0c7f9b2ba7b351 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 10 Sep 2024 13:06:18 +0530 Subject: [PATCH] Added more blocks in details in some template files, fixed fatal error on order-detial caused by blocks --- modules/blockcart/blockcart.tpl | 673 ++++++++++-------- modules/blockuserinfo/nav.tpl | 58 +- .../templates/hook/headerHotelDescBlock.tpl | 8 +- .../templates/hook/hotelInteriorBlock.tpl | 12 +- .../templates/hook/hotelfeaturescontent.tpl | 8 +- .../templates/hook/hotelRoomDisplayBlock.tpl | 56 +- .../templates/hook/roomTypePageSearch.tpl | 20 +- .../views/templates/hook/searchForm.tpl | 12 +- .../templates/hook/wktestimonialblock.tpl | 8 +- .../_partials/booking-form.tpl | 46 +- .../_partials/order-room-detail.tpl | 2 +- .../_partials/room_type_list.tpl | 38 +- .../_partials/service-products-list-row.tpl | 2 +- themes/hotel-reservation-theme/address.tpl | 28 +- .../authentication.tpl | 6 +- themes/hotel-reservation-theme/category.tpl | 14 +- themes/hotel-reservation-theme/footer.tpl | 2 +- themes/hotel-reservation-theme/header.tpl | 60 +- themes/hotel-reservation-theme/history.tpl | 248 ++++--- themes/hotel-reservation-theme/identity.tpl | 2 +- themes/hotel-reservation-theme/index.tpl | 6 +- .../modules/blockcart/blockcart.tpl | 673 ++++++++++-------- .../modules/blockuserinfo/nav.tpl | 54 +- themes/hotel-reservation-theme/my-account.tpl | 32 +- .../order-confirmation.tpl | 644 +++++++++-------- .../hotel-reservation-theme/order-detail.tpl | 372 +++++----- .../hotel-reservation-theme/order-follow.tpl | 33 +- .../order-opc-edit-guest-info.tpl | 4 +- .../order-opc-new-account-advanced.tpl | 4 +- .../order-opc-new-account.tpl | 4 +- themes/hotel-reservation-theme/order-opc.tpl | 146 ++-- .../order-payment-advanced.tpl | 2 +- .../order-payment-classic.tpl | 4 +- .../hotel-reservation-theme/order-return.tpl | 257 +++---- themes/hotel-reservation-theme/product.tpl | 208 +++--- .../shopping-cart-advanced.tpl | 2 +- .../hotel-reservation-theme/shopping-cart.tpl | 250 ++++--- 37 files changed, 2137 insertions(+), 1861 deletions(-) diff --git a/modules/blockcart/blockcart.tpl b/modules/blockcart/blockcart.tpl index 1b622fa70..0599e08f3 100644 --- a/modules/blockcart/blockcart.tpl +++ b/modules/blockcart/blockcart.tpl @@ -23,246 +23,275 @@ * International Registered Trademark & Property of PrestaShop SA *} -{block name='block_cart'} +{block name='blockcart'} {if isset($blockcart_top) && $blockcart_top}
{/if} - {block name='block_cart_shopping_cart'} + {block name='blockcart_shopping_cart'}
- - - {$total_products_in_cart} - - - - {if $cart_qties > 0} - {if $priceDisplay == 1} - {assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} - {convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)} - {else} - {assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} - {convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)} + {block name='blockcart_shopping_cart_icon'} + + + {$total_products_in_cart} + + + + {if $cart_qties > 0} + {if $priceDisplay == 1} + {assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} + {convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)} + {else} + {assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} + {convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)} + {/if} {/if} + + 0 + {if $ajax_allowed && isset($blockcart_top) && !$blockcart_top} +   +   {/if} - - 0 - {if $ajax_allowed && isset($blockcart_top) && !$blockcart_top} -   -   - {/if} - - {if !$PS_CATALOG_MODE} -
-
- - + + {l s='Wrapping' mod='blockcart'} + +
+ {/if} --> + {block name='blockcart_shopping_cart_total_tax'} + {if $show_tax && $use_tax} +
+ {$tax_cost} + {l s='Tax' mod='blockcart'} +
+ {/if} + {/block} + {block name='blockcart_shopping_cart_total_convenience_fee'} + {if isset($total_convenience_fee)} +
+ {convertPrice price=$total_convenience_fee} + {l s='Convenience Fees' mod='blockcart'} +
+ {/if} + {/block} + {block name='blockcart_shopping_cart_total_convenience_price'} +
+ {$total} + {l s='Total' mod='blockcart'} +
+ {if $use_taxes && $display_tax_label == 1 && $show_tax} +

+ {if $priceDisplay == 0} + {l s='Prices are tax included' mod='blockcart'} + {elseif $priceDisplay == 1} + {l s='Prices are tax excluded' mod='blockcart'} {/if} - - {if isset($product.attributes_small)} -

+

{/if} - - {if isset($customizedDatas.$productId.$productAttributeId[$product.id_address_delivery])} - {if !isset($product.attributes_small)} -
- {/if} -
    - {foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization' name='customizations'} -
  • -
    -   -
    - {if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)} - {$customization.datas.$CUSTOMIZE_TEXTFIELD.0.value|replace:"
    ":" "|truncate:28:'...'|escape:'html':'UTF-8'} - {else} - {l s='Customization #%d:' sprintf=$id_customization|intval mod='blockcart'} - {/if} -
  • - {/foreach} -
- {if !isset($product.attributes_small)}
{/if} - {/if} - {if isset($product.attributes_small)}{/if} - {/if} - {/foreach} - - {/if} -

- {l s='No products' mod='blockcart'} -

- {if $discounts|@count > 0} - - {foreach from=$discounts item=discount} - {if $discount.value_real > 0} - - - - - - - {/if} - {/foreach} -
1x - {$discount.name|truncate:18:'...'|escape:'html':'UTF-8'} - - -{if $priceDisplay == 1}{convertPrice price=$discount.value_tax_exc}{else}{convertPrice price=$discount.value_real}{/if} - - {if strlen($discount.code)} - - - - {/if} -
- {/if} -
- - {if $show_tax && $use_tax} -
- {$tax_cost} - {l s='Tax' mod='blockcart'} + {/block}
- {/if} - {if isset($total_convenience_fee)} -
- {convertPrice price=$total_convenience_fee} - {l s='Convenience Fees' mod='blockcart'} -
- {/if} -
- {$total} - {l s='Total' mod='blockcart'} -
- {if $use_taxes && $display_tax_label == 1 && $show_tax} -

- {if $priceDisplay == 0} - {l s='Prices are tax included' mod='blockcart'} - {elseif $priceDisplay == 1} - {l s='Prices are tax excluded' mod='blockcart'} - {/if} + {/block} + {block name='blockcart_shopping_cart_checkout_button'} +

+ + + {l s='Check out' mod='blockcart'} + +

- {/if} + {/block}
-

- - - {l s='Check out' mod='blockcart'} - - -

-
-
- {/if} + + {/if} + {/block} {/block} {if isset($blockcart_top) && $blockcart_top} {/if} {counter name=active_overlay assign=active_overlay} - {block name='block_cart_layer_cart'} + {block name='blockcart_layer_cart'} {if !$PS_CATALOG_MODE && $active_overlay == 1}
@@ -295,116 +324,128 @@
-
-

- - - {l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['']} - + {block name='blockcart_layer_cart_detail'} +
+ {block name='blockcart_layer_cart_detail_heading'} +

+ + + {l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['']} + - - - {l s='1 item in your cart.' mod='blockcart'} - -

+ + + {l s='1 item in your cart.' mod='blockcart'} + +

+ {/block} -
- - {l s='Total Rooms Cost in cart' mod='blockcart'} - {if $display_tax_label} - {if $priceDisplay == 1} - {l s='(tax excl.)' mod='blockcart'} - {else} - {l s='(tax incl.)' mod='blockcart'} - {/if} - {/if} - - - {if $cart_qties > 0} - {convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_PRODUCTS)} - {/if} - -
- - + - + {block name='blockcart_layer_cart_detail_convenience_fee'} + {if isset($total_convenience_fee)} +
+ {l s='Convenience Fees' mod='blockcart'} + {convertPrice price=$total_convenience_fee} +
{/if} - -
--> - {if isset($total_convenience_fee)} -
- {l s='Convenience Fees' mod='blockcart'} - {convertPrice price=$total_convenience_fee} -
- {/if} - {if $show_tax && $use_tax} -
- {l s='Tax' mod='blockcart'} - {$tax_cost} -
- {/if} -
- - {l s='Total' mod='blockcart'} - {if $display_tax_label} - {if $priceDisplay == 1} - {l s='(tax excl.)' mod='blockcart'} - {else} - {l s='(tax incl.)' mod='blockcart'} - {/if} + {/block} + {block name='blockcart_layer_cart_detail_tax'} + {if $show_tax && $use_tax} +
+ {l s='Tax' mod='blockcart'} + {$tax_cost} +
{/if} -
- - {if $cart_qties > 0} - {if $priceDisplay == 1} - {convertPrice price=$cart->getOrderTotal(false)} - {else} - {convertPrice price=$cart->getOrderTotal(true)} - {/if} - {/if} - + {/block} + {block name='blockcart_layer_cart_detail_total'} +
+ + {l s='Total' mod='blockcart'} + {if $display_tax_label} + {if $priceDisplay == 1} + {l s='(tax excl.)' mod='blockcart'} + {else} + {l s='(tax incl.)' mod='blockcart'} + {/if} + {/if} + + + {if $cart_qties > 0} + {if $priceDisplay == 1} + {convertPrice price=$cart->getOrderTotal(false)} + {else} + {convertPrice price=$cart->getOrderTotal(true)} + {/if} + {/if} + +
+
+ + + {l s='Continue browsing' mod='blockcart'} + + + + + {l s='Proceed to checkout' mod='blockcart'} + + +
+ {/block}
-
- - - {l s='Continue browsing' mod='blockcart'} - - - - - {l s='Proceed to checkout' mod='blockcart'} - - -
- + {/block}
diff --git a/modules/blockuserinfo/nav.tpl b/modules/blockuserinfo/nav.tpl index 5d59a945d..d226c2a08 100644 --- a/modules/blockuserinfo/nav.tpl +++ b/modules/blockuserinfo/nav.tpl @@ -1,31 +1,31 @@ -{if !isset($ajaxCustomerLogin)} - -{/if} +{block name='nav'} + {if !isset($ajaxCustomerLogin)} + + {/if} +{/block} diff --git a/modules/hotelreservationsystem/views/templates/hook/headerHotelDescBlock.tpl b/modules/hotelreservationsystem/views/templates/hook/headerHotelDescBlock.tpl index 3731d4480..639d141e3 100644 --- a/modules/hotelreservationsystem/views/templates/hook/headerHotelDescBlock.tpl +++ b/modules/hotelreservationsystem/views/templates/hook/headerHotelDescBlock.tpl @@ -27,8 +27,12 @@

{l s='Welcome To' mod='hotelreservationsystem'}


-

{$WK_HTL_CHAIN_NAME|escape:'htmlall':'UTF-8'}

-

{$WK_HTL_TAG_LINE|escape:'htmlall':'UTF-8'}

+ {block name='header_hotel_desc_block_hotel_name'} +

{$WK_HTL_CHAIN_NAME|escape:'htmlall':'UTF-8'}

+ {/block} + {block name='header_hotel_desc_block_hotel_tag_line'} +

{$WK_HTL_TAG_LINE|escape:'htmlall':'UTF-8'}

+ {/block}
diff --git a/modules/wkabouthotelblock/views/templates/hook/hotelInteriorBlock.tpl b/modules/wkabouthotelblock/views/templates/hook/hotelInteriorBlock.tpl index 3595627f1..8343d9a61 100644 --- a/modules/wkabouthotelblock/views/templates/hook/hotelInteriorBlock.tpl +++ b/modules/wkabouthotelblock/views/templates/hook/hotelInteriorBlock.tpl @@ -24,9 +24,15 @@ {if $HOTEL_INTERIOR_HEADING && $HOTEL_INTERIOR_DESCRIPTION}
-

{$HOTEL_INTERIOR_HEADING|escape:'htmlall':'UTF-8'}

-

{$HOTEL_INTERIOR_DESCRIPTION|escape:'htmlall':'UTF-8'}

- {hook h="displayInteriorExtraContent"} + {block name='hotel_interior_heading'} +

{$HOTEL_INTERIOR_HEADING|escape:'htmlall':'UTF-8'}

+ {/block} + {block name='hotel_interior_description'} +

{$HOTEL_INTERIOR_DESCRIPTION|escape:'htmlall':'UTF-8'}

+ {/block} + {block name='displayInteriorExtraContent'} + {hook h="displayInteriorExtraContent"} + {/block}
diff --git a/modules/wkhotelfeaturesblock/views/templates/hook/hotelfeaturescontent.tpl b/modules/wkhotelfeaturesblock/views/templates/hook/hotelfeaturescontent.tpl index 6348f12d1..3e7ed95f9 100644 --- a/modules/wkhotelfeaturesblock/views/templates/hook/hotelfeaturescontent.tpl +++ b/modules/wkhotelfeaturesblock/views/templates/hook/hotelfeaturescontent.tpl @@ -24,8 +24,12 @@ {if $HOTEL_AMENITIES_HEADING && $HOTEL_AMENITIES_DESCRIPTION}
-

{$HOTEL_AMENITIES_HEADING|escape:'htmlall':'UTF-8'}

-

{$HOTEL_AMENITIES_DESCRIPTION|escape:'htmlall':'UTF-8'}

+ {block name='hotel_features_heading'} +

{$HOTEL_AMENITIES_HEADING|escape:'htmlall':'UTF-8'}

+ {/block} + {block name='hotel_features_description'} +

{$HOTEL_AMENITIES_DESCRIPTION|escape:'htmlall':'UTF-8'}

+ {/block}
diff --git a/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl b/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl index aeae7de83..18f0c52f1 100644 --- a/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl +++ b/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl @@ -24,8 +24,12 @@ {if $HOTEL_ROOM_DISPLAY_HEADING && $HOTEL_ROOM_DISPLAY_DESCRIPTION}
-

{$HOTEL_ROOM_DISPLAY_HEADING|escape:'htmlall':'UTF-8'}

-

{$HOTEL_ROOM_DISPLAY_DESCRIPTION|escape:'htmlall':'UTF-8'}

+ {block name='hotel_room_display_block_heading'} +

{$HOTEL_ROOM_DISPLAY_HEADING|escape:'htmlall':'UTF-8'}

+ {/block} + {block name='hotel_room_display_block_description'} +

{$HOTEL_ROOM_DISPLAY_DESCRIPTION|escape:'htmlall':'UTF-8'}

+ {/block}
@@ -46,28 +50,32 @@ {hook h='displayHotelRoomsBlockImageAfter' room_type=$roomDisplay} {/block}
-
-

{$roomDisplay.name|escape:'htmlall':'UTF-8'}

- {if $roomDisplay.show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE} -

- {if $roomDisplay.feature_price_diff >= 0} - {convertPrice price = $roomDisplay.price_without_reduction} - {/if} - {if $roomDisplay.feature_price_diff} - {convertPrice price = $roomDisplay.feature_price} - {/if} - - / {l s='Per Night' mod='wkhotelroom'} - -

- {/if} -
-
{$roomDisplay.description|escape:'html':'UTF-8'}
- -
...{l s='Read More.' mod='wkhotelroom'}...{l s='Read Less.' mod='wkhotelroom'}
- + {block name='hotel_room_display_block_room_type_description'} +
+

{$roomDisplay.name|escape:'htmlall':'UTF-8'}

+ {if $roomDisplay.show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE} +

+ {if $roomDisplay.feature_price_diff >= 0} + {convertPrice price = $roomDisplay.price_without_reduction} + {/if} + {if $roomDisplay.feature_price_diff} + {convertPrice price = $roomDisplay.feature_price} + {/if} + + / {l s='Per Night' mod='wkhotelroom'} + +

+ {/if} +
+
{$roomDisplay.description|escape:'html':'UTF-8'}
+ +
...{l s='Read More.' mod='wkhotelroom'}...{l s='Read Less.' mod='wkhotelroom'}
+ {/block} + {block name='hotel_room_display_block_book_now_button'} + + {/block}
{if !($smarty.foreach.htlRoom.iteration%2)} diff --git a/modules/wkroomsearchblock/views/templates/hook/roomTypePageSearch.tpl b/modules/wkroomsearchblock/views/templates/hook/roomTypePageSearch.tpl index 7c57280ec..6ba8ca0d1 100644 --- a/modules/wkroomsearchblock/views/templates/hook/roomTypePageSearch.tpl +++ b/modules/wkroomsearchblock/views/templates/hook/roomTypePageSearch.tpl @@ -19,7 +19,7 @@ {block name='room_type_page_search'} {if isset($hotels_info) && count($hotels_info)} - {block name='room_type_page_search'} + {block name='room_type_page_search_input'} {* searched information wrapper block*} {if isset($search_data) && $search_data}
@@ -49,15 +49,17 @@ {/block} {* search form wrapper block*} -
-
-
-

{l s='Searched results for' mod='wkroomsearchblock'}

+ {block name='room_type_page_search_form'} +
+
+
+

{l s='Searched results for' mod='wkroomsearchblock'}

+
+ {* search form *} + {include file="./searchForm.tpl"} +
- {* search form *} - {include file="./searchForm.tpl"} -
-
+ {/block} {/if} {/block} diff --git a/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl b/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl index 3fcbc5896..2ca934348 100644 --- a/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl +++ b/modules/wkroomsearchblock/views/templates/hook/searchForm.tpl @@ -232,10 +232,12 @@
{/if} {/block} -
- -
+ {block name='search_form_submit'} +
+ +
+ {/block} {/block} diff --git a/modules/wktestimonialblock/views/templates/hook/wktestimonialblock.tpl b/modules/wktestimonialblock/views/templates/hook/wktestimonialblock.tpl index d348a40cc..c031ca772 100644 --- a/modules/wktestimonialblock/views/templates/hook/wktestimonialblock.tpl +++ b/modules/wktestimonialblock/views/templates/hook/wktestimonialblock.tpl @@ -24,8 +24,12 @@ {if $HOTEL_TESIMONIAL_BLOCK_HEADING && $HOTEL_TESIMONIAL_BLOCK_CONTENT}
-

{$HOTEL_TESIMONIAL_BLOCK_HEADING|escape:'htmlall':'UTF-8'}

-

{$HOTEL_TESIMONIAL_BLOCK_CONTENT|escape:'htmlall':'UTF-8'}

+ {block name='testimonial_block_heading'} +

{$HOTEL_TESIMONIAL_BLOCK_HEADING|escape:'htmlall':'UTF-8'}

+ {/block} + {block name='testimonial_block_description'} +

{$HOTEL_TESIMONIAL_BLOCK_CONTENT|escape:'htmlall':'UTF-8'}

+ {/block}
diff --git a/themes/hotel-reservation-theme/_partials/booking-form.tpl b/themes/hotel-reservation-theme/_partials/booking-form.tpl index 1f294e42f..d9ce4f6cf 100644 --- a/themes/hotel-reservation-theme/_partials/booking-form.tpl +++ b/themes/hotel-reservation-theme/_partials/booking-form.tpl @@ -35,7 +35,7 @@ {if $product->booking_product} {if !$order_date_restrict}
- {block name='booking_form_dates_fields'} + {block name='booking_form_dates_field'}
{l s='Check-in'}    {l s='Check-out'}
@@ -45,7 +45,7 @@ {/block}
{if $total_available_rooms > 0} - {block name='booking_form_quantity_fields'} + {block name='booking_form_quantity_field'}
available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}> {if isset($occupancy_required_for_booking) && $occupancy_required_for_booking} @@ -146,17 +146,19 @@ {block name='booking_form_actions'}
-
- -

- {if $total_price && $total_price_without_discount > $total_price} - - {convertPrice price=$total_price_without_discount|floatval} - - {/if} - {convertPrice price=$total_price|floatval} -

-
+ {block name='booking_form_total_price'} +
+ +

+ {if $total_price && $total_price_without_discount > $total_price} + + {convertPrice price=$total_price_without_discount|floatval} + + {/if} + {convertPrice price=$total_price|floatval} +

+
+ {/block} {block name='booking_form_num_avail'} {if $total_available_rooms <= $warning_count}
@@ -178,14 +180,16 @@ {/foreach} {/if}
-

- -

+ {block name='booking_form_book_now_button'} +

+ +

+ {/block} {/if}
diff --git a/themes/hotel-reservation-theme/_partials/order-room-detail.tpl b/themes/hotel-reservation-theme/_partials/order-room-detail.tpl index 111456f5c..380262cde 100644 --- a/themes/hotel-reservation-theme/_partials/order-room-detail.tpl +++ b/themes/hotel-reservation-theme/_partials/order-room-detail.tpl @@ -27,7 +27,7 @@
{/block} - {block name='order_room_detial_room_details'} + {block name='order_room_detial_room_detail'}
diff --git a/themes/hotel-reservation-theme/_partials/room_type_list.tpl b/themes/hotel-reservation-theme/_partials/room_type_list.tpl index dd9a47b7c..e3449a945 100644 --- a/themes/hotel-reservation-theme/_partials/room_type_list.tpl +++ b/themes/hotel-reservation-theme/_partials/room_type_list.tpl @@ -35,7 +35,7 @@
{/block} - {block name='room_type_list_room_details'} + {block name='room_type_list_room_detail'}
{block name='room_type_list_room_quantity'}
@@ -47,10 +47,12 @@ {/if}
{/block} -
{$room_v['description']|truncate:190:"":true} {l s='View More'}....
- {block name='room_type_list_room_features'} -
-
+ {block name='room_type_list_room_description'} +
{$room_v['description']|truncate:190:"":true} {l s='View More'}....
+ {/block} +
+
+ {block name='room_type_list_room_features'}
{if !empty($room_v['feature'])}

@@ -60,9 +62,13 @@

{/if}
+ {/block} + {block name='room_type_list_room_max_guests_mobile'} + {/block} + {block name='room_type_list_room_price'}
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict} @@ -81,12 +87,16 @@

{/if}
-
-
+ {/block} +
+
+ {block name='room_type_list_room_max_guests'}
{$room_v['max_guests']|escape:'htmlall':'UTF-8'} {l s='Max guests:'}
{$room_v['max_adults']|escape:'htmlall':'UTF-8'} {l s='Adults'}, {$room_v['max_children']|escape:'htmlall':'UTF-8'} {if $room_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}
-
+ {/block} +
+ {block name='room_type_list_room_booking_fields'}
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict} {if isset($occupancy_required_for_booking) && $occupancy_required_for_booking} @@ -99,15 +109,17 @@ {include file="./quantity_field.tpl" total_available_rooms=$room_v['room_left']}
{/if} - + {block name='room_type_list_room_book_now_button'} + + {/block} {/if}
-
+ {/block}
- {/block} +
{/block}
diff --git a/themes/hotel-reservation-theme/_partials/service-products-list-row.tpl b/themes/hotel-reservation-theme/_partials/service-products-list-row.tpl index b9fe1c6dc..5930c26c5 100644 --- a/themes/hotel-reservation-theme/_partials/service-products-list-row.tpl +++ b/themes/hotel-reservation-theme/_partials/service-products-list-row.tpl @@ -33,7 +33,7 @@
- {block name='service_products_list_row_details'} + {block name='service_products_list_row_detail'}
{$product['name']}
diff --git a/themes/hotel-reservation-theme/address.tpl b/themes/hotel-reservation-theme/address.tpl index cd66db704..18708e02a 100644 --- a/themes/hotel-reservation-theme/address.tpl +++ b/themes/hotel-reservation-theme/address.tpl @@ -24,24 +24,28 @@ *} {block name='address'} - {capture name=path} - - {l s='My account'} - - - {$navigationPipe} - - - {l s='Address'} - - {/capture} + {block name='address_heading'} + {capture name=path} + + {l s='My account'} + + + {$navigationPipe} + + + {l s='Address'} + + {/capture} {if isset($smarty.get.updated) && $smarty.get.updated}

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

{/if} + {/block}
-

{l s='Address'}

+ {block name='address_subheading'} +

{l s='Address'}

+ {/block}

{if isset($id_address) && (isset($smarty.post.alias) || isset($address->alias))} {l s='Modify address'} diff --git a/themes/hotel-reservation-theme/authentication.tpl b/themes/hotel-reservation-theme/authentication.tpl index ccc893730..932b106fe 100644 --- a/themes/hotel-reservation-theme/authentication.tpl +++ b/themes/hotel-reservation-theme/authentication.tpl @@ -415,7 +415,7 @@

- {block name='HOOK_CREATE_ACCOUNT_FORM'} + {block name='displayCustomerAccountForm'} {$HOOK_CREATE_ACCOUNT_FORM} {/block}
@@ -449,7 +449,7 @@ {/if}--> {block name='authentication_account_creation_form'}
- {block name='HOOK_CREATE_ACCOUNT_TOP'} + {block name='displayCustomerAccountFormTop'} {$HOOK_CREATE_ACCOUNT_TOP} {/block} {/if} - {block name='HOOK_CREATE_ACCOUNT_FORM'} + {block name='displayCustomerAccountForm'} {$HOOK_CREATE_ACCOUNT_FORM} {/block}
diff --git a/themes/hotel-reservation-theme/category.tpl b/themes/hotel-reservation-theme/category.tpl index 449ed90c5..3b294c471 100644 --- a/themes/hotel-reservation-theme/category.tpl +++ b/themes/hotel-reservation-theme/category.tpl @@ -26,7 +26,7 @@ {block name='category'}
- {block name='category_sort'} + {block name='category_sort_filters'}

{l s='Sort By:'}

@@ -37,11 +37,13 @@ {l s='Recommended'} - + {block name='category_sort_filters_list'} + + {/block}
diff --git a/themes/hotel-reservation-theme/footer.tpl b/themes/hotel-reservation-theme/footer.tpl index 713a9f576..b796413d7 100644 --- a/themes/hotel-reservation-theme/footer.tpl +++ b/themes/hotel-reservation-theme/footer.tpl @@ -33,7 +33,7 @@ {/block}
- {block name='HOOK_FOOTER'} + {block name='displayFooter'} {if isset($HOOK_FOOTER)} {block name='displayFooterBefore'} {hook h='displayFooterBefore'} diff --git a/themes/hotel-reservation-theme/header.tpl b/themes/hotel-reservation-theme/header.tpl index ab3a12de2..90a0f63a5 100644 --- a/themes/hotel-reservation-theme/header.tpl +++ b/themes/hotel-reservation-theme/header.tpl @@ -62,7 +62,7 @@ {/foreach} {/if} - {block name='HOOK_HEADER'} + {block name='displayHeader'} {$HOOK_HEADER} {/block} @@ -96,36 +96,40 @@
- + {/if} + {/block}
{/block} {if isset($blockcart_top) && $blockcart_top}
{/if} {counter name=active_overlay assign=active_overlay} - {block name='block_cart_layer_cart'} + {block name='blockcart_layer_cart'} {if !$PS_CATALOG_MODE && $active_overlay == 1}
@@ -295,116 +324,128 @@
-
-

- - - {l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['']} - + {block name='blockcart_layer_cart_detail'} +
+ {block name='blockcart_layer_cart_detail_heading'} +

+ + + {l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['']} + - - - {l s='1 item in your cart.' mod='blockcart'} - -

+ + + {l s='1 item in your cart.' mod='blockcart'} + +

+ {/block} -
- - {l s='Total Rooms Cost in cart' mod='blockcart'} - {if $display_tax_label} - {if $priceDisplay == 1} - {l s='(tax excl.)' mod='blockcart'} - {else} - {l s='(tax incl.)' mod='blockcart'} - {/if} - {/if} - - - {if $cart_qties > 0} - {convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_PRODUCTS)} - {/if} - -
- - + - + {block name='blockcart_layer_cart_detail_convenience_fee'} + {if isset($total_convenience_fee)} +
+ {l s='Convenience Fees' mod='blockcart'} + {convertPrice price=$total_convenience_fee} +
{/if} - -
--> - {if isset($total_convenience_fee)} -
- {l s='Convenience Fees' mod='blockcart'} - {convertPrice price=$total_convenience_fee} -
- {/if} - {if $show_tax && $use_tax} -
- {l s='Tax' mod='blockcart'} - {$tax_cost} -
- {/if} -
- - {l s='Total' mod='blockcart'} - {if $display_tax_label} - {if $priceDisplay == 1} - {l s='(tax excl.)' mod='blockcart'} - {else} - {l s='(tax incl.)' mod='blockcart'} - {/if} + {/block} + {block name='blockcart_layer_cart_detail_tax'} + {if $show_tax && $use_tax} +
+ {l s='Tax' mod='blockcart'} + {$tax_cost} +
{/if} -
- - {if $cart_qties > 0} - {if $priceDisplay == 1} - {convertPrice price=$cart->getOrderTotal(false)} - {else} - {convertPrice price=$cart->getOrderTotal(true)} - {/if} - {/if} - + {/block} + {block name='blockcart_layer_cart_detail_total'} +
+ + {l s='Total' mod='blockcart'} + {if $display_tax_label} + {if $priceDisplay == 1} + {l s='(tax excl.)' mod='blockcart'} + {else} + {l s='(tax incl.)' mod='blockcart'} + {/if} + {/if} + + + {if $cart_qties > 0} + {if $priceDisplay == 1} + {convertPrice price=$cart->getOrderTotal(false)} + {else} + {convertPrice price=$cart->getOrderTotal(true)} + {/if} + {/if} + +
+
+ + + {l s='Continue browsing' mod='blockcart'} + + + + + {l s='Proceed to checkout' mod='blockcart'} + + +
+ {/block}
-
- - - {l s='Continue browsing' mod='blockcart'} - - - - - {l s='Proceed to checkout' mod='blockcart'} - - -
- + {/block}
diff --git a/themes/hotel-reservation-theme/modules/blockuserinfo/nav.tpl b/themes/hotel-reservation-theme/modules/blockuserinfo/nav.tpl index 308e855ec..44ac059aa 100644 --- a/themes/hotel-reservation-theme/modules/blockuserinfo/nav.tpl +++ b/themes/hotel-reservation-theme/modules/blockuserinfo/nav.tpl @@ -17,30 +17,32 @@ * @license LICENSE.txt *} -{if !isset($ajaxCustomerLogin)} - + {/if} +{/block} \ No newline at end of file diff --git a/themes/hotel-reservation-theme/my-account.tpl b/themes/hotel-reservation-theme/my-account.tpl index 1241bdd42..7a32fc0f7 100644 --- a/themes/hotel-reservation-theme/my-account.tpl +++ b/themes/hotel-reservation-theme/my-account.tpl @@ -24,28 +24,34 @@ *} {block name='my_account'} - {capture name=path}{l s='My account'}{/capture} + {block name='my_account_heading'} + {capture name=path}{l s='My account'}{/capture} -

{l s='My account'}

+

{l s='My account'}

+ {/block} {if isset($account_created)}

{l s='Your account has been created.'}

{/if} -

{l s='Welcome to your account. Here you can manage all of your personal information and orders.'}

+ {block name='my_account_heading_info'} +

{l s='Welcome to your account. Here you can manage all of your personal information and orders.'}

+ {/block}
- + {block name='my_account_link_list'} + + {/block}
- {block name='HOOK_CUSTOMER_ACCOUNT'} + {block name='displayCustomerAccount'} {if $voucherAllowed || isset($HOOK_CUSTOMER_ACCOUNT) && $HOOK_CUSTOMER_ACCOUNT !=''}
@@ -226,117 +228,133 @@ {block name='room_type_info_tab_content'}
-
-
- {$product->description} -
-
- {if isset($room_type_info['adults']) && isset($room_type_info['children']) } -
-
- {l s='Max Capacity'} -
-
-

{$room_type_info['adults']} {l s='Adults'}, {$room_type_info['children']} {if $room_type_info['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if} ({l s='Max guests'}: {$room_type_info['max_guests']|escape:'htmlall':'UTF-8'})

+ {block name='room_type_info_room_tab_room_description'} +
+
+ {$product->description}
- {/if} - {if isset($id_hotel) && $id_hotel} -
-
- {l s='Check-in and check-out time'} -
-
-

{l s='Check-in: '}{$hotel_check_in|escape:'html':'UTF-8'}

-

{l s='Check-out: '}{$hotel_check_out|escape:'html':'UTF-8'}

-
-
- {/if} - {if isset($features) && $features} -
-
- {l s='Room Features'} -
-
- {foreach from=$features key=ftr_k item=ftr_v} -
-
- {$ftr_v.name|escape:'html':'UTF-8'} -
-
- {/foreach} -
-
- {/if} - {* Block for booking products *} - {if isset($id_hotel) && $id_hotel} - {if isset($hotel_features) && $hotel_features} + {/block} + {block name='room_type_info_tab_room_guests'} + {if isset($room_type_info['adults']) && isset($room_type_info['children']) }
- {l s='Hotel Features'} + {l s='Max Capacity'} +
+
+

{$room_type_info['adults']} {l s='Adults'}, {$room_type_info['children']} {if $room_type_info['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if} ({l s='Max guests'}: {$room_type_info['max_guests']|escape:'htmlall':'UTF-8'})

+
+
+ {/if} + {/block} + {block name='room_type_info_tab_room_timing'} + {if isset($id_hotel) && $id_hotel} +
+
+ {l s='Check-in and check-out time'} +
+
+

{l s='Check-in: '}{$hotel_check_in|escape:'html':'UTF-8'}

+

{l s='Check-out: '}{$hotel_check_out|escape:'html':'UTF-8'}

+
+
+ {/if} + {/block} + {block name='room_type_info_tab_room_features'} + {if isset($features) && $features} +
+
+ {l s='Room Features'}
- {foreach from=$hotel_features key=ftr_k item=ftr_v} -
o {$ftr_v|escape:'html':'UTF-8'}
+ {foreach from=$features key=ftr_k item=ftr_v} +
+
+ {$ftr_v.name|escape:'html':'UTF-8'} +
+
{/foreach}
{/if} - {if isset($hotel_description) && $hotel_description} -
-
- {l s='Hotel Description'} + {/block} + {* Block for booking products *} + {if isset($id_hotel) && $id_hotel} + {block name='room_type_info_tab_hotel_features'} + {if isset($hotel_features) && $hotel_features} +
+
+ {l s='Hotel Features'} +
+
+ {foreach from=$hotel_features key=ftr_k item=ftr_v} +
o {$ftr_v|escape:'html':'UTF-8'}
+ {/foreach} +
-
- {$hotel_description} + {/if} + {/block} + {block name='room_type_info_tab_hotel_description'} + {if isset($hotel_description) && $hotel_description} +
+
+ {l s='Hotel Description'} +
+
+ {$hotel_description} +
-
- {/if} + {/if} + {/block} {/if} - {if isset($hotel_has_images) && $hotel_has_images} -
-
-
- {l s='Hotel Images'} -
-
-
-
-
-
-
-
-
-
-
-
-
+ {block name='room_type_info_tab_hotel_images'} + {if isset($hotel_has_images) && $hotel_has_images} +
+
+
+ {l s='Hotel Images'} +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + {l s='SHOW MORE'} +
- - {l s='SHOW MORE'} -
-
- {/if} + {/if} + {/block} - {if isset($hotel_policies) && $hotel_policies} -
-
- {l s='Hotel Policies'} + {block name='room_type_info_tab_hotel_policies'} + {if isset($hotel_policies) && $hotel_policies} +
+
+ {l s='Hotel Policies'} +
+
+

{$hotel_policies}

+
-
-

{$hotel_policies}

-
-
- {/if} + {/if} + {/block}
{/block} @@ -386,7 +404,7 @@
{/if} {/block} - {block name='HOOK_PRODUCT_TAB_CONTENT'} + {block name='displayProductTabContent'} {if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}{$HOOK_PRODUCT_TAB_CONTENT}{/if} {/block}
@@ -444,7 +462,7 @@ {/if} {/block} {/if} - {block name='HOOK_EXTRA_RIGHT'} + {block name='displayRightColumnProduct'} {if isset($HOOK_EXTRA_RIGHT) && $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if} {/block}
@@ -599,7 +617,7 @@ {/if} - {block name='HOOK_PRODUCT_FOOTER'} + {block name='displayFooterProduct'} {if isset($HOOK_PRODUCT_FOOTER) && $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if} {/block} diff --git a/themes/hotel-reservation-theme/shopping-cart-advanced.tpl b/themes/hotel-reservation-theme/shopping-cart-advanced.tpl index 8e666875c..86efffbfc 100644 --- a/themes/hotel-reservation-theme/shopping-cart-advanced.tpl +++ b/themes/hotel-reservation-theme/shopping-cart-advanced.tpl @@ -32,7 +32,7 @@ {block name='displayBeforeShoppingCartBlock'} {hook h="displayBeforeShoppingCartBlock"} {/block} - {block name='shopping_cart_details'} + {block name='shopping_cart_detail'}
diff --git a/themes/hotel-reservation-theme/shopping-cart.tpl b/themes/hotel-reservation-theme/shopping-cart.tpl index bb6d7e30d..e097faf5c 100644 --- a/themes/hotel-reservation-theme/shopping-cart.tpl +++ b/themes/hotel-reservation-theme/shopping-cart.tpl @@ -81,140 +81,162 @@ {hook h="displayBeforeShoppingCartBlock"} {/block} - {block name='shopping_cart_details'} + {block name='shopping_cart_detail'}
{if isset($cart_htl_data) && $cart_htl_data} -

{l s='rooms information'}

+ {block name='shopping_cart_detail_heading'} +

{l s='rooms information'}

+ {/block} {foreach from=$cart_htl_data key=data_k item=data_v} {foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
-
-

- - - -

-

-  {l s='Remove'} -

- {block name='displayCartRoomImageAfter'} - {hook h='displayCartRoomImageAfter' id_product=$data_v['id_product']} - {/block} -
-
-
-
+ {block name='shopping_cart_detail_room_cover_image'} +
+

-

-
-

+

+ {block name='shopping_cart_detail_room_remove_button'} +

+  {l s='Remove'} +

+ {/block} + {block name='displayCartRoomImageAfter'} + {hook h='displayCartRoomImageAfter' id_product=$data_v['id_product']} + {/block} +
+ {/block} +
+
+ {block name='shopping_cart_detail_room_cover_image_mobile'} +
- {$data_v['name']} + - - {block name='displayCartRoomTypeNameAfter'} - {hook h='displayCartRoomTypeNameAfter' id_product=$data_v['id_product']} +
+ {/block} + {block name='shopping_cart_detail_room_detail'} +
+ {block name='shopping_cart_detail_room_name'} +

+ + {$data_v['name']} + + + {block name='displayCartRoomTypeNameAfter'} + {hook h='displayCartRoomTypeNameAfter' id_product=$data_v['id_product']} + {/block} +

{/block} -

- {if isset($data_v['hotel_info']['location'])} -

-  {$data_v['hotel_info']['location']} -

- {/if} - {block name='displayCartRoomTypeInfo'} - {hook h='displayCartRoomTypeInfo' id_product=$data_v['id_product']} - {/block} -
+ {block name='shopping_cart_detail_room_hotel_location'} + {if isset($data_v['hotel_info']['location'])} +

+  {$data_v['hotel_info']['location']} +

+ {/if} + {/block} + {block name='displayCartRoomTypeInfo'} + {hook h='displayCartRoomTypeInfo' id_product=$data_v['id_product']} + {/block} +
+ {/block}
- {if isset($data_v['hotel_info']['room_features'])} -
- {foreach $data_v['hotel_info']['room_features'] as $feature} - - {$feature['name']} - - {/foreach} -
- {/if} -
-
-

{l s='CHECK IN'}

-

{$rm_v['data_form']|date_format:"%d %b, %a"}

-
-
-

{l s='CHECK OUT'}

-

{$rm_v['data_to']|date_format:"%d %b, %a"}

-
-
-

{l s='OCCUPANCY'}

-

- {if {$rm_v['adults']} <= 9}0{$rm_v['adults']}{else}{$rm_v['adults']}{/if} {if $rm_v['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v['children']}, {if $rm_v['children'] <= 9}0{$rm_v['children']}{else}{$rm_v['children']}{/if} {if $rm_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}, {if {$rm_v['num_rm']} <= 9}0{/if}{$rm_v['num_rm']}{if $rm_v['num_rm'] > 1} {l s='Rooms'}{else} {l s='Room'}{/if} -

-
-
-
-
- {if $rm_v['amount'] && isset($rm_v['total_price_without_discount']) && $rm_v['total_price_without_discount'] > $rm_v['amount']} - - {displayPrice price=$rm_v['total_price_without_discount']|floatval} + {block name='shopping_cart_detail_room_features'} + {if isset($data_v['hotel_info']['room_features'])} +
+ {foreach $data_v['hotel_info']['room_features'] as $feature} + + {$feature['name']} - {/if} -
-
-
-

- - {displayPrice price=($rm_v['amount'])} - - {if (($rm_v['amount'] - $rm_v['amount_without_auto_add']) > 0) && (in_array($data_v['id_product'], $discounted_products) || $PS_ROOM_PRICE_AUTO_ADD_BREAKDOWN)} - - - -

- {/if} -

-

- {l s='Total rooms price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if} -

-
-
- {if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])} -
-
-

+ {/foreach} +

+ {/if} + {/block} + {block name='shopping_cart_detail_room_booking_duration'} +
+
+

{l s='CHECK IN'}

+

{$rm_v['data_form']|date_format:"%d %b, %a"}

+
+
+

{l s='CHECK OUT'}

+

{$rm_v['data_to']|date_format:"%d %b, %a"}

+
+
+

{l s='OCCUPANCY'}

+

+ {if {$rm_v['adults']} <= 9}0{$rm_v['adults']}{else}{$rm_v['adults']}{/if} {if $rm_v['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v['children']}, {if $rm_v['children'] <= 9}0{$rm_v['children']}{else}{$rm_v['children']}{/if} {if $rm_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}, {if {$rm_v['num_rm']} <= 9}0{/if}{$rm_v['num_rm']}{if $rm_v['num_rm'] > 1} {l s='Rooms'}{else} {l s='Room'}{/if} +

+
+
+ {/block} + {block name='shopping_cart_detail_room_price_detail'} +
+
+ {if $rm_v['amount'] && isset($rm_v['total_price_without_discount']) && $rm_v['total_price_without_discount'] > $rm_v['amount']} + + {displayPrice price=$rm_v['total_price_without_discount']|floatval} + + {/if} +
+
+
+

- {displayPrice price=$rm_v['demand_price']} + {displayPrice price=($rm_v['amount'])} + {if (($rm_v['amount'] - $rm_v['amount_without_auto_add']) > 0) && (in_array($data_v['id_product'], $discounted_products) || $PS_ROOM_PRICE_AUTO_ADD_BREAKDOWN)} + + + +

+ {/if}

- - {l s='Extra Services'} - + {l s='Total rooms price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}

- {/if} + {if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])} +
+
+

+ + {displayPrice price=$rm_v['demand_price']} + +

+

+ + {l s='Extra Services'} + +

+
+
+ {/if} +
+ {block name='shopping_cart_detail_room_total_price'} +
+
+

+ + {displayPrice price=($rm_v['amount']+$rm_v['demand_price'])} + +

+

+ {l s='Total price for'} {$rm_v['num_days']} {l s='Night(s) stay'}{if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.'}{/if} {l s='all taxes.)'}{/if} +

+
+
+ {/block}
-
-
-

- - {displayPrice price=($rm_v['amount']+$rm_v['demand_price'])} - -

-

- {l s='Total price for'} {$rm_v['num_days']} {l s='Night(s) stay'}{if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.'}{/if} {l s='all taxes.)'}{/if} -

-
-
-
+ {/block} {block name='displayCartProductContentAfter'} {hook h='displayCartProductContentAfter' cart_detail=$data_v key=$rm_k} {/block} @@ -413,7 +435,7 @@ {/if}
{/if} - {block name='HOOK_SHOPPING_CART'} + {block name='displayShoppingCartFooter'}
{$HOOK_SHOPPING_CART}
{/block} {*

@@ -428,7 +450,7 @@

*}
- {block name='HOOK_SHOPPING_CART_EXTRA'} + {block name='displayShoppingCart'}
{if isset($HOOK_SHOPPING_CART_EXTRA)}{$HOOK_SHOPPING_CART_EXTRA}{/if}
{/block}