From f54a67258e38199ab3bbef73c929443c33bdfeef Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Thu, 9 May 2024 18:31:02 +0530 Subject: [PATCH] Fixed: The make booking button on the mobile screen when there is no hotel available --- modules/wkroomsearchblock/wkroomsearchblock.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/wkroomsearchblock/wkroomsearchblock.php b/modules/wkroomsearchblock/wkroomsearchblock.php index dc696e4af..f1b732122 100644 --- a/modules/wkroomsearchblock/wkroomsearchblock.php +++ b/modules/wkroomsearchblock/wkroomsearchblock.php @@ -116,7 +116,10 @@ class WkRoomSearchBlock extends Module // In the xs sceen the booking button on the landing page public function hookDisplayAfterHeaderHotelDesc() { - return $this->display(__FILE__, 'landingPageXsBtn.tpl'); + $objHotelInfo = new HotelBranchInformation(); + if ($objHotelInfo->hotelBranchesInfo(0, 1)) { + return $this->display(__FILE__, 'landingPageXsBtn.tpl'); + } } // search panel block on the category page on left block