Skip to content

Commit 1b15257

Browse files
authored
Merge branch develop into '1.5.x'
Releasing QloApps v1.5.1: Merge pull request #234 from webkul/develop
2 parents 3e3dc9f + d22f306 commit 1b15257

191 files changed

Lines changed: 3309 additions & 2305 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Adapter/Adapter_EntityMapper.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function load($id, $id_lang, $entity, $entity_defs, $id_shop, $should_cac
5959
}
6060

6161
if ($object_datas = Db::getInstance()->getRow($sql)) {
62+
$objectVars = get_object_vars($entity);
6263
if (!$id_lang && isset($entity_defs['multilang']) && $entity_defs['multilang']) {
6364
$sql = 'SELECT *
6465
FROM `' . bqSQL(_DB_PREFIX_ . $entity_defs['table']) . '_lang`
@@ -68,7 +69,7 @@ public function load($id, $id_lang, $entity, $entity_defs, $id_shop, $should_cac
6869
if ($object_datas_lang = Db::getInstance()->executeS($sql)) {
6970
foreach ($object_datas_lang as $row) {
7071
foreach ($row as $key => $value) {
71-
if ($key != $entity_defs['primary'] && array_key_exists($key, $entity)) {
72+
if ($key != $entity_defs['primary'] && array_key_exists($key, $objectVars)) {
7273
if (!isset($object_datas[$key]) || !is_array($object_datas[$key])) {
7374
$object_datas[$key] = array();
7475
}
@@ -81,7 +82,9 @@ public function load($id, $id_lang, $entity, $entity_defs, $id_shop, $should_cac
8182
}
8283
$entity->id = (int)$id;
8384
foreach ($object_datas as $key => $value) {
84-
if (array_key_exists($key, $entity)) {
85+
//if (array_key_exists($key, $entity)) {
86+
if (array_key_exists($key, $entity_defs['fields'])
87+
|| array_key_exists($key, $objectVars)) {
8588
$entity->{$key} = $value;
8689
} else {
8790
unset($object_datas[$key]);

CHANGELOG.txt

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,83 @@
1+
####################################
2+
# V1.5.1
3+
####################################
4+
5+
## Added Features:
6+
7+
[+] CO : [#217] `auto_generated` column in `address` table added to track address creation source
8+
[+] CO : [#207] New order states 'Partial payment accepted' and 'Awaiting partial payment' added for the partial payment
9+
[+] CO : [#208] "Catalog Mode" option to disable all booking options, customer can only view Rooms
10+
[+] CO : [#198, #226] Multiple hooks are added in the different QloApps core files
11+
12+
[+] FO : [#187] Display voucher name along with voucher code on order page
13+
14+
## Improved/changed features:
15+
16+
[*] BO : [#206] Removed Other Modules setting from admin Hotel Reservation System -> Settings
17+
[*] BO : [#200] Removed shipping option from car rule condition.
18+
[*] BO : [#199] Removed "Display suppliers and manufacturers" and "Display best sellers" options from Admin Preferences controller
19+
[*] BO : [#193] Removed Payment Modules setting from admin Hotel Reservation System -> Settings
20+
[*] BO : [#189] Moved hotel selection from configuration tab to information tab
21+
[*] BO : [#179] Added hotel column in room type feature pricing list
22+
[*] BO : [#177] Removed multishop option
23+
[*] BO : [#149] Removed carrier column from Booking Carts Controller
24+
[*] BO : [#183] Added hotel name along with room name when adding filter of room type for cart rule
25+
[*] BO : [#204, #196, #182] Text Changes
26+
[*] BO : [#110, #111] Code Optimization
27+
28+
[*] CO : [#223] getHotelCartBookingData() : function multiplication optimized
29+
[*] CO : [#225] HotelRoomTypeFeaturePricing.php optimized (Removed unused variables, removed static values assigned)
30+
[*] CO : [#218] Added hotel name column in order confirmation mail and invoice.
31+
[*] CO : [#210] CMS page Delivery is not valid for hotel industry. So changed it to Policies page
32+
[*] CO : [#205] Prevent deleting profile which is used by at least one employee
33+
[*] CO : [#214] blockcart module :: Removed unused hooks displayLeftColumn and displayrightColumn
34+
[*] CO : [#180] license file name changed from LICENSES to LICENSE
35+
[*] CO : [#181] Readme file improvements with more information and links
36+
[*] CO : [#221] dataforfrontsearch() function now calculate and provide "feature_price_diff" value in response
37+
[*] CO : [#175] Changed QloApps versioning system (now 1.5.0.0 please check)
38+
[*] CO : [#175] Updated module compatibility check with QloApps version
39+
[*] CO : [#215] "hotelreservationsystem.php" code optimization in hook "actionValidateOrder"
40+
[*] CO : [#117, #118, #119, #120, #121, #122, #134, #137, #138, #139] Changes for PHP7 compatibility
41+
[*] CO : [#178] Text Changes
42+
43+
[*] FO : [#222] Disabled mobile keyboard pop up when using date-picker in home search
44+
[*] FO : [#208] Room type listing on search result page moved to different template "room_type_listing.tpl"
45+
[*] FO : [#185] Replaced star rating plugin with jquery Raty in Product Comments module
46+
[*] FO : [#156] "product.js" code multiplication optimized
47+
[*] FO : [#215] "ajax-cart.js" add validation
48+
[*] FO : [#125, #127, #141, #142] Changes for PHP7 compatibility
49+
50+
51+
## Bug/Issues Resolved:
52+
53+
[-] BO : Fixed : [#211] Errors on cart rule page when add room type, which is not assigned to hotel, selected in room type condition
54+
[-] BO : Fixed : [#197] wrong theme information is displayed at Preferences -> Themes admin controller
55+
[-] BO : Fixed : [#195] Filter by position in the render lists of admin controllers
56+
[-] BO : Fixed : [#194] Entering wrong discount while Group creation, page redirects to list page
57+
[-] BO : Fixed : [#192] Using filter in customer Group list, page redirects to previous list
58+
[-] BO : Fixed : [#189] Room Type associations with its hotel parent category
59+
[-] BO : Fixed : [#176] Birthday input field width in Helper Form
60+
[-] BO : Fixed : [#173] Undefined varaible issue Manage Order Refund Request Controller
61+
[-] BO : Fixed : [#171] Multiple request on single click in Helper List
62+
[-] BO : Fixed : [#160] "Access Denied" issue when an employee other than super admin create a new room.
63+
[-] BO : Fixed : [#168] Room number not updating after room reallocation and swap
64+
[-] BO : Fixed : [#162] Additional facility price changes for room type after saving
65+
[-] BO : Fixed : [#147] Creating order status without entering "status name", page redirects to blank page
66+
[-] BO : Fixed : [#148] Creating order refund status without entering "status name", page redirects to list page
67+
[-] BO : Fixed : [#229] Resolved undefined variable error in Manage Order Refund Request Controller
68+
69+
[-] FO : Fixed : [#212] Design issue of select in the ADDITIONAL FACILITIES if text exceeds from block in the product detail page
70+
[-] FO : Fixed : [#209] Errors on the search result page: If new group is created and only this group is assigned to the customer
71+
[-] FO : Fixed : [#203] Guest is unable to submit Refund Request again after entering invalid Refund Reason once
72+
[-] FO : Fixed : [#158] Hotel selection in search panel for mobile devices
73+
[-] FO : Fixed : [#169] Wrong price displayed when booking from 1 march to 30 march
74+
[-] FO : Fixed : [#151] Room search check-in && check-out don't change when friendly URL is disabled.
75+
76+
[-] CO : Fixed : [#186] Links in mail for my-account, guest tracking and my orders pages are now localized to customer language.
77+
[-] CO : Fixed : [#109] updated invalid varaible "pshone_mobile" to "phone_mobile"
78+
[-] CO : Fixed : [#202] "global.css" added missing class for aligning images left and right in discription
79+
80+
181
####################################
282
# V1.5.0
383
####################################
File renamed without changes.

README.md

Lines changed: 74 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,91 @@
1-
QloApps
2-
--------
3-
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
1+
<div align="center">
2+
<a href="https://www.qloapps.com"><img src="https://forums.qloapps.com/assets/uploads/system/site-logo.png?v=hkl8e1230fo" alt="QloApps"></a>
3+
<br>
4+
<p>
5+
<b>QloApps - An open source and free platform to launch your own hotel booking website</b>
6+
</p>
7+
</div>
48

9+
<p align="center">
10+
<a href="https://qloapps.com/download/"><img src="https://img.shields.io/badge/Download-Download%20QloApps%20-brightgreen" alt="Download"></a>
11+
<a href="https://qloapps.com/qlo-reservation-system/"><img src="https://img.shields.io/badge/Documentation-Blog-yellowgreen" alt="Documentation"></a>
12+
<a href="https://forums.qloapps.com/"><img src="https://img.shields.io/badge/Forum-Help%2FSupport-green" alt="Forum"></a>
13+
<a href="https://qloapps.com/addons/"><img src="https://img.shields.io/badge/Addons-Plugins-blueviolet" alt="Addons"></a>
14+
<a href="https://qloapps.com/contact/"><img src="https://img.shields.io/badge/Contact-Get%20In%20Touch-blue" alt="Contact us"></a>
15+
<a href="https://github.com/webkul/hotelcommerce/blob/develop/LICENSE"><img src="https://img.shields.io/badge/License-OSL%20V3-green" alt="License"></a>
16+
</p>
517

6-
Demo
7-
--------
8-
FrontEnd : http://demo.qloapps.com </br>
9-
Backend : http://demo.qloapps.com/adminhtl/index.php </br>
10-
username : demo@demo.com </br>
11-
Password : demodemo </br>
18+
## Topics
19+
1. [Introduction](#introduction)
20+
2. [Requirements](#requirements)
21+
3. [Installation & Configuration](#installation-and-configuration)
22+
4. [License](#license)
23+
5. [Security Vulnerabilities](#security-vulnerabilities)
24+
6. [Documentation & Demo](#documentation--demo)
25+
7. [Contribute](#contribute)
26+
8. [Credits](#credits)
1227

1328

14-
Server configuration
15-
--------
16-
To install Qlo, you need a web server running PHP 5.2+ and any flavor of MySQL 5.0+ (MySQL, MariaDB, Percona Server, etc)
17-
You will also need a database administration tool, such as phpMyAdmin, in order to create a database for PrestaShop.
18-
We recommend the Apache or Nginx web servers.
29+
### Introduction
1930

31+
QloApps also known as Qlo is an **Open-source and Free hotel reservation system** and booking engine. <br>
32+
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.
2033

21-
Installation
22-
--------
23-
a) from Source </br>
24-
Please go through this blog : http://qloapps.com/install-qloapps/ for detail instruction about installation.
25-
In nutshell :
26-
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.
34+
### Requirements
2735

28-
b) Docker Image :</br>
29-
https://github.com/webkul/qloapps_docker</br>
30-
https://hub.docker.com/r/webkul/qloapps_docker/ </br>
36+
In order to install QloApps you will need the following server configurations for hosted and local serves.
37+
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.
3138

32-
c) Vagrant Image :
33-
https://github.com/webkul/Vagrant_qloapps
39+
#### Hosted Server Configurations
3440

41+
* **Web server**: Apache 1.3, Apache 2.x, Nginx or Microsoft IIS
42+
* **PHP version**: 5.4+
43+
* **MySQL version**: 5.0+ and below 5.7 installed with a database created
44+
* SSH or FTP access (ask your hosting service for your credentials)
45+
* 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"
46+
* SSL certificate if you plan to process payments internally (not using PayPal for instance)
47+
* **Required PHP extensions**: cURL, SimpleXML, SOAP
3548

36-
Getting support
37-
--------
38-
If you need help using QloApps, contact the QloApps support team: qloapps@webkul.com
39-
or raise ticket at https://webkul.uvdesk.com
49+
#### Local Server Configurations
4050

41-
Webkul is known for his proactive support and already developed more than 100+ plugins on prestashop and more than 700+ plugins on other platforms.
51+
* **Supported operating system**: Windows, Mac, and Linux
52+
* **A prepared package**: WampServer (for Windows), Xampp (for Windows and Mac) or EasyPHP (for Windows)
53+
* **Web server**: Apache 1.3, Apache 2.x, Nginx or Microsoft IIS
54+
* **PHP**: 5.4+ and below PHP 7.0
55+
* **MySQL** 5.0+ and below 5.7 installed with a database created
56+
* In the PHP configuration, set memory_limit to "128M", upload_max_filesize to "16M" and max_execution_time to "500"
57+
* **Required PHP extensions**: cURL, SimpleXML, SOAP
4258

59+
### Installation and Configuration
4360

44-
license
45-
--------
46-
OSL V3 : https://opensource.org/licenses/OSL-3.0
61+
**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.
4762

63+
**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) <br>
64+
* Docker pull command
65+
~~~
66+
docker pull webkul/qloapps_docker
67+
~~~
4868

49-
Credits
50-
--------
51-
Crafted with :heart: at [Webkul](http://webkul.com)
69+
### License
5270

71+
QloApps is a truly opensource Hotel-Commerce platform which is under the [Open Software License 3.0](https://github.com/webkul/hotelcommerce/blob/develop/LICENSE).
5372

54-
Thank you for downloading.
73+
### Security Vulnerabilities
74+
75+
Please don't disclose security vulnerabilities publicly. If you find any security vulnerability in QloApps then please email us: mailto:support@qloapps.com.
76+
77+
### Documentation & Demo
78+
79+
#### QloApps Documentation [https://qloapps.com/qlo-reservation-system](https://qloapps.com/qlo-reservation-system)
80+
#### QloApps Demo
81+
**FrontEnd** : https://demo.qloapps.com </br>
82+
**Backend** : https://demo.qloapps.com/adminhtl/index.php </br>
83+
**username** : demo@demo.com </br>
84+
**Password** : demodemo </br>
85+
86+
### Contribute
87+
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.<br>
88+
For more information about the contribution process please visit **[Contribute to QloApps](https://qloapps.com/how-to-contribute-to-qloapps-project/)**
89+
90+
### Credits
91+
Crafted with :heart: at [Webkul](https://webkul.com)

admin/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function getDirContent($path)
202202
if (is_dir($path)) {
203203
$d = dir($path);
204204
while (false !== ($entry = $d->read())) {
205-
if ($entry{0} != '.') {
205+
if ($entry[0] != '.') {
206206
$content[] = $entry;
207207
}
208208
}

admin/themes/default/template/controllers/cart_rules/conditions.tpl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
</label>
5454
<div class="col-lg-9">
5555
<div class="row">
56-
<div class="col-lg-3">
56+
<div class="col-lg-4">
5757
<input type="text" name="minimum_amount" value="{$currentTab->getFieldValue($currentObject, 'minimum_amount')|floatval}" />
5858
</div>
59-
<div class="col-lg-2">
59+
<div class="col-lg-4">
6060
<select name="minimum_amount_currency">
6161
{foreach from=$currencies item='currency'}
6262
<option value="{$currency.id_currency|intval}"
@@ -70,18 +70,19 @@
7070
{/foreach}
7171
</select>
7272
</div>
73-
<div class="col-lg-3">
73+
<div class="col-lg-4">
7474
<select name="minimum_amount_tax">
7575
<option value="0" {if $currentTab->getFieldValue($currentObject, 'minimum_amount_tax') == 0}selected="selected"{/if}>{l s='Tax excluded'}</option>
7676
<option value="1" {if $currentTab->getFieldValue($currentObject, 'minimum_amount_tax') == 1}selected="selected"{/if}>{l s='Tax included'}</option>
7777
</select>
7878
</div>
79-
<div class="col-lg-4">
79+
<input type="hidden" name="minimum_amount_shipping" value="0">
80+
{* <div class="col-lg-4">
8081
<select name="minimum_amount_shipping">
8182
<option value="0" {if $currentTab->getFieldValue($currentObject, 'minimum_amount_shipping') == 0}selected="selected"{/if}>{l s='Shipping excluded'}</option>
8283
<option value="1" {if $currentTab->getFieldValue($currentObject, 'minimum_amount_shipping') == 1}selected="selected"{/if}>{l s='Shipping included'}</option>
8384
</select>
84-
</div>
85+
</div> *}
8586
</div>
8687
</div>
8788
</div>

admin/themes/default/template/controllers/modules/js.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
var currentIndexWithToken = '{$currentIndex|escape:'html':'UTF-8'}&token={$token|escape:'html':'UTF-8'}';
3535
var dirNameCurrentIndex = '{$dirNameCurrentIndex}';
3636
var ajaxCurrentIndex = '{$ajaxCurrentIndex}';
37-
var installed_modules = {if isset($installed_modules) && count($installed_modules)}{$installed_modules}{else}false{/if};
37+
var installed_modules = {if isset($installed_modules) && is_array($installed_modules) && count($installed_modules)}{$installed_modules}{else}false{/if};
3838
var by = '{l s='by'}';
3939
var confirmPreferencesSaved = '{l s='Preferences saved'}';
4040
{if isset($smarty.get.anchor) && !isset($error_module)}var anchor = '{$smarty.get.anchor|htmlentities|replace:'(':''|replace:')':''|replace:'{':''|replace:'}':''|replace:'\'':''|replace:'/':''}';{else}var anchor = '';{/if}

0 commit comments

Comments
 (0)