Fixed: The make booking button on the mobile screen when there is no hotel available

This commit is contained in:
vishalsingh.qlo325
2024-05-09 18:31:02 +05:30
parent 0be773cc48
commit f54a67258e

View File

@@ -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