Added: Hotel rating with the hotel name in the room type page in the front

This commit is contained in:
vishalsingh.qlo325
2024-05-17 16:23:39 +05:30
parent fb5d0a32b8
commit 33ae4b0728
3 changed files with 7 additions and 0 deletions

View File

@@ -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,

View File

@@ -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;
}

View File

@@ -71,6 +71,7 @@
<span>{$product->name}
{* Block for booking products *}
{if isset($id_hotel) && $id_hotel}&nbsp;-&nbsp;{$hotel_name}{/if}
{if isset($hotel_rating) && $hotel_rating}<span id="hotel_rating">{for $i=0; $i < $hotel_rating; $i++}<i class="icon-star"></i>{/for}</span>{/if}
</span>
{hook h='displayRoomTypeDetailRoomTypeNameBlock' id_product=$product->id}
</div>