From a94da11026810564b9f563c2eec8bda562fa6da5 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Wed, 31 Jul 2024 19:14:56 +0530 Subject: [PATCH 1/2] Added: Hotel description in room type pagetype page in front office --- controllers/front/ProductController.php | 1 + themes/hotel-reservation-theme/product.tpl | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index 0e205f560..08a4d3b68 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -416,6 +416,7 @@ class ProductControllerCore extends FrontController 'hotel_phone' => $addressInfo['phone'], 'hotel_name' => $hotel_name, 'hotel_rating' => $hotel_info_by_id['rating'], + 'hotel_description' => $hotel_info_by_id['description'], 'hotel_policies' => $hotel_policies, 'hotel_features' => $htl_features, 'hotel_image_link' => $hotelImageLink, diff --git a/themes/hotel-reservation-theme/product.tpl b/themes/hotel-reservation-theme/product.tpl index 83df1ae52..4107ebe99 100644 --- a/themes/hotel-reservation-theme/product.tpl +++ b/themes/hotel-reservation-theme/product.tpl @@ -252,6 +252,16 @@ {/if} + {if isset($hotel_description) && $hotel_description} +
+
+ {l s='Hotel Description'} +
+
+

{$hotel_description}

+
+
+ {/if} {/if} {if isset($hotel_has_images) && $hotel_has_images}
From 78f60a26f12ee3cd75ba7f2a58495e96ab09b837 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Mon, 5 Aug 2024 20:36:19 +0530 Subject: [PATCH 2/2] updated code changes --- themes/hotel-reservation-theme/product.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/hotel-reservation-theme/product.tpl b/themes/hotel-reservation-theme/product.tpl index 4107ebe99..8654a3211 100644 --- a/themes/hotel-reservation-theme/product.tpl +++ b/themes/hotel-reservation-theme/product.tpl @@ -258,7 +258,7 @@ {l s='Hotel Description'}
-

{$hotel_description}

+ {$hotel_description}
{/if}