diff --git a/controllers/front/CategoryController.php b/controllers/front/CategoryController.php index a9d2f635c..d98e78bbf 100644 --- a/controllers/front/CategoryController.php +++ b/controllers/front/CategoryController.php @@ -192,8 +192,9 @@ class CategoryControllerCore extends FrontController $amenities[] = $a_v; } } elseif ($key == 'features') { - foreach ($value as $idFeatureValue) { - $featureValues[] = (int) $idFeatureValue; + // one group of feature value ids per feature + foreach ($value as $idFeatureValues) { + $featureValues[] = array_map('intval', (array) $idFeatureValues); } } elseif ($key == 'price') { $price['from'] = $value[0]; diff --git a/img/rf/1.jpg b/img/rf/1.jpg deleted file mode 100644 index 722d4ec53..000000000 Binary files a/img/rf/1.jpg and /dev/null differ diff --git a/img/rf/10.jpg b/img/rf/10.jpg deleted file mode 100644 index d6f959d54..000000000 Binary files a/img/rf/10.jpg and /dev/null differ diff --git a/img/rf/11.jpg b/img/rf/11.jpg deleted file mode 100644 index cb60b74d2..000000000 Binary files a/img/rf/11.jpg and /dev/null differ diff --git a/img/rf/4.jpg b/img/rf/4.jpg deleted file mode 100644 index 45e63101b..000000000 Binary files a/img/rf/4.jpg and /dev/null differ diff --git a/img/rf/5.jpg b/img/rf/5.jpg deleted file mode 100644 index c0149e50c..000000000 Binary files a/img/rf/5.jpg and /dev/null differ diff --git a/img/rf/9.jpg b/img/rf/9.jpg deleted file mode 100644 index 0a49d24bf..000000000 Binary files a/img/rf/9.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/classes/HotelBookingDetail.php b/modules/hotelreservationsystem/classes/HotelBookingDetail.php index 9dba4a1f5..07b881afc 100644 --- a/modules/hotelreservationsystem/classes/HotelBookingDetail.php +++ b/modules/hotelreservationsystem/classes/HotelBookingDetail.php @@ -1832,6 +1832,9 @@ class HotelBookingDetail extends ObjectModel if (!$only_search_data) { if (!empty($bookingData)) { + $maxAmenities = (int) Configuration::get('WK_MAX_AMENITIES_ROOM_SEARCH'); + $maxFeatures = (int) Configuration::get('WK_MAX_FEATURES_ROOM_SEARCH'); + $maxFeatureValues = (int) Configuration::get('WK_MAX_FEATURE_VALUES_ROOM_SEARCH'); foreach ($bookingData['rm_data'] as $key => $value) { // featured amenities for display in room type list $featured_amenities = HotelRoomTypeAmenities::getAmenities( @@ -1839,7 +1842,7 @@ class HotelBookingDetail extends ObjectModel $context->language->id, true ); - if ($maxAmenities = (int) Configuration::get('WK_MAX_AMENITIES_ROOM_SEARCH')) { + if ($maxAmenities) { $featured_amenities = array_slice($featured_amenities, 0, $maxAmenities); } if (!empty($amenities) && $amenities) { @@ -1851,9 +1854,12 @@ class HotelBookingDetail extends ObjectModel } if (!empty($feature_values)) { $roomFeatureValueIds = array_map('intval', array_column(Product::getFeaturesStatic($value['id_product']), 'id_feature_value')); - if (!array_intersect($feature_values, $roomFeatureValueIds)) { - unset($bookingData['rm_data'][$key]); - continue; + // AND between features, OR between the values of one feature + foreach ($feature_values as $featureValueGroup) { + if (!array_intersect($featureValueGroup, $roomFeatureValueIds)) { + unset($bookingData['rm_data'][$key]); + continue 2; + } } } $productFeaturePrice = HotelRoomTypeFeaturePricing::getRoomTypeFeaturePricesPerDay($value['id_product'], $date_from, $date_to, self::useTax(), 0, 0, 0, 0, 1, 1, $bookingParams['occupancy']); @@ -1881,15 +1887,22 @@ class HotelBookingDetail extends ObjectModel if ($roomFeature['is_featured']) { if (!isset($featuredFeatures[$roomFeature['id_feature']])) { $featuredFeatures[$roomFeature['id_feature']] = $roomFeature; - } else { - $featuredFeatures[$roomFeature['id_feature']]['value'] .= ', '.$roomFeature['value']; + $featuredFeatures[$roomFeature['id_feature']]['values'] = array(); } + $featuredFeatures[$roomFeature['id_feature']]['values'][] = $roomFeature['value']; } } $featuredFeatures = array_values($featuredFeatures); - if ($maxFeatures = (int) Configuration::get('WK_MAX_FEATURES_ROOM_SEARCH')) { + if ($maxFeatures) { $featuredFeatures = array_slice($featuredFeatures, 0, $maxFeatures); } + foreach ($featuredFeatures as &$featuredFeature) { + if ($maxFeatureValues) { + $featuredFeature['values'] = array_slice($featuredFeature['values'], 0, $maxFeatureValues); + } + $featuredFeature['value'] = implode(', ', $featuredFeature['values']); + } + unset($featuredFeature); $bookingData['rm_data'][$key]['featured_features'] = $featuredFeatures; $bookingData['rm_data'][$key]['price'] = $prod_price; $bookingData['rm_data'][$key]['feature_price'] = $productFeaturePrice; diff --git a/modules/hotelreservationsystem/classes/HotelCartBookingData.php b/modules/hotelreservationsystem/classes/HotelCartBookingData.php index 146604f09..43b282ee2 100644 --- a/modules/hotelreservationsystem/classes/HotelCartBookingData.php +++ b/modules/hotelreservationsystem/classes/HotelCartBookingData.php @@ -1515,6 +1515,8 @@ class HotelCartBookingData extends ObjectModel $objCartBookingData = new HotelCartBookingData(); $objRoomTypeServiceProduct = new RoomTypeServiceProduct(); $objServiceProductCartDetail = new ServiceProductCartDetail(); + $maxFeatures = (int) Configuration::get('WK_MAX_FEATURES_ROOM_SEARCH'); + $maxFeatureValues = (int) Configuration::get('WK_MAX_ROOM_TYPE_FEATURE_VALUES'); foreach ($cartRoomTypes as $prodKey => $product) { if (Validate::isLoadedObject( @@ -1603,11 +1605,22 @@ class HotelCartBookingData extends ObjectModel // the values of a feature are shown together if (!isset($hotelInfo['room_features'][$roomFeature['id_feature']])) { $hotelInfo['room_features'][$roomFeature['id_feature']] = $roomFeature; - } else { - $hotelInfo['room_features'][$roomFeature['id_feature']]['value'] .= ', '.$roomFeature['value']; + $hotelInfo['room_features'][$roomFeature['id_feature']]['values'] = array(); } + $hotelInfo['room_features'][$roomFeature['id_feature']]['values'][] = $roomFeature['value']; } } + $hotelInfo['room_features'] = array_values($hotelInfo['room_features']); + if ($maxFeatures) { + $hotelInfo['room_features'] = array_slice($hotelInfo['room_features'], 0, $maxFeatures); + } + foreach ($hotelInfo['room_features'] as &$roomFeature) { + if ($maxFeatureValues) { + $roomFeature['values'] = array_slice($roomFeature['values'], 0, $maxFeatureValues); + } + $roomFeature['value'] = implode(', ', $roomFeature['values']); + } + unset($roomFeature); $cartHotelData[$prodKey]['hotel_info'] = $hotelInfo; } diff --git a/modules/hotelreservationsystem/classes/HotelHelper.php b/modules/hotelreservationsystem/classes/HotelHelper.php index 88e764229..b247b7dce 100644 --- a/modules/hotelreservationsystem/classes/HotelHelper.php +++ b/modules/hotelreservationsystem/classes/HotelHelper.php @@ -992,12 +992,10 @@ class HotelHelper 10 => 'icon-newspaper-o', 11 => 'icon-shopping-cart', 12 => 'icon-glass', - 13 => 'icon-music', 14 => 'icon-diamond', 16 => 'icon-music', 17 => 'icon-microphone', 18 => 'icon-film', - 19 => 'icon-moon-o', 21 => 'icon-plug', 22 => 'icon-credit-card', 23 => 'icon-money', @@ -1035,14 +1033,8 @@ class HotelHelper 73 => 'icon-leaf', 87 => 'icon-glass', 88 => 'icon-cutlery', - 89 => 'icon-cutlery', 90 => 'icon-coffee', 91 => 'icon-cutlery', - 93 => 'icon-cutlery', - 94 => 'icon-cutlery', - 95 => 'icon-coffee', - 96 => 'icon-beer', - 97 => 'icon-cutlery', 98 => 'icon-leaf', ); $imgDir = dirname(__FILE__).'/../views/img/hotel_amenities/'; @@ -1191,6 +1183,7 @@ class HotelHelper Configuration::updateValue('HTL_FEATURE_PRICING_PRIORITY', 'specific_date;special_day;date_range'); Configuration::updateValue('WK_MAX_AMENITIES_ROOM_SEARCH', 0); Configuration::updateValue('WK_MAX_FEATURES_ROOM_SEARCH', 0); + Configuration::updateValue('WK_MAX_ROOM_TYPE_FEATURE_VALUES', 0); Configuration::updateValue('WK_GOOGLE_ACTIVE_MAP', 0); Configuration::updateValue('WK_MAP_HOTEL_ACTIVE_ONLY', 1); @@ -1283,17 +1276,11 @@ class HotelHelper { return array( 'Bed Type' => 'icon-bed', - 'Extra Bed Available' => 'icon-plus-square', - 'Crib/Cot Available' => 'icon-child', 'Room Size' => 'icon-arrows-alt', 'View' => 'icon-eye', - 'Balcony Type' => 'icon-home', - 'Bathroom Type' => 'icon-tint', 'Heating Type' => 'icon-fire', 'TV Type' => 'icon-desktop', 'Wi-Fi Speed' => 'icon-wifi', - 'Smoke Detection' => 'icon-fire-extinguisher', - 'Smoking Policy' => 'icon-ban', ); } diff --git a/modules/hotelreservationsystem/controllers/admin/AdminHotelGeneralSettingsController.php b/modules/hotelreservationsystem/controllers/admin/AdminHotelGeneralSettingsController.php index e3d2851de..f978ca93e 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminHotelGeneralSettingsController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminHotelGeneralSettingsController.php @@ -166,16 +166,16 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController 'hint' => $this->l('Enable to display hotels list on the contact us page.'), ), 'WK_MAX_AMENITIES_ROOM_SEARCH' => array( - 'title' => $this->l('Maximum amenities in room search'), - 'hint' => $this->l('Maximum number of amenities to display for each room type on the front office room search page.'), - 'desc' => $this->l('Set to 0 to display all amenities.'), + 'title' => $this->l('Maximum featured amenities in room search'), + 'hint' => $this->l('Maximum number of featured amenities to display for each room type on the front office room search page.'), + 'desc' => $this->l('Set to 0 to display all featured amenities.'), 'type' => 'text', 'cast' => 'intval', 'class' => 'fixed-width-xl', 'default' => '0', ), 'WK_MAX_FEATURES_ROOM_SEARCH' => array( - 'title' => $this->l('Maximum features in room search'), + 'title' => $this->l('Maximum featured features in room search'), 'hint' => $this->l('Maximum number of featured features to display for each room type on the front office room search page.'), 'desc' => $this->l('Set to 0 to display all featured features.'), 'type' => 'text', @@ -183,6 +183,15 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController 'class' => 'fixed-width-xl', 'default' => '0', ), + 'WK_MAX_ROOM_TYPE_FEATURE_VALUES' => array( + 'title' => $this->l('Maximum room type feature values per featured feature'), + 'hint' => $this->l('Maximum number of room type feature values to display for each featured feature on the front office room search and order pages. For example, if the featured feature Bed Type has the values Single, Double and Queen and this is set to 2, only "Single, Double" is displayed.'), + 'desc' => $this->l('Set to 0 to display all values of each featured feature.'), + 'type' => 'text', + 'cast' => 'intval', + 'class' => 'fixed-width-xl', + 'default' => '0', + ), ), 'submit' => array('title' => $this->l('Save')), ), @@ -548,10 +557,13 @@ class AdminHotelGeneralSettingsController extends ModuleAdminController $this->errors[] = $this->l('Minimum partial payment percentage should not be more than 100.'); } if (!Validate::isUnsignedInt(Tools::getValue('WK_MAX_AMENITIES_ROOM_SEARCH'))) { - $this->errors[] = $this->l('Maximum amenities in room search is invalid. Enter 0 or a positive number.'); + $this->errors[] = $this->l('Maximum featured amenities in room search is invalid. Enter 0 or a positive number.'); } if (!Validate::isUnsignedInt(Tools::getValue('WK_MAX_FEATURES_ROOM_SEARCH'))) { - $this->errors[] = $this->l('Maximum features in room search is invalid. Enter 0 or a positive number.'); + $this->errors[] = $this->l('Maximum featured features in room search is invalid. Enter 0 or a positive number.'); + } + if (!Validate::isUnsignedInt(Tools::getValue('WK_MAX_ROOM_TYPE_FEATURE_VALUES'))) { + $this->errors[] = $this->l('Maximum room type feature values per featured feature is invalid. Enter 0 or a positive number.'); } if (Tools::getValue('WK_GOOGLE_ACTIVE_MAP')) { if (!Tools::getValue('PS_API_KEY')) { diff --git a/modules/hotelreservationsystem/hotelreservationsystem.php b/modules/hotelreservationsystem/hotelreservationsystem.php index a6bc93388..d7b613ef9 100644 --- a/modules/hotelreservationsystem/hotelreservationsystem.php +++ b/modules/hotelreservationsystem/hotelreservationsystem.php @@ -609,6 +609,7 @@ class HotelReservationSystem extends Module 'WK_DISPLAY_CONTACT_PAGE_HOTEL_LIST', 'WK_MAX_AMENITIES_ROOM_SEARCH', 'WK_MAX_FEATURES_ROOM_SEARCH', + 'WK_MAX_ROOM_TYPE_FEATURE_VALUES', 'QLO_HEADER_MEDIA_TYPE', 'QLO_HEADER_CONTENT_ALIGN', 'QLO_HEADER_VIDEO_SOURCE_TYPE', diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/1.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/1.jpg deleted file mode 100644 index a3ca11b20..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/1.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/10.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/10.jpg deleted file mode 100644 index 548af697d..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/10.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/11.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/11.jpg deleted file mode 100644 index 7b76b5c8e..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/11.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/12.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/12.jpg deleted file mode 100644 index 12b2e96fc..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/12.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/14.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/14.jpg deleted file mode 100644 index 1e627e70b..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/14.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/16.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/16.jpg deleted file mode 100644 index 3cf466634..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/16.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/17.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/17.jpg deleted file mode 100644 index 83caa28bc..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/17.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/18.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/18.jpg deleted file mode 100644 index 98ae378c3..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/18.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/2.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/2.jpg deleted file mode 100644 index 1b93c0b78..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/2.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/21.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/21.jpg deleted file mode 100644 index 00ce92b18..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/21.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/22.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/22.jpg deleted file mode 100644 index c575a9575..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/22.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/23.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/23.jpg deleted file mode 100644 index 7d8725672..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/23.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/25.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/25.jpg deleted file mode 100644 index 94d457477..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/25.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/26.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/26.jpg deleted file mode 100644 index 948a7f2c3..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/26.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/27.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/27.jpg deleted file mode 100644 index ab81b6aa4..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/27.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/29.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/29.jpg deleted file mode 100644 index 2a51ba4c3..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/29.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/3.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/3.jpg deleted file mode 100644 index 81b917dc3..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/3.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/30.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/30.jpg deleted file mode 100644 index 5b2be3134..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/30.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/32.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/32.jpg deleted file mode 100644 index c12ccfa1d..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/32.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/33.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/33.jpg deleted file mode 100644 index 41079f334..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/33.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/34.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/34.jpg deleted file mode 100644 index c3f3b8c61..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/34.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/35.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/35.jpg deleted file mode 100644 index 79e4974df..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/35.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/37.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/37.jpg deleted file mode 100644 index 485db1b53..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/37.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/38.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/38.jpg deleted file mode 100644 index 1e0308503..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/38.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/39.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/39.jpg deleted file mode 100644 index cae4f9409..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/39.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/4.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/4.jpg deleted file mode 100644 index a609dbc90..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/4.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/41.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/41.jpg deleted file mode 100644 index 1a46bc56f..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/41.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/42.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/42.jpg deleted file mode 100644 index b8a3981ee..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/42.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/45.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/45.jpg deleted file mode 100644 index cb60b74d2..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/45.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/46.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/46.jpg deleted file mode 100644 index 616f13c29..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/46.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/47.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/47.jpg deleted file mode 100644 index 76c45c4c6..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/47.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/48.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/48.jpg deleted file mode 100644 index c8b6c160b..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/48.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/49.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/49.jpg deleted file mode 100644 index 09df629ca..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/49.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/5.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/5.jpg deleted file mode 100644 index e7126905f..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/5.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/50.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/50.jpg deleted file mode 100644 index ba9f839e7..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/50.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/53.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/53.jpg deleted file mode 100644 index 9f7c7a6c6..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/53.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/55.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/55.jpg deleted file mode 100644 index 6e28c9627..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/55.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/56.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/56.jpg deleted file mode 100644 index ec18d3d44..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/56.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/57.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/57.jpg deleted file mode 100644 index b8a3981ee..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/57.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/58.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/58.jpg deleted file mode 100644 index 080603f14..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/58.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/59.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/59.jpg deleted file mode 100644 index 25b3c49c1..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/59.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/6.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/6.jpg deleted file mode 100644 index b108df6ee..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/6.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/60.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/60.jpg deleted file mode 100644 index 06009d4c9..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/60.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/64.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/64.jpg deleted file mode 100644 index 249211644..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/64.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/7.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/7.jpg deleted file mode 100644 index 1951723ba..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/7.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/70.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/70.jpg deleted file mode 100644 index b49af88d2..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/70.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/72.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/72.jpg deleted file mode 100644 index 561c29fed..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/72.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/73.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/73.jpg deleted file mode 100644 index 01dc8c214..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/73.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/8.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/8.jpg deleted file mode 100644 index 7747b2a7e..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/8.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/87.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/87.jpg deleted file mode 100644 index d0a005131..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/87.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/88.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/88.jpg deleted file mode 100644 index a8014f8bb..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/88.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/9.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/9.jpg deleted file mode 100644 index f3b1cc74c..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/9.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/90.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/90.jpg deleted file mode 100644 index 7fd04e01d..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/90.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/91.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/91.jpg deleted file mode 100644 index 63ab0172d..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/91.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/98.jpg b/modules/hotelreservationsystem/views/img/hotel_amenities/_default/98.jpg deleted file mode 100644 index d403392e0..000000000 Binary files a/modules/hotelreservationsystem/views/img/hotel_amenities/_default/98.jpg and /dev/null differ diff --git a/modules/hotelreservationsystem/views/templates/admin/hotel_amenities/helpers/view/view.tpl b/modules/hotelreservationsystem/views/templates/admin/hotel_amenities/helpers/view/view.tpl index 0cf8fe1a2..2f2db5340 100644 --- a/modules/hotelreservationsystem/views/templates/admin/hotel_amenities/helpers/view/view.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/hotel_amenities/helpers/view/view.tpl @@ -68,7 +68,7 @@ {if $amenity.logo_type == 'icon' && $amenity.logo} - + {elseif $amenity.logo_type == 'image' && $amenity.logo} {$amenity.name|escape:'htmlall':'UTF-8'} {foreach $feature.values as $featureValue}
- + {$featureValue.value|escape:'html':'UTF-8'}
{/foreach} diff --git a/modules/wkhotelfilterblock/wkhotelfilterblock.php b/modules/wkhotelfilterblock/wkhotelfilterblock.php index 95c2b8507..689fe40f5 100644 --- a/modules/wkhotelfilterblock/wkhotelfilterblock.php +++ b/modules/wkhotelfilterblock/wkhotelfilterblock.php @@ -185,6 +185,11 @@ class wkhotelfilterblock extends Module public function postProcess() { if (Tools::isSubmit('btnConfigSubmit')) { + if (Tools::getValue('SHOW_FEATURES_FILTER') && !array_filter((array) Tools::getValue('FEATURES_FILTER_BOX', array()))) { + $this->html .= $this->displayError($this->l('Please select at least one feature to show in the Features filter.')); + + return; + } Configuration::updateValue( 'SHOW_AMENITIES_FILTER', Tools::getValue('SHOW_AMENITIES_FILTER') diff --git a/themes/hotel-reservation-theme/css/category.css b/themes/hotel-reservation-theme/css/category.css index 0c50aa621..d0ea2e9e3 100644 --- a/themes/hotel-reservation-theme/css/category.css +++ b/themes/hotel-reservation-theme/css/category.css @@ -153,6 +153,7 @@ p.capa_txt { .rm_amen { + color: #555555; width: 18px; display: inline-block; margin-right: 10px; @@ -165,6 +166,7 @@ p.capa_txt { { display: inline-block; margin: 0 10px 10px 0; + color: #555; } .room_featured_feature i{ @@ -275,7 +277,6 @@ p.capa_txt { left: unset; } .room_features_cont > div { - min-height: 47px; display: flex; flex-wrap: wrap; align-items: center; diff --git a/themes/hotel-reservation-theme/css/order-opc.css b/themes/hotel-reservation-theme/css/order-opc.css index 902192190..f3f8fb381 100644 --- a/themes/hotel-reservation-theme/css/order-opc.css +++ b/themes/hotel-reservation-theme/css/order-opc.css @@ -200,16 +200,38 @@ margin-bottom: 5px; } .order-detail-content span.room-type-feature { - white-space: nowrap; - line-height: 35px; - margin-right: 5px; - font-size: 14px; + display: inline-block; + max-width: 100%; + line-height: 24px; + background-color: #eee; + border-radius: 10px 10px 10px 11px; + margin: 0 10px 10px 0; + padding: 0px 8px 0px 0px; + font-size: 12px; color: #555555; } +.room-type-feature i, +.room-type-feature img { + display: inline-flex; + align-items: center; + justify-content: center; + width: 24px; + height: 24px; + box-sizing: border-box; + border: 1px solid #000000; + border-radius: 50%; + background-color: #ffffff; + color: #000000; + vertical-align: middle; + margin-right: 5px; +} .room-type-feature i { - font-size: 16px; + font-size: 12px; color: #555555; } +.room-type-feature img { + padding: 3px; +} .order-detail-content .room_duration_block_head { font-size: 12px; color: #777777; diff --git a/themes/hotel-reservation-theme/css/product.css b/themes/hotel-reservation-theme/css/product.css index 3e12eb465..ae9d789e8 100644 --- a/themes/hotel-reservation-theme/css/product.css +++ b/themes/hotel-reservation-theme/css/product.css @@ -1450,6 +1450,13 @@ Quick View Styles max-height: 20px; max-width: 20px; } + +/* font icons use the same color as the amenity/feature jpg images */ +.featured_amenities .featured_amenity i, +.info_margin_div .col-sm-4 > i, +.room_info_heading i { + color: #555555; +} /* end */ /* service popup design */ diff --git a/themes/hotel-reservation-theme/shopping-cart-detail.tpl b/themes/hotel-reservation-theme/shopping-cart-detail.tpl index 5d8831f39..ef6c6e4ae 100644 --- a/themes/hotel-reservation-theme/shopping-cart-detail.tpl +++ b/themes/hotel-reservation-theme/shopping-cart-detail.tpl @@ -88,7 +88,7 @@ {else} {/if} - {$feature['value']|escape:'html':'UTF-8'}{if !$feature@last}  |{/if} + {$feature['value']|escape:'html':'UTF-8'} {/foreach}