diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index cafe51955..85ad67267 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -269,6 +269,10 @@ class ProductControllerCore extends FrontController $htl_features = array(); $obj_hotel_room_type = new HotelRoomType(); $room_info_by_product_id = $obj_hotel_room_type->getRoomTypeInfoByIdProduct($this->product->id); + $productCapacity = array(); + $productCapacity['adult'] = $room_info_by_product_id['adult']; + $productCapacity['children'] = $room_info_by_product_id['children']; + $this->product->capacity = $productCapacity; $hotel_id = $room_info_by_product_id['id_hotel']; $useTax = HotelBookingDetail::useTax(); if (isset($hotel_id) && $hotel_id) { diff --git a/themes/hotel-reservation-theme/product.tpl b/themes/hotel-reservation-theme/product.tpl index 60feb80de..1c64b0614 100644 --- a/themes/hotel-reservation-theme/product.tpl +++ b/themes/hotel-reservation-theme/product.tpl @@ -193,6 +193,16 @@ {$product->description} + {if isset($product->capacity['adult']) && isset($product->capacity['children']) } +
+
+ {l s='Max Capacity'} +
+
+

{$product->capacity['adult']} {l s='Adults'}, {$product->capacity['children']} {l s='child'}

+
+
+ {/if} {if isset($features) && $features}