From 33ae4b0728cf60e719e2335c42764536dfeb6a3d Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Fri, 17 May 2024 16:23:39 +0530 Subject: [PATCH 01/23] Added: Hotel rating with the hotel name in the room type page in the front --- controllers/front/ProductController.php | 1 + themes/hotel-reservation-theme/css/product.css | 5 +++++ themes/hotel-reservation-theme/product.tpl | 1 + 3 files changed, 7 insertions(+) diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index ec77ebd09..62ef16aca 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -413,6 +413,7 @@ class ProductControllerCore extends FrontController 'hotel_address1' => $addressInfo['address1'], 'hotel_phone' => $addressInfo['phone'], 'hotel_name' => $hotel_name, + 'hotel_rating' => $hotel_info_by_id['rating'], 'hotel_policies' => $hotel_policies, 'hotel_features' => $htl_features, 'hotel_image_link' => $hotelImageLink, diff --git a/themes/hotel-reservation-theme/css/product.css b/themes/hotel-reservation-theme/css/product.css index cd83c176b..36ce666ba 100644 --- a/themes/hotel-reservation-theme/css/product.css +++ b/themes/hotel-reservation-theme/css/product.css @@ -1718,3 +1718,8 @@ ul.service-product-nav > li:hover { #room_info_hotel_images .skeleton-loading-wrap .loading-container-box { height: 200px; } + #hotel_rating { + font-size: 16px; + display: inline-block; + color: #3e3d3d; + } \ No newline at end of file diff --git a/themes/hotel-reservation-theme/product.tpl b/themes/hotel-reservation-theme/product.tpl index 3a0b1b80f..2b02d90b2 100644 --- a/themes/hotel-reservation-theme/product.tpl +++ b/themes/hotel-reservation-theme/product.tpl @@ -71,6 +71,7 @@ {$product->name} {* Block for booking products *} {if isset($id_hotel) && $id_hotel} - {$hotel_name}{/if} + {if isset($hotel_rating) && $hotel_rating}{for $i=0; $i < $hotel_rating; $i++}{/for}{/if} {hook h='displayRoomTypeDetailRoomTypeNameBlock' id_product=$product->id} From ffff7e2d14d384d1896241729129287ab8d2753a Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 21 May 2024 14:59:05 +0530 Subject: [PATCH 02/23] Added : hook displayBackOfficeTopNotificaiton --- admin/themes/default/template/header.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/themes/default/template/header.tpl b/admin/themes/default/template/header.tpl index ca4803190..7f70613b4 100644 --- a/admin/themes/default/template/header.tpl +++ b/admin/themes/default/template/header.tpl @@ -210,6 +210,7 @@ {/if} + {hook h='displayBackOfficeTopNotificaiton'} {if count($quick_access) >= 0}