From dc7a2dbf2a10d535f3f495d2d21e839c5a15ddb9 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 17 May 2022 18:41:44 +0530 Subject: [PATCH] Add check-in and check-out time on room type detail page --- controllers/front/ProductController.php | 2 ++ themes/hotel-reservation-theme/product.tpl | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index 2d85e00c0..c9a881d6f 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -367,6 +367,8 @@ class ProductControllerCore extends FrontController 'num_days' => $num_days, 'date_from' => $date_from, 'date_to' => $date_to, + 'hotel_check_in' => date('h:i a', strtotime($hotel_branch_obj->check_in)), + 'hotel_check_out' => date('h:i a', strtotime($hotel_branch_obj->check_out)), 'hotel_location' => $hotel_location, 'hotel_name' => $hotel_name, 'hotel_policies' => $hotel_policies, diff --git a/themes/hotel-reservation-theme/product.tpl b/themes/hotel-reservation-theme/product.tpl index c10f43ae4..ac7825817 100644 --- a/themes/hotel-reservation-theme/product.tpl +++ b/themes/hotel-reservation-theme/product.tpl @@ -203,6 +203,15 @@ {/if} +
+
+ {l s='Check-in and check-out time'} +
+
+

{l s='Check-in: '}{$hotel_check_in|escape:'html':'UTF-8'}

+

{l s='Check-out: '}{$hotel_check_out|escape:'html':'UTF-8'}

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