diff --git a/controllers/front/GuestTrackingController.php b/controllers/front/GuestTrackingController.php index 09cf53960..8e2d049ea 100644 --- a/controllers/front/GuestTrackingController.php +++ b/controllers/front/GuestTrackingController.php @@ -151,7 +151,7 @@ class GuestTrackingControllerCore extends FrontController 'additionalServices' => $additionalServices, )); } - $response['extra_demands'] = $this->context->smarty->fetch(_PS_THEME_DIR_.'_partials/order_booking_demands.tpl'); + $response['extra_demands'] = $this->context->smarty->fetch(_PS_THEME_DIR_.'_partials/order-extra-services.tpl'); } $this->ajaxDie(json_encode($response)); diff --git a/controllers/front/OrderDetailController.php b/controllers/front/OrderDetailController.php index 87cb08df4..47b744804 100644 --- a/controllers/front/OrderDetailController.php +++ b/controllers/front/OrderDetailController.php @@ -525,7 +525,7 @@ class OrderDetailControllerCore extends FrontController 'objOrder' => new Order($idOrder) ) ); - $response['extra_demands'] = $this->context->smarty->fetch(_PS_THEME_DIR_.'_partials/order_booking_demands.tpl'); + $response['extra_demands'] = $this->context->smarty->fetch(_PS_THEME_DIR_.'_partials/order-extra-services.tpl'); } $this->ajaxDie(json_encode($response)); @@ -747,7 +747,7 @@ class OrderDetailControllerCore extends FrontController $message = CustomerMessage::getMessagesByOrderId($order->id, false)[0]; $this->context->smarty->assign(array('message' => $message)); - $response['message_html'] = $this->context->smarty->fetch(_PS_THEME_DIR_.'_partials/booking-message.tpl'); + $response['message_html'] = $this->context->smarty->fetch(_PS_THEME_DIR_.'_partials/order-message.tpl'); } else { $this->errors[] = Tools::displayError('Order not found'); } diff --git a/modules/hotelreservationsystem/hotelreservationsystem.php b/modules/hotelreservationsystem/hotelreservationsystem.php index bf6473245..6c6159494 100644 --- a/modules/hotelreservationsystem/hotelreservationsystem.php +++ b/modules/hotelreservationsystem/hotelreservationsystem.php @@ -490,8 +490,28 @@ class HotelReservationSystem extends Module } } + // public function hookDisplayOrderDetailTopLeft($params) { return 'hookDisplayOrderDetailTopLeft'; } + // public function hookDisplayOrderDetailHotelDetailsAfter($params) { return 'hookDisplayOrderDetailHotelDetailsAfter'; } + // public function hookDisplayOrderDetailRoomDetailsBefore($params) { return 'hookDisplayOrderDetailRoomDetailsBefore'; } + // public function hookDisplayOrderDetailPoliciesTab($params) { return 'hookDisplayOrderDetailPoliciesTab'; } + // public function hookDisplayOrderDetailPoliciesTabContent($params) { return 'hookDisplayOrderDetailPoliciesTabContent'; } + // public function hookDisplayOrderDetailBottomLeft($params) { return 'hookDisplayOrderDetailBottomLeft'; } + // public function hookDisplayOrderDetailTopRight($params) { return 'hookDisplayOrderDetailTopRight'; } + // public function hookDisplayOrderDetailBottomRight($params) { return 'hookDisplayOrderDetailBottomRight'; } + public function hookDisplayBackOfficeHeader() { + // $this->registerHook(array( + // 'displayOrderDetailTopLeft', + // 'displayOrderDetailHotelDetailsAfter', + // 'displayOrderDetailRoomDetailsBefore', + // 'displayOrderDetailPoliciesTab', + // 'displayOrderDetailPoliciesTabContent', + // 'displayOrderDetailBottomLeft', + // 'displayOrderDetailTopRight', + // 'displayOrderDetailBottomRight', + // )); + // ddd(1); $this->context->controller->addCSS($this->_path.'views/css/admin/css/hotel_admin_tab_logo.css'); } diff --git a/modules/qlohotelreview/views/css/front/review.css b/modules/qlohotelreview/views/css/front/review.css index 6cd027b09..f613cfa7d 100644 --- a/modules/qlohotelreview/views/css/front/review.css +++ b/modules/qlohotelreview/views/css/front/review.css @@ -36,28 +36,17 @@ } #add-review-popup .card-body { - padding: 15px; + padding: 18px 15px; } #add-review-popup .form-group { - margin-bottom: 20px; + margin-bottom: 30px; } #add-review-popup label { font-size: 14px; font-weight: normal; - margin-bottom: 6px; -} - -#add-review-popup .form-control { - padding: 18px 10px; - font-size: 14px; - line-height: 18px; - border-radius: 4px; -} - -#add-review-popup .form-control.description { - padding: 10px 10px; + margin-bottom: 14px; } #add-review-popup .review-error { diff --git a/modules/qlohotelreview/views/templates/hook/add-review-popup.tpl b/modules/qlohotelreview/views/templates/hook/add-review-popup.tpl index f916172a5..54b9efb86 100644 --- a/modules/qlohotelreview/views/templates/hook/add-review-popup.tpl +++ b/modules/qlohotelreview/views/templates/hook/add-review-popup.tpl @@ -70,9 +70,9 @@
- +

@@ -80,7 +80,7 @@ - +

diff --git a/themes/hotel-reservation-theme/_partials/booking-room-detail.tpl b/themes/hotel-reservation-theme/_partials/booking-room-detail.tpl deleted file mode 100644 index fe15d7876..000000000 --- a/themes/hotel-reservation-theme/_partials/booking-room-detail.tpl +++ /dev/null @@ -1,132 +0,0 @@ -{* -* 2010-2024 Webkul. -* -* NOTICE OF LICENSE -* -* All right is reserved, -* Please go through LICENSE.txt file inside our module -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade this module to newer -* versions in the future. If you wish to customize this module for your -* needs please refer to CustomizationPolicy.txt file inside our module for more information. -* -* @author Webkul IN -* @copyright 2010-2024 Webkul IN -* @license LICENSE.txt -*} - -
-
-
- - - -
-
-
- -
-
-
-
-
{l s='Check-in'}
-
{$rm_v.data_form|date_format:'D'}, {dateFormat date=$rm_v.data_form}
-
{l s='Check-out'}
-
{$rm_v.data_to|date_format:'D'}, {dateFormat date=$rm_v.data_to}
-
- -
-
{l s='Guests'}
-
- {$rm_v.adults|string_format:'%02d'} {if $rm_v.adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v.children}, {$rm_v.children|string_format:'%02d'} {if $rm_v.children > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if} -
-
{l s='Rooms'}
-
{$rm_v.num_rm|string_format:'%02d'}
-
- -
-
{l s='Extra Services'}
-
- {if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services} - - {/if} - {if $group_use_tax} - {displayWtPriceWithCurrency price=($rm_v.extra_demands_price_ti + $rm_v.additional_services_price_ti) currency=$currency} - {else} - {displayWtPriceWithCurrency price=($rm_v.extra_demands_price_te + $rm_v.additional_services_price_te) currency=$currency} - {/if} - {if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services} - - {/if} -
-
{l s='Total'}
-
- {if $group_use_tax} - {displayWtPriceWithCurrency price=($rm_v.amount_tax_incl + $rm_v.extra_demands_price_ti + $rm_v.additional_services_price_ti + $rm_v.additional_services_price_auto_add_ti) currency=$currency} - {else} - {displayWtPriceWithCurrency price=($rm_v.amount_tax_excl + $rm_v.extra_demands_price_te + $rm_v.additional_services_price_te + $rm_v.additional_services_price_auto_add_te) currency=$currency} - {/if} - {if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services} - - - - - {/if} -
-
-
-
-
-
-
-
- - {if $rm_v['count_refunded'] > 0} -
- - {if $rm_v['count_refunded'] > 1} - {$rm_v['count_refunded']} {l s='Rooms Refunded'} - {else} - {$rm_v['count_refunded']} {l s='Room Refunded'} - {/if} - -
- {/if} -
diff --git a/themes/hotel-reservation-theme/_partials/order_booking_demands.tpl b/themes/hotel-reservation-theme/_partials/order-extra-services.tpl similarity index 100% rename from themes/hotel-reservation-theme/_partials/order_booking_demands.tpl rename to themes/hotel-reservation-theme/_partials/order-extra-services.tpl diff --git a/themes/hotel-reservation-theme/_partials/booking-message.tpl b/themes/hotel-reservation-theme/_partials/order-message.tpl similarity index 100% rename from themes/hotel-reservation-theme/_partials/booking-message.tpl rename to themes/hotel-reservation-theme/_partials/order-message.tpl diff --git a/themes/hotel-reservation-theme/_partials/order-room-detail.tpl b/themes/hotel-reservation-theme/_partials/order-room-detail.tpl new file mode 100644 index 000000000..78f4a1eb8 --- /dev/null +++ b/themes/hotel-reservation-theme/_partials/order-room-detail.tpl @@ -0,0 +1,156 @@ +{* +* 2010-2024 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through LICENSE.txt file inside our module +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to CustomizationPolicy.txt file inside our module for more information. +* +* @author Webkul IN +* @copyright 2010-2024 Webkul IN +* @license LICENSE.txt +*} + +
+
+
+ + + +
+
+
+ +
+
+
+
+
+
+
{l s='Check-in'}
+
{$rm_v.data_form|date_format:'D'}, {dateFormat date=$rm_v.data_form}
+
+
+
+
+
{l s='Check-out'}
+
{$rm_v.data_to|date_format:'D'}, {dateFormat date=$rm_v.data_to}
+
+
+
+ +
+
+
+
{l s='Rooms'}
+
{$rm_v.num_rm|string_format:'%02d'}
+
+
+
+
+
{l s='Guests'}
+
+ {$rm_v.adults|string_format:'%02d'} {if $rm_v.adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v.children}, {$rm_v.children|string_format:'%02d'} {if $rm_v.children > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if} +
+
+
+
+ +
+ +
+
+
{l s='Total Price'}
+
+ {if $group_use_tax} + {displayWtPriceWithCurrency price=($rm_v.amount_tax_incl + $rm_v.extra_demands_price_ti + $rm_v.additional_services_price_ti + $rm_v.additional_services_price_auto_add_ti) currency=$currency} + {else} + {displayWtPriceWithCurrency price=($rm_v.amount_tax_excl + $rm_v.extra_demands_price_te + $rm_v.additional_services_price_te + $rm_v.additional_services_price_auto_add_te) currency=$currency} + {/if} + {if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services} + + + + + {/if} +
+
+
+
+
+
+
+
+
+
+ + {if $rm_v['count_refunded'] > 0} +
+ + {if $rm_v['count_refunded'] > 1} + {$rm_v['count_refunded']} {l s='Rooms Refunded'} + {else} + {$rm_v['count_refunded']} {l s='Room Refunded'} + {/if} + +
+ {/if} +
diff --git a/themes/hotel-reservation-theme/css/order-detail.css b/themes/hotel-reservation-theme/css/order-detail.css index 0414f5e5b..21dd62e40 100644 --- a/themes/hotel-reservation-theme/css/order-detail.css +++ b/themes/hotel-reservation-theme/css/order-detail.css @@ -123,7 +123,7 @@ } .card.card-tabs .nav-tabs li > a { - padding: 0 20px; + padding: 0 18px; border: none; color: #333; } @@ -156,6 +156,10 @@ margin: 7px 0; } +.description-list dd a { + color: #333; +} + .description-list dd .hotel-email { word-wrap: break-word; } @@ -168,6 +172,35 @@ margin-top: 0; } +.payment-details .table-summary td:first-child { + font-weight: bold; +} + +.payment-details .table-summary .payment-method .icon-pdf { + width: 24px; + height: 24px; + background-image: url('../img/icon/pdf.png'); +} + +.payment-details .table-summary .payment-method a { + color: #333; + font-weight: bold; + position: relative; + top: -6px; +} + +.payment-details .table-summary .payment-method span { + text-decoration: underline; +} + +.payment-details .table-summary .status { + font-size: 12px; +} + +.payment-details .table-summary .status span { + line-height: 16px; +} + .hotel-location p.hotel-address { font-size: 16px; line-height: 24px; @@ -208,6 +241,11 @@ align-items: center; } +.room-details .card-header .booking-actions-wrap .col-xs-12 { + display: flex; + flex-wrap: wrap; +} + .room-details .card-body { padding: 0; } @@ -221,6 +259,24 @@ border-bottom: 1px solid #E5E5E5; } +@media (max-width: 576px) { + .room-details .card-header { + flex-direction: column; + align-items: flex-start; + } + + .room-details .card-header .booking-actions-wrap { + margin-top: 10px; + margin-left: -10px; + } +} + +@media (min-width: 768px) and (max-width: 1200px) { + .room-details .card-header .booking-actions-wrap .col-xs-12 { + flex-wrap: nowrap; + } +} + .booking-room-detail .description-list dt { font-weight: 400; } @@ -264,14 +320,8 @@ color: #167BFF; } -@media (min-width: 992px) and (max-width: 1199px) { - .booking-room-detail .info-wrap { - margin-top: 10px; - } - - .booking-room-detail .info-wrap .description-list { - margin-top: 10px; - } +.hotel-policies .card-header { + padding: 14px 0; } .hotel-policies .refund-policies-list .refund-policy:not(:last-of-type) { @@ -297,7 +347,7 @@ } .order-messages .message.management { - padding: 20px 0 20px 20px; + padding: 20px; border-left: 1px solid #333; background-color: rgba(229, 229, 229, 0.30); } @@ -317,55 +367,6 @@ margin-bottom: 10px; } -.add-order-message .dropdown { - width: 350px; -} - -.add-order-message .dropdown button { - min-width: 350px; - padding: 12px 15px; - text-align: left; - font-size: 16px; - color: #000a; - border: 1px solid #E5E5E5; - border-radius: 4px; -} - -.add-order-message .dropdown button::after { - content: '\2304'; - position: absolute; - top: -2px; - right: 10px; - font-size: 28px; - font-weight: 100; - color: #333; -} - -.add-order-message .dropdown .dropdown-menu { - width: 100%; - left: 0; - right: unset; - border-radius: 4px; -} - -.add-order-message .dropdown .dropdown-menu > li > a { - padding-top: 10px; - padding-bottom: 10px; - font-size: 16px; -} - -.add-order-message form .form-group.textarea { - margin-bottom: 20px; -} - -.add-order-message form textarea { - padding: 10px; - font-size: 14px; - border-radius: 4px; - border: 1px solid #E5E5E5; - background: #FFF; -} - .add-order-message form #submitMessage { padding: 6px 20px; } @@ -774,6 +775,10 @@ word-break: break-all; } +.guest-details .table-summary.table-sm td:nth-child(2) { + font-weight: bold; +} + #create-new-refund-popup .card.cancel-booking .card-footer { display: flex; justify-content: space-between; @@ -787,6 +792,7 @@ #create-new-refund-popup .tab-content { margin-top: 0; + border-left: 1px solid #E5E5E5; } /* nav-tabs resets - start */ @@ -798,16 +804,15 @@ #create-new-refund-popup .nav-tabs > li { margin: 0; + z-index: 1; } /* nav-tabs resets - end */ /* nav-tabs custom - start */ #create-new-refund-popup .nav-tabs > li > a { - border-right: 1px solid #E5E5E5; color: #333; -} - -#create-new-refund-popup .nav-tabs > li:not(:last-of-type) > a { + padding: 10px 18px; + margin-right: -1px; border-bottom: 1px solid #E5E5E5; } @@ -893,6 +898,7 @@ #create-new-refund-popup .room-details .extra-services-wrap { margin-top: 4px; padding-left: 23px; + font-size: 10px; } #create-new-refund-popup .room-details .extra-services-wrap > div:not(:first-of-type) { @@ -932,16 +938,6 @@ color: #FF4B4B; } -#create-new-refund-popup .card.cancel-booking-preview .form-group textarea { - border: 1px solid #E5E5E5; - border-radius: 4px; - color: #333; -} - -#create-new-refund-popup .card.cancel-booking-preview .form-group textarea:focus { - box-shadow: none; -} - #create-new-refund-popup .card.cancel-booking-preview .errors .alert-danger { padding: 8px 15px; background-color: #FF4B4B1A; @@ -981,7 +977,7 @@ .fancybox-order-detail.feedback h4 { margin-top: 16px; - font-size: 16px; + font-size: 14px; line-height: 24px; } @@ -1017,17 +1013,22 @@ #popup-view-extra-services .tab-content { margin-top: 0; - padding: 0 15px 15px; + padding-bottom: 15px; +} + +#popup-view-extra-services .tab-content .rooms_extra_demands_head { + padding: 10px 18px; + border-bottom: 1px solid #F0F0F0; } #popup-view-extra-services .tab-content .rooms_extra_demands_text { - padding: 10px 0px; - border-bottom: 1px solid #F0F0F0; font-size: 12px; + margin-bottom: 0; } -#popup-view-extra-services .tab-content .room_demands:not(:last-of-type) { - margin-bottom: 20px; +#popup-view-extra-services .tab-content .room_demands { + padding: 0 18px; + margin-top: 20px; } #popup-view-extra-services .tab-content .demand_header { @@ -1048,7 +1049,7 @@ } #popup-view-extra-services .tab-content .room_demand_block:not(:last-of-type) { - margin-bottom: 6px; + margin-bottom: 12px; } /* Guest Tracking page styles - start */ diff --git a/themes/hotel-reservation-theme/img/icon/pdf.png b/themes/hotel-reservation-theme/img/icon/pdf.png new file mode 100644 index 000000000..94e3da9b7 Binary files /dev/null and b/themes/hotel-reservation-theme/img/icon/pdf.png differ diff --git a/themes/hotel-reservation-theme/order-detail.tpl b/themes/hotel-reservation-theme/order-detail.tpl index 7c44e88a9..4570c0176 100644 --- a/themes/hotel-reservation-theme/order-detail.tpl +++ b/themes/hotel-reservation-theme/order-detail.tpl @@ -61,6 +61,8 @@
+ {hook h='displayOrderDetailTopLeft' id_order=$order->id} +
{l s='Hotel Details'} @@ -77,41 +79,56 @@ {if $hotel_address_info.phone_mobile}{$hotel_address_info.phone_mobile}{else}{$hotel_address_info.phone}{/if} -
- -
{l s='Email'}
-
{l s='Payment Method'}
-
- {$order->payment|escape:'html':'UTF-8'} - {if $invoice && $invoiceAllowed} - - {l s='Invoice'} - - {/if} -
-
- -
-
{l s='Booking Status'}
-
- - {if $order_history[0].id_order_state|in_array:$overbooking_order_states} - {l s='Order Not Confirmed'} - {else} - {$order_history[0].ostate_name|escape:'html':'UTF-8'} - {/if} - -
+ {hook h='displayOrderDetailHotelDetailsAfter' id_order=$order->id}
+ + @@ -380,7 +400,7 @@
{foreach from=$messages item=message} - {include file='./_partials/booking-message.tpl'} + {include file='./_partials/order-message.tpl'} {/foreach}
@@ -404,20 +424,14 @@
- - - +

@@ -433,8 +447,51 @@ {/if} + + {hook h='displayOrderDetailBottomLeft' id_order=$order->id}

+ {hook h='displayOrderDetailTopRight' id_order=$order->id} + + +
+ + {hook h='displayOrderDetailBottomRight' id_order=$order->id} @@ -657,11 +716,11 @@

{$data_v.name}

{l s='Total Rooms'}

- {$rm_v.num_rm|string_format:'%02d'} + {$rm_v.num_rm|string_format:'%02d'}

{l s='Cancelled Rooms'}

- {($rm_v.count_cancelled + $rm_v.count_refunded)|string_format:'%02d'} + {($rm_v.count_cancelled + $rm_v.count_refunded)|string_format:'%02d'}
@@ -709,7 +768,7 @@
{else}
-

{l s='No extra services added for this room.'}

+

{l s='No extra services added for this room.'}

{/if}