Skip to content

Commit f6fabaf

Browse files
Keep Room type and Hotel features
1 parent c5c5f15 commit f6fabaf

File tree

8 files changed

+7
-34
lines changed

8 files changed

+7
-34
lines changed

controllers/admin/AdminStatsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,8 +1686,8 @@ public static function getDirectRevenueRatio($dateFrom, $dateTo, $idHotel = null
16861686
WHERE o.`valid` = 1 AND hbi.`active` = 1 AND hbd.`is_refunded` = 0
16871687
AND o.`invoice_date` BETWEEN "'.pSQL($dateFrom).' 00:00:00" AND "'.pSQL($dateTo).' 23:59:59"
16881688
AND o.`source` = "'.pSQL(Configuration::get('PS_SHOP_DOMAIN')).'"'.
1689-
(!is_null($idHotel) ? HotelBranchInformation::addHotelRestriction($idHotel, 'hbd') : '').
1690-
'GROUP BY o.`id_order`
1689+
(!is_null($idHotel) ? HotelBranchInformation::addHotelRestriction($idHotel, 'hbd') : '').'
1690+
GROUP BY o.`id_order`
16911691
) AS t';
16921692
$directRevenue = (float) Db::getInstance()->getValue($sql);
16931693

modules/hotelreservationsystem/hotelreservationsystem.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,16 +598,15 @@ public function install()
598598
|| !$this->registerModuleHooks()
599599
|| !$this->callInstallTab()
600600
|| !$objHtlHelper->insertDefaultHotelEntries()
601+
|| !$objHtlHelper->createHotelRoomDefaultFeatures()
602+
|| !$objHtlHelper->insertHotelCommonFeatures()
601603
) {
602604
return false;
603605
}
604606

605607
// if module should be populated while installation
606608
if (isset($this->populateData) && $this->populateData) {
607-
if (!$objHtlHelper->createHotelRoomDefaultFeatures()
608-
|| !$objHtlHelper->insertHotelCommonFeatures()
609-
|| !$objHtlHelper->createDummyDataForProject()
610-
) {
609+
if (!$objHtlHelper->createDummyDataForProject()) {
611610
return false;
612611
}
613612
}

modules/wkhotelfeaturesblock/classes/WkHotelFeaturesData.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ public function cleanPositions()
138138
// enter the default demo data of the module
139139
public function insertModuleDemoData()
140140
{
141-
Configuration::updateValue('HOTEL_AMENITIES_BLOCK_NAV_LINK', 1);
142-
143141
$languages = Language::getLanguages(false);
144142
$HOTEL_AMENITIES_HEADING = array();
145143
$HOTEL_AMENITIES_DESCRIPTION = array();

modules/wkhotelfeaturesblock/controllers/admin/AdminFeaturesModuleSettingController.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ public function __construct()
4242
'title' => $this->l('Hotel Amenity Setting'),
4343
'icon' => 'icon-cogs',
4444
'fields' => array(
45-
'HOTEL_AMENITIES_BLOCK_NAV_LINK' => array(
46-
'title' => $this->l('Show link at navigation'),
47-
'hint' => $this->l('Enable, if you want to display a link at navigation menu for the amenities block at home page.'),
48-
'validation' => 'isBool',
49-
'cast' => 'intval',
50-
'type' => 'bool',
51-
'required' => true
52-
),
5345
'HOTEL_AMENITIES_HEADING' => array(
5446
'title' => $this->l('Amenity Block Title'),
5547
'type' => 'textLang',

modules/wkhotelroom/classes/WkHotelRoomDisplay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function insertModuleDemoData()
148148
$HOTEL_ROOM_DISPLAY_HEADING[$lang['id_lang']] = 'Our Rooms';
149149
$HOTEL_ROOM_DISPLAY_DESCRIPTION[$lang['id_lang']] = 'Families travelling with kids will find Amboseli national park a safari destination matched to no other, with less tourist traffic, breathtaking open space.';
150150
}
151-
Configuration::updateValue('HOTEL_ROOM_BLOCK_NAV_LINK', 1);
151+
152152
// update global configuration values in multilang
153153
Configuration::updateValue('HOTEL_ROOM_DISPLAY_HEADING', $HOTEL_ROOM_DISPLAY_HEADING);
154154
Configuration::updateValue('HOTEL_ROOM_DISPLAY_DESCRIPTION', $HOTEL_ROOM_DISPLAY_DESCRIPTION);

modules/wkhotelroom/controllers/admin/AdminHotelRoomModuleSettingController.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ public function __construct()
3434
'title' => $this->l('Hotel Room Display Setting'),
3535
'icon' => 'icon-cogs',
3636
'fields' => array(
37-
'HOTEL_ROOM_BLOCK_NAV_LINK' => array(
38-
'title' => $this->l('Show link at navigation'),
39-
'hint' => $this->l('Enable, if you want to display a link at navigation menu for the hotel rooms block at home page.'),
40-
'validation' => 'isBool',
41-
'cast' => 'intval',
42-
'type' => 'bool',
43-
'required' => true
44-
),
4537
'HOTEL_ROOM_DISPLAY_HEADING' => array(
4638
'title' => $this->l('Hotel Room Block Title'),
4739
'type' => 'textLang',

modules/wktestimonialblock/classes/WkHotelTestimonialData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function insertModuleDemoData()
144144
$HOTEL_TESIMONIAL_BLOCK_HEADING[$lang['id_lang']] = 'What our guests say?';
145145
$HOTEL_TESIMONIAL_BLOCK_CONTENT[$lang['id_lang']] = 'Fap put a bird on it next level, sustainable disrupt polaroid flannel Helvetica Kickstarter quinoa bicycle rights narwhal wolf Fap put a bird on it next level.';
146146
}
147-
Configuration::updateValue('HOTEL_TESIMONIAL_BLOCK_NAV_LINK', 1);
147+
148148
// update global configuration values in multilang
149149
Configuration::updateValue('HOTEL_TESIMONIAL_BLOCK_HEADING', $HOTEL_TESIMONIAL_BLOCK_HEADING);
150150
Configuration::updateValue('HOTEL_TESIMONIAL_BLOCK_CONTENT', $HOTEL_TESIMONIAL_BLOCK_CONTENT);

modules/wktestimonialblock/controllers/admin/AdminTestimonialsModuleSettingController.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ public function __construct()
3636
'modulesetting' => array(
3737
'title' => $this->l('Hotel Testimonials Setting'),
3838
'fields' => array(
39-
'HOTEL_TESIMONIAL_BLOCK_NAV_LINK' => array(
40-
'title' => $this->l('Show link at navigation'),
41-
'hint' => $this->l('Enable, if you want to display a link at navigation menu for the testimonial block at home page.'),
42-
'validation' => 'isBool',
43-
'cast' => 'intval',
44-
'type' => 'bool',
45-
'required' => true
46-
),
4739
'HOTEL_TESIMONIAL_BLOCK_HEADING' => array(
4840
'title' => $this->l('Testimonial block title'),
4941
'type' => 'textLang',

0 commit comments

Comments
 (0)