added minor occupancy changes

This commit is contained in:
Shreesh Arora
2023-01-18 14:59:41 +05:30
parent a53821d250
commit 87a5cc7517
25 changed files with 268 additions and 81 deletions

View File

@@ -439,6 +439,11 @@ class FrontControllerCore extends Controller
if (Configuration::get('PS_FRONT_SEARCH_TYPE') == HotelBookingDetail::SEARCH_TYPE_OWS) {
$occupancyWiseSearch = true;
}
$bookingTypeOccupancy = false;
if (Configuration::get('PS_FRONT_ROOM_BOOKING_TYPE') == HotelBookingDetail::ROOM_BOOKING_OCCUPANCY_WISE) {
$bookingTypeOccupancy = true;
}
$this->context->smarty->assign(array(
// Useful for layout.tpl
'mobile_device' => $this->context->getMobileDevice(),
@@ -487,7 +492,7 @@ class FrontControllerCore extends Controller
'currencyFormat' => $currency->format, // backward compat
'currencyBlank' => $currency->blank, // backward compat
'occupancy_wise_search' => $occupancyWiseSearch,
'occupancy_required_for_booking' => Configuration::get('PS_FRONT_OCCUPANCY_REQUIRED_FOR_BOOKING'),
'occupancy_required_for_booking' => $bookingTypeOccupancy,
'max_child_age' => Configuration::get('WK_GLOBAL_CHILD_MAX_AGE'),
'max_child_in_room' => Configuration::get('WK_GLOBAL_MAX_CHILD_IN_ROOM'),
));