From e22c3c1a1d4beb910f4283fc86684515c9f4cc80 Mon Sep 17 00:00:00 2001 From: shreesh arora Date: Tue, 24 Nov 2020 13:59:07 +0530 Subject: [PATCH 01/45] fix new room issue for employee --- controllers/admin/AdminProductsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index ec291c59e..1743dee63 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -80,9 +80,9 @@ class AdminProductsControllerCore extends AdminController // START send access query information to the admin controller $this->access_select = ' SELECT a.`id_product` FROM '._DB_PREFIX_.'product a'; - $this->access_join = ' INNER JOIN '._DB_PREFIX_.'htl_room_type hrt ON (hrt.id_product = a.id_product)'; + $this->access_join = ' LEFT JOIN '._DB_PREFIX_.'htl_room_type hrt ON (hrt.id_product = a.id_product)'; if ($acsHtls = HotelBranchInformation::getProfileAccessedHotels($this->context->employee->id_profile, 1, 1)) { - $this->access_where = ' WHERE hrt.id_hotel IN ('.implode(',', $acsHtls).')'; + $this->access_where = ' WHERE (hrt.id_hotel IN ('.implode(',', $acsHtls).') OR hrt.id_hotel IS NULL)'; } parent::__construct(); From 2a0f611ca03d0cd19e90194edd027191149105c2 Mon Sep 17 00:00:00 2001 From: shreesh arora Date: Fri, 8 Jan 2021 23:31:00 +0530 Subject: [PATCH 02/45] update maintenence text --- themes/hotel-reservation-theme/maintenance.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/hotel-reservation-theme/maintenance.tpl b/themes/hotel-reservation-theme/maintenance.tpl index a526943a2..a1a3a02e7 100644 --- a/themes/hotel-reservation-theme/maintenance.tpl +++ b/themes/hotel-reservation-theme/maintenance.tpl @@ -46,7 +46,7 @@ {$HOOK_MAINTENANCE}

{l s='We\'ll be back soon.'}

- {l s='We are currently updating our shop and will be back really soon.'} + {l s='We are currently updating our site and will be back really soon.'}
{l s='Thanks for your patience.'}
From 975a2894e4616ecd9c48a84b1a95573c7e1e1dca Mon Sep 17 00:00:00 2001 From: shreesh arora Date: Tue, 12 Jan 2021 11:25:31 +0530 Subject: [PATCH 03/45] removed multishop option --- controllers/admin/AdminPreferencesController.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/controllers/admin/AdminPreferencesController.php b/controllers/admin/AdminPreferencesController.php index 61f3bf8c3..0f37e884e 100644 --- a/controllers/admin/AdminPreferencesController.php +++ b/controllers/admin/AdminPreferencesController.php @@ -199,14 +199,14 @@ class AdminPreferencesControllerCore extends AdminController 'cast' => 'intval', 'type' => 'bool' ), - 'PS_MULTISHOP_FEATURE_ACTIVE' => array( - 'title' => $this->l('Enable Multistore'), - 'desc' => $this->l('The multistore feature allows you to manage several e-shops with one Back Office. If this feature is enabled, a "Multistore" page will be available in the "Advanced Parameters" menu.'), - 'validation' => 'isBool', - 'cast' => 'intval', - 'type' => 'bool', - 'visibility' => Shop::CONTEXT_ALL - ), + // 'PS_MULTISHOP_FEATURE_ACTIVE' => array( + // 'title' => $this->l('Enable Multistore'), + // 'desc' => $this->l('The multistore feature allows you to manage several e-shops with one Back Office. If this feature is enabled, a "Multistore" page will be available in the "Advanced Parameters" menu.'), + // 'validation' => 'isBool', + // 'cast' => 'intval', + // 'type' => 'bool', + // 'visibility' => Shop::CONTEXT_ALL + // ), 'PS_SHOP_ACTIVITY' => array( 'title' => $this->l('Main Shop Activity'), 'validation' => 'isInt', From c30df0c3b293b9c238e2e328e2fa80004cf6cd07 Mon Sep 17 00:00:00 2001 From: shreesh arora Date: Tue, 12 Jan 2021 11:34:08 +0530 Subject: [PATCH 04/45] removed unused options. --- .../admin/AdminPreferencesController.php | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/controllers/admin/AdminPreferencesController.php b/controllers/admin/AdminPreferencesController.php index 61f3bf8c3..3ef34aa3a 100644 --- a/controllers/admin/AdminPreferencesController.php +++ b/controllers/admin/AdminPreferencesController.php @@ -185,20 +185,20 @@ class AdminPreferencesControllerCore extends AdminController 'type' => 'text', 'class' => 'fixed-width-xxl' ), - 'PS_DISPLAY_SUPPLIERS' => array( - 'title' => $this->l('Display suppliers and manufacturers'), - 'desc' => $this->l('Enable suppliers and manufacturers pages on your front office even when their respective modules are disabled.'), - 'validation' => 'isBool', - 'cast' => 'intval', - 'type' => 'bool' - ), - 'PS_DISPLAY_BEST_SELLERS' => array( - 'title' => $this->l('Display best sellers'), - 'desc' => $this->l('Enable best sellers page on your front office even when its respective module is disabled.'), - 'validation' => 'isBool', - 'cast' => 'intval', - 'type' => 'bool' - ), + // 'PS_DISPLAY_SUPPLIERS' => array( + // 'title' => $this->l('Display suppliers and manufacturers'), + // 'desc' => $this->l('Enable suppliers and manufacturers pages on your front office even when their respective modules are disabled.'), + // 'validation' => 'isBool', + // 'cast' => 'intval', + // 'type' => 'bool' + // ), + // 'PS_DISPLAY_BEST_SELLERS' => array( + // 'title' => $this->l('Display best sellers'), + // 'desc' => $this->l('Enable best sellers page on your front office even when its respective module is disabled.'), + // 'validation' => 'isBool', + // 'cast' => 'intval', + // 'type' => 'bool' + // ), 'PS_MULTISHOP_FEATURE_ACTIVE' => array( 'title' => $this->l('Enable Multistore'), 'desc' => $this->l('The multistore feature allows you to manage several e-shops with one Back Office. If this feature is enabled, a "Multistore" page will be available in the "Advanced Parameters" menu.'), @@ -207,14 +207,14 @@ class AdminPreferencesControllerCore extends AdminController 'type' => 'bool', 'visibility' => Shop::CONTEXT_ALL ), - 'PS_SHOP_ACTIVITY' => array( - 'title' => $this->l('Main Shop Activity'), - 'validation' => 'isInt', - 'cast' => 'intval', - 'type' => 'select', - 'list' => $activities2, - 'identifier' => 'value' - ), + // 'PS_SHOP_ACTIVITY' => array( + // 'title' => $this->l('Main Shop Activity'), + // 'validation' => 'isInt', + // 'cast' => 'intval', + // 'type' => 'select', + // 'list' => $activities2, + // 'identifier' => 'value' + // ), )); // No HTTPS activation if you haven't already. From df4fe0568bf0153ed2c38ab2167f781c2a3fc906 Mon Sep 17 00:00:00 2001 From: shreesh arora Date: Wed, 13 Jan 2021 00:05:37 +0530 Subject: [PATCH 05/45] updated helper birthday field --- admin/themes/default/template/helpers/form/form.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/themes/default/template/helpers/form/form.tpl b/admin/themes/default/template/helpers/form/form.tpl index 5c554b47b..478f365db 100644 --- a/admin/themes/default/template/helpers/form/form.tpl +++ b/admin/themes/default/template/helpers/form/form.tpl @@ -698,7 +698,7 @@
{foreach $input.options as $key => $select}
- {if $key == 'months'} {* From aef371118ff17e6364d4be040692159a6460f955 Mon Sep 17 00:00:00 2001 From: shreesh arora Date: Wed, 13 Jan 2021 00:26:50 +0530 Subject: [PATCH 06/45] validation text change in features module --- .../AdminFeaturesModuleSettingController.php | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/modules/wkhotelfeaturesblock/controllers/admin/AdminFeaturesModuleSettingController.php b/modules/wkhotelfeaturesblock/controllers/admin/AdminFeaturesModuleSettingController.php index 5880d9e22..2859145dd 100644 --- a/modules/wkhotelfeaturesblock/controllers/admin/AdminFeaturesModuleSettingController.php +++ b/modules/wkhotelfeaturesblock/controllers/admin/AdminFeaturesModuleSettingController.php @@ -246,26 +246,26 @@ class AdminFeaturesModuleSettingController extends ModuleAdminController $defaultLangId = Configuration::get('PS_LANG_DEFAULT'); $objDefaultLanguage = Language::getLanguage((int) $defaultLangId); $languages = Language::getLanguages(false); - if (!trim(Tools::getValue('feature_description_'.$defaultLangId))) { - $this->errors[] = $this->l('feature description is required at least in '). - $objDefaultLanguage['name']; - } else { - foreach ($languages as $lang) { - if (trim(Tools::getValue('feature_description_'.$lang['id_lang']))) { - if (!Validate::isGenericName(Tools::getValue('feature_description_'.$lang['id_lang']))) { - $this->errors[] = $this->l('Invalid feature description in ').$lang['name']; - } - } - } - } if (!trim(Tools::getValue('feature_title_'.$defaultLangId))) { - $this->errors[] = $this->l('feature title is required at least in '). + $this->errors[] = $this->l('Amenity title is required at least in '). $objDefaultLanguage['name']; } else { foreach ($languages as $lang) { if (trim(Tools::getValue('feature_title_'.$lang['id_lang']))) { if (!Validate::isGenericName(Tools::getValue('feature_title_'.$lang['id_lang']))) { - $this->errors[] = $this->l('Invalid feature title in ').$lang['name']; + $this->errors[] = $this->l('Invalid amenity title in ').$lang['name']; + } + } + } + } + if (!trim(Tools::getValue('feature_description_'.$defaultLangId))) { + $this->errors[] = $this->l('Amenity description is required at least in '). + $objDefaultLanguage['name']; + } else { + foreach ($languages as $lang) { + if (trim(Tools::getValue('feature_description_'.$lang['id_lang']))) { + if (!Validate::isGenericName(Tools::getValue('feature_description_'.$lang['id_lang']))) { + $this->errors[] = $this->l('Invalid amenity description in ').$lang['name']; } } } From 07474dde0301688a1bdd6d42c41100b6e2c4c30d Mon Sep 17 00:00:00 2001 From: shreesh arora Date: Wed, 13 Jan 2021 09:20:13 +0530 Subject: [PATCH 07/45] added hotel column in room type feature pricing list --- .../admin/AdminHotelFeaturePricesSettings.php | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/modules/hotelreservationsystem/controllers/admin/AdminHotelFeaturePricesSettings.php b/modules/hotelreservationsystem/controllers/admin/AdminHotelFeaturePricesSettings.php index 8e49c3a62..24c94a068 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminHotelFeaturePricesSettings.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminHotelFeaturePricesSettings.php @@ -39,8 +39,10 @@ class AdminHotelFeaturePricesSettingsController extends ModuleAdminController $this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = a.`id_product` AND pl.`id_lang`='.(int) $this->context->language->id.')'; $this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'htl_room_type_feature_pricing_lang` fpl ON (a.id_feature_price = fpl.id_feature_price AND fpl.`id_lang` = '.(int) $this->context->language->id.')'; + $this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'htl_room_type` hrt ON (hrt.`id_product` = a.`id_product`)'; + $this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'htl_branch_info_lang` hbl ON (hbl.`id` = hrt.`id_hotel` AND hbl.`id_lang`='.(int) $this->context->language->id.')'; - $this->_select .= ' fpl.`feature_price_name` as ftr_price_name, CONCAT(pl.`name`, " (#", a.`id_product`, ")") as product_name, IF(a.impact_type=1 , CONCAT(round(a.impact_value, 2), " ", "%"), a.impact_value) AS impact_value'; + $this->_select .= ' fpl.`feature_price_name` as ftr_price_name, CONCAT(pl.`name`, " (#", a.`id_product`, ")") as product_name, hbl.`hotel_name`, IF(a.impact_type=1 , CONCAT(round(a.impact_value, 2), " ", "%"), a.impact_value) AS impact_value'; $this->_select .= ' ,IF(a.impact_type=1 , \''.$this->l('Percentage').'\', \''.$this->l('Fixed Amount').'\') AS impact_type'; $this->_select .= ' ,IF(a.impact_way=1 , \''.$this->l('Decrease').'\', \''.$this->l('Increase').'\') @@ -57,17 +59,21 @@ class AdminHotelFeaturePricesSettingsController extends ModuleAdminController 'title' => $this->l('ID'), 'align' => 'center', ), - 'product_name' => array( - 'title' => $this->l('Room'), - 'align' => 'center', - 'havingFilter' => true, - 'callback' => 'getRoomTypeLink', - ), 'ftr_price_name' => array( 'title' => $this->l('Feature Name'), 'align' => 'center', 'havingFilter' => true, ), + 'product_name' => array( + 'title' => $this->l('Room Type'), + 'align' => 'center', + 'havingFilter' => true, + 'callback' => 'getRoomTypeLink', + ), + 'hotel_name' => array( + 'title' => $this->l('Hotel'), + 'align' => 'center', + ), 'impact_way' => array( 'title' => $this->l('Impact Way'), 'align' => 'center', From 5fb10daa8da9bc0b91fba3db465d03aedbbd332e Mon Sep 17 00:00:00 2001 From: sumit panwar Date: Sat, 16 Jan 2021 17:14:35 +0530 Subject: [PATCH 08/45] license file name changed from LICENSES to LICENSE --- LICENSES => LICENSE | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename LICENSES => LICENSE (100%) diff --git a/LICENSES b/LICENSE similarity index 100% rename from LICENSES rename to LICENSE From b66dcec036bae28740d004d890d1976802ed0b1a Mon Sep 17 00:00:00 2001 From: sumit panwar Date: Sat, 16 Jan 2021 17:18:11 +0530 Subject: [PATCH 09/45] Readme file improvements with more information and links --- README.md | 111 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 74 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 659ca2b3e..fca645fc1 100644 --- a/README.md +++ b/README.md @@ -1,54 +1,91 @@ -QloApps --------- -Hotel Commerce plays a vital role in hotel industry as it has changed the online presence of the hotels.QloApps also known as Qlo is a Hotel Commerce Software or you can say a Hotel Booking & Reservation System. Qlo is an open source and free platform which help you to launch your own hotel booking website and manage your online & On-Desk booking easily +
+ QloApps +
+

+ QloApps - An open source and free platform to launch your own hotel booking website +

+
+ +

+ Download + Documentation + Forum + Addons + Contact us + License +

+ +## Topics +1. [Introduction](#introduction) +2. [Requirements](#requirements) +3. [Installation & Configuration](#installation-and-configuration) +4. [License](#license) +5. [Security Vulnerabilities](#security-vulnerabilities) +6. [Documentation & Demo](#documentation--demo) +7. [Contribute](#contribute) +8. [Credits](#credits) -Demo --------- -FrontEnd : http://demo.qloapps.com
-Backend : http://demo.qloapps.com/adminhtl/index.php
-username : demo@demo.com
-Password : demodemo
+### Introduction +QloApps also known as Qlo is an **Open-source and Free hotel reservation system** and booking engine.
+With the help of QloApps, you can launch your hotel booking website without any cost and take & manage online bookings . You can manage your online & On-Desk booking easily with QloApps. -Server configuration --------- -To install Qlo, you need a web server running PHP 5.2+ and any flavor of MySQL 5.0+ (MySQL, MariaDB, Percona Server, etc) -You will also need a database administration tool, such as phpMyAdmin, in order to create a database for PrestaShop. -We recommend the Apache or Nginx web servers. +### Requirements +In order to install QloApps you will need the following server configurations for hosted and local serves. +The system compatibility will also be checked by the system with installation and if the server is not compatible then the installation will not move ahead. -Installation --------- -a) from Source
-Please go through this blog : http://qloapps.com/install-qloapps/ for detail instruction about installation. -In nutshell : -Once the files in the QloApps archive have been decompressed and uploaded on your hosting space, go to the root of your QloApps directory with your web browser, and the QloApps installer will start automatically. Follow the instructions until QloApps is installed. +#### Hosted Server Configurations -b) Docker Image :
-https://github.com/webkul/qloapps_docker
-https://hub.docker.com/r/webkul/qloapps_docker/
+* **Web server**: Apache 1.3, Apache 2.x, Nginx or Microsoft IIS +* **PHP version**: 5.4+ +* **MySQL version**: 5.0+ and below 5.7 installed with a database created +* SSH or FTP access (ask your hosting service for your credentials) +* In the PHP configuration ask your provider to set memory_limit to "128M", upload_max_filesize to "16M" , max_execution_time to "500" and allow_url_fopen "on" +* SSL certificate if you plan to process payments internally (not using PayPal for instance) +* **Required PHP extensions**: cURL, SimpleXML, SOAP -c) Vagrant Image : -https://github.com/webkul/Vagrant_qloapps +#### Local Server Configurations +* **Supported operating system**: Windows, Mac, and Linux +* **A prepared package**: WampServer (for Windows), Xampp (for Windows and Mac) or EasyPHP (for Windows) +* **Web server**: Apache 1.3, Apache 2.x, Nginx or Microsoft IIS +* **PHP**: 5.4+ and below PHP 7.0 +* **MySQL** 5.0+ and below 5.7 installed with a database created +* In the PHP configuration, set memory_limit to "128M", upload_max_filesize to "16M" and max_execution_time to "500" +* **Required PHP extensions**: cURL, SimpleXML, SOAP -Getting support --------- -If you need help using QloApps, contact the QloApps support team: qloapps@webkul.com -or raise ticket at https://webkul.uvdesk.com +### Installation and Configuration -Webkul is known for his proactive support and already developed more than 100+ plugins on prestashop and more than 700+ plugins on other platforms. +**1.** You can install QloApps easily after downloading QloApps. There are easy steps for the installation process. Please visit [QloApps Installation Guide](https://qloapps.com/install-qloapps/) and follow the steps for the successful installation. +**2.** Or you can install QloApps with docker image. For the docker image of QloApps, please visit [Dockerize image of QloApps](https://hub.docker.com/r/webkul/qloapps_docker)
+* Docker pull command +~~~ +docker pull webkul/qloapps_docker +~~~ -license --------- -OSL V3 : https://opensource.org/licenses/OSL-3.0 +### License +QloApps is a truly opensource Hotel-Commerce platform which will always be free under the [MIT License](https://github.com/webkul/hotelcommerce/blob/develop/LICENSE). -Credits --------- -Crafted with :heart: at [Webkul](http://webkul.com) +### Security Vulnerabilities +Please don't disclose security vulnerabilities publicly. If you find any security vulnerability in QloApps then please email us: mailto:support@qloapps.com. -Thank you for downloading. \ No newline at end of file +### Documentation & Demo + +#### QloApps Documentation [https://qloapps.com/qlo-reservation-system](https://qloapps.com/qlo-reservation-system) +#### QloApps Demo +**FrontEnd** : https://demo.qloapps.com
+**Backend** : https://demo.qloapps.com/adminhtl/index.php
+**username** : demo@demo.com
+**Password** : demodemo
+ +### Contribute +As a PHP developer who has command on PHP and MySQL and also knows how to use Git or GitHub efficiently, can contribute to code enhancements via pull requests.
+For more information about the contribution process please visit **[Contribute to QloApps](https://qloapps.com/how-to-contribute-to-qloapps-project/)** + +### Credits +Crafted with :heart: at [Webkul](https://webkul.com) From 55efe921f9c0fa4eaf36a97158db931589530fed Mon Sep 17 00:00:00 2001 From: shreesh arora Date: Tue, 19 Jan 2021 16:13:27 +0530 Subject: [PATCH 10/45] booking cart text changes --- .../modules/blockcart/blockcart.tpl | 2 +- themes/hotel-reservation-theme/order-opc.tpl | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl b/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl index 4686716eb..a84583421 100644 --- a/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl +++ b/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl @@ -27,7 +27,7 @@