diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index 1028ae6e0..b8ea4e35b 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -413,6 +413,7 @@ public function initContent() '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}