Fied: add default data

This commit is contained in:
amit sharma
2026-10-27 11:13:25 +05:30
parent e09269e1f4
commit 0c51fa79ff
2 changed files with 8 additions and 13 deletions

View File

@@ -2323,23 +2323,23 @@ class HotelHelper
return array(
'General Rooms' => array(
// Internet Access Free, Power Backup, Parking, NewsPaper In Lobby, Laundry Service, Gardens, Room Service, Welcome Drinks
'amenities' => array(10, 25, 48, 12, 24, 55, 38, 14),
'featured' => array(10, 25, 48, 12, 24, 55),
'amenities' => array(10, 25, 48, 12, 24, 55, 38, 14, 11),
'featured' => array(10, 25, 48, 12, 24, 55, 38, 14),
),
'Delux Rooms' => array(
// + Bar / Lounge
'amenities' => array(10, 25, 48, 38, 14, 24, 55, 99, 12),
'featured' => array(10, 25, 38, 14, 48, 24),
// + Bar / Lounge, Transfer Available
'amenities' => array(10, 25, 48, 38, 14, 24, 55, 99, 12, 11),
'featured' => array(10, 25, 38, 14, 48, 24, 55, 99),
),
'Executive Rooms' => array(
// + Health Club / Gym, Multi Cuisine Restaurant
'amenities' => array(10, 25, 48, 38, 14, 24, 12, 69, 99, 100),
'featured' => array(10, 38, 14, 69, 100, 48),
'featured' => array(10, 38, 14, 69, 100, 48, 25, 24),
),
'Luxury Rooms' => array(
// + Car Rental, Swimming Pool, Jacuzzi, Spa Services
'amenities' => array(10, 25, 48, 38, 14, 24, 40, 69, 93, 94, 87, 99, 100),
'featured' => array(10, 38, 93, 94, 87, 100),
'featured' => array(10, 38, 93, 94, 87, 100, 69, 99),
),
);
}

View File

@@ -51,7 +51,6 @@ class WkHotelRoom extends Module
$dateFrom = date('Y-m-d');
$dateTo = date('Y-m-d', strtotime($dateFrom) + 86400);
$useTax = HotelBookingDetail::useTax();
$maxAmenities = (int) Configuration::get('WK_MAX_AMENITIES_ROOM_SEARCH');
$maxFeatures = (int) Configuration::get('WK_MAX_FEATURES_ROOM_SEARCH');
$maxFeatureValues = (int) Configuration::get('WK_MAX_ROOM_TYPE_FEATURE_VALUES');
foreach ($hotelRoomDisplay as &$htlRoom) {
@@ -128,11 +127,7 @@ class WkHotelRoom extends Module
$roomFeature['value'] = implode(', ', array_slice($roomFeature['values'], 0, $maxFeatureValues ?: null));
}
unset($roomFeature);
$htlRoom['amenities'] = array_slice(
HotelRoomTypeAmenities::getAmenities($idProduct, $idLang, true),
0,
$maxAmenities ?: null
);
$htlRoom['amenities'] = HotelRoomTypeAmenities::getAmenities($idProduct, $idLang, true);
$htlRoom['feature_price'] = $featurePrice;
$htlRoom['feature_price_diff'] = (float)($priceWithoutReduction - $featurePrice);
}