Skip to content

Commit 0533e5f

Browse files
authored
Merge pull request #55 from rohit053/v1.3.1
V1.3.1 released: Stats Modules Added + added travis
2 parents e13d07f + 102343d commit 0533e5f

429 files changed

Lines changed: 2637 additions & 9619 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.

.travis.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ dist: trusty
1414
php:
1515
- 5.6
1616
- 7.2
17+
18+
before_script:
19+
- sudo cp -f tests/travis-ci-apache-vhost /etc/apache2/sites-available/default
20+
- sudo cp -Rf . /var/www/qloapps.unit.test
21+
- sudo chmod 777 -R /var/www/
22+
- sudo service apache2 restart
23+
24+
script:
25+
- cd /var/www/qloapps.unit.test/tests && bash getcomposer.sh && php composer.phar install && php vendor/bin/phpunit -c .
26+
1727
after_script:
1828
- sudo cat /var/log/apache2/error.log
1929

@@ -23,4 +33,4 @@ after_failure:
2333
- cat /etc/apache2/sites-available/000-default.conf
2434
- sudo cat /var/log/php-fpm.log
2535
- sudo ls -l /var/log/apache2
26-
- sudo cat /var/log/apache2/other_vhosts_access.log
36+
- sudo cat /var/log/apache2/other_vhosts_access.log

CHANGELOG.txt

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
####################################
2+
# V1.3.1
3+
####################################
4+
5+
## Added Features:
6+
7+
[+] BO : All already compatible Stats module are installed to the qloapps now.
8+
9+
10+
## Improved/changed features:
11+
12+
[+] BO : Hotel name is shown in the Room Type Booking list and Room Type booking status tables.
13+
[+] FO : Hotel name is shown in the Customer shopping list, Order confirmation and order details booking lists.
14+
15+
16+
## Bug/Issues Resolved:
17+
18+
[-] CO : Resolved :: When set up the new install, the upload_max_filesize value in the php.ini file less than 16M, but the error message is displaying for memory_limit.
19+
20+
121
####################################
222
# V1.3.0
323
####################################
@@ -13,6 +33,7 @@
1333
[+] CO : System compatibility check for Qloapps installation improved .
1434

1535

36+
1637
####################################
1738
# V1.2.0
1839
####################################
@@ -321,4 +342,4 @@
321342
[-] MO : wktestimonialblock : Fixed while adding the image in valid format on configuration page then showing error page.
322343
[-] MO : wkpaypaladaptive : Fixed paypal is not working because paypal api has been changed.
323344
[-] MO : wkpaypaladaptive : Fixed fopen issues fixed, done by CURL.
324-
[-] MO : wkpaypaladaptive : Fixed payment negative value bug fixed.
345+
[-] MO : wkpaypaladaptive : Fixed payment negative value bug fixed.

admin/themes/default/template/controllers/orders/_product_line.tpl

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
<td class="text-center">
3434
{$data.room_type}
3535
</td>
36+
<td class="text-center">
37+
<a href="{$link->getAdminLink('AdminAddHotel')}&amp;id={$data['id_hotel']}&amp;updatehtl_branch_info" target="_blank">
38+
<span>{$data['hotel_name']}</span>
39+
</a>
40+
</td>
3641
<td class="text-center">
3742
<span class="booking_duration_show">{$data.date_from|date_format:"%d-%m-%Y"}&nbsp-&nbsp {$data.date_to|date_format:"%d-%m-%Y"}</span>
3843

@@ -63,7 +68,7 @@
6368
<span class="product_original_price {if $data.feature_price_diff > 0}room_type_old_price{/if}" {if $data.feature_price_diff < 0} style="display:none;"{/if}>
6469
{convertPriceWithCurrency price=$data.unit_price_without_reduction_tax_incl currency=$currency->id}
6570
</span>&nbsp;
66-
<span class="room_type_current_price" {if !$data.feature_price_diff}style="display:none;"{/if}>
71+
<span class="room_type_current_price" {if !$data.feature_price_diff}style="display:none;"{/if}>
6772
{convertPriceWithCurrency price=$data.paid_unit_price_tax_incl currency=$currency->id}
6873
</span>
6974
</td>
@@ -91,7 +96,7 @@
9196
</div>
9297
{/if}
9398
</td>
94-
99+
95100
<td class="text-center stage_name">
96101
<p>
97102
{if isset($data['stage_name']) && $data['stage_name']}
@@ -173,6 +178,6 @@
173178
.room_type_old_price {
174179
text-decoration: line-through;
175180
color:#979797;
176-
font-size:12px;
181+
font-size:12px;
177182
}
178183
</style>

admin/themes/default/template/controllers/orders/helpers/view/view.tpl

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@
280280
<table class="table table-responsive">
281281
<tr>
282282
<th>{l s='Room No.'}</th>
283+
<th>{l s='Hotel Name'}</th>
283284
<th>{l s='Date From'}</th>
284285
<th>{l s='Date To'}</th>
285286
<th>{l s='Order Status'}</th>
@@ -290,6 +291,11 @@
290291
<td>
291292
{$data['room_num']}
292293
</td>
294+
<td>
295+
<a href="{$link->getAdminLink('AdminAddHotel')}&amp;id={$data['id_hotel']}&amp;updatehtl_branch_info" target="_blank">
296+
<span>{$data['hotel_name']}</span>
297+
</a>
298+
</td>
293299
<td>
294300
{$data['date_from']|date_format:"%d-%m-%Y"}
295301
</td>
@@ -301,7 +307,7 @@
301307
<select style="display:inline;width:40%;" name="booking_order_status">
302308
{foreach from=$hotel_order_status item=state}
303309
<option value="{$state['id']|intval}" {if isset($data.id_status) && $state.id == $data.id_status} selected="selected" disabled="disabled"{/if}>{$state.status|escape}</option>
304-
{/foreach}
310+
{/foreach}
305311
</select>
306312
<input type="hidden" name="date_from" value="{$data['date_from']}" />
307313
<input type="hidden" name="date_to" value="{$data['date_to']}" />
@@ -319,7 +325,7 @@
319325
<td>{l s='No data found.'}</td>
320326
</tr>
321327
{/if}
322-
</table>
328+
</table>
323329
</div>
324330
</div>
325331
</div>
@@ -969,6 +975,7 @@
969975
<th class="text-center"><span class="title_box">{l s='Room No.'}</span></th>
970976
<th class="text-center"><span class="title_box">{l s='Room Image'}</th>
971977
<th class="text-center"><span class="title_box">{l s='Room Type'}</span></th>
978+
<th class="text-center"><span class="title_box">{l s='Hotel Name'}</span></th>
972979
<th class="text-center"><span class="title_box">{l s='Duration'}</span></th>
973980
<th class="text-center"><span class="title_box">{l s='Unit Price'}</span></th>
974981
<th class="text-center"><span class="title_box">{l s='Total Price'}</span></th>
@@ -1096,7 +1103,7 @@
10961103
{/if}
10971104
</div>
10981105
</div> <!-- by webkul to hide unnessary things in the page--> *}
1099-
1106+
11001107
<!-- For Due amount submit panel (by webkul) -->
11011108
{if isset($order_adv_dtl)}
11021109
<div class="col-xs-6">
@@ -1134,17 +1141,17 @@
11341141
</div>
11351142
</td>
11361143
</tr>
1137-
{/if}
1144+
{/if}
11381145
</table>
11391146
</div>
11401147
{if ($order_adv_dtl['total_order_amount'] - $order_adv_dtl['total_paid_amount'])|round:2 > 0}
11411148
<button type="submit" class="btn btn-primary" name="payDueAmount" style="margin-top:10px;">{l s="Submit Amount"}</button>
1142-
{/if}
1149+
{/if}
11431150
</form>
11441151
</div>
11451152
</div>
11461153
{/if}
1147-
1154+
11481155
<div class="col-xs-6 pull-right">
11491156
<div class="panel panel-vouchers" style="{if !sizeof($discounts)}display:none;{/if}">
11501157
{if (sizeof($discounts) || $can_edit)}
@@ -1281,9 +1288,9 @@
12811288
</td>
12821289
</tr>
12831290
{/if}
1284-
1291+
12851292
{assign var=order_total_price value=$order->total_paid_tax_incl}
1286-
1293+
12871294
<tr id="total_order">
12881295
<td class="text-right"><strong>{l s='Total'}</strong></td>
12891296
<td class="amount text-right nowrap">
@@ -1643,7 +1650,7 @@
16431650
$(".realloc_avail_rooms_container").empty().text(no_rm_avail_txt);
16441651
}
16451652
});
1646-
1653+
16471654
/*For reallocating rooms in the modal*/
16481655
$("#realloc_allocated_rooms").on('click', function(e){
16491656
$(".error_text").text('');
@@ -1663,7 +1670,7 @@
16631670
return false;
16641671
}
16651672
});
1666-
1673+
16671674
/*END*/
16681675
16691676
$(".textarea-autosize").autosize();

controllers/admin/AdminOrdersController.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1892,11 +1892,20 @@ public function renderView()
18921892
$htl_booking_data_order_id = $obj_bookin_detail->getBookingDataByOrderId(Tools::getValue('id_order'));
18931893
if ($htl_booking_data_order_id) {
18941894
$obj_htl_rm_info = new HotelRoomInformation();
1895+
$objHtlBranchInfo = new HotelBranchInformation();
18951896
foreach ($htl_booking_data_order_id as $key => $value) {
18961897
$htl_booking_data_order_id[$key]['room_num'] = $obj_htl_rm_info->getHotelRoomInfoById($value['id_room']);
18971898
$htl_booking_data_order_id[$key]['order_status'] = $value['id_status'];
18981899
$htl_booking_data_order_id[$key]['date_from'] = $value['date_from'];
18991900
$htl_booking_data_order_id[$key]['date_to'] = $value['date_to'];
1901+
//enter hotel name
1902+
$hotelInfo = $objHtlBranchInfo->hotelBranchesInfo(
1903+
Configuration::get('PS_LANG_DEFAULT'),
1904+
2,
1905+
0,
1906+
$value['id_hotel']
1907+
);
1908+
$htl_booking_data_order_id[$key]['hotel_name'] = $hotelInfo['hotel_name'];
19001909
}
19011910
}
19021911
$htl_order_status = HotelOrderStatus::getAllHotelOrderStatus();
@@ -2897,7 +2906,7 @@ public function ajaxProcessEditProductOnOrder()
28972906

28982907
/*By webkul to edit the Hotel Cart and Hotel Order tables when editing the room for the order detail page*/
28992908
$update_htl_tables = $obj_booking_detail->UpdateHotelCartHotelOrderOnOrderEdit($id_order, $id_room, $old_date_from, $old_date_to, $new_date_from, $new_date_to);
2900-
2909+
29012910
//Update Order Info in Customer Advance payment table
29022911
$obj_customer_adv = new HotelCustomerAdvancedPayment();
29032912
$obj_customer_adv->updateAdvancePaymentInfoOnOrderEdit($id_order);

controllers/front/OrderConfirmationController.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public function initContent()
109109

110110
$cartOrders = Order::getAllOrdersByCartId($order->id_cart);
111111
if ($cartOrders) {
112+
$objHtlBranchInfo = new HotelBranchInformation();
112113
$obj_cart_bk_data = new HotelCartBookingData();
113114
$obj_htl_bk_dtl = new HotelBookingDetail();
114115
$obj_rm_type = new HotelRoomType();
@@ -222,6 +223,15 @@ public function initContent()
222223

223224
$feature_price_diff = (float)($cart_htl_data[$type_key]['date_diff'][$date_join]['product_price_without_reduction_tax_incl'] - $cart_htl_data[$type_key]['date_diff'][$date_join]['paid_unit_price_tax_incl']);
224225
$cart_htl_data[$type_key]['date_diff'][$date_join]['feature_price_diff'] = $feature_price_diff;
226+
227+
//enter hotel name
228+
$hotelInfo = $objHtlBranchInfo->hotelBranchesInfo(
229+
Configuration::get('PS_LANG_DEFAULT'),
230+
2,
231+
0,
232+
$data_v['id_hotel']
233+
);
234+
$cart_htl_data[$type_key]['hotel_name'] = $hotelInfo['hotel_name'];
225235
}
226236
}
227237
}

controllers/front/OrderDetailController.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public function initContent()
323323
//by webkul to show order details properly on order history page
324324
if (Module::isInstalled('hotelreservationsystem')) {
325325
require_once _PS_MODULE_DIR_.'hotelreservationsystem/define.php';
326-
326+
$objHtlBranchInfo = new HotelBranchInformation();
327327
$obj_cart_bk_data = new HotelCartBookingData();
328328
$obj_htl_bk_dtl = new HotelBookingDetail();
329329
$obj_rm_type = new HotelRoomType();
@@ -427,6 +427,15 @@ public function initContent()
427427

428428
$feature_price_diff = (float)($cart_htl_data[$type_key]['date_diff'][$date_join]['product_price_without_reduction_tax_incl'] - $cart_htl_data[$type_key]['date_diff'][$date_join]['paid_unit_price_tax_incl']);
429429
$cart_htl_data[$type_key]['date_diff'][$date_join]['feature_price_diff'] = $feature_price_diff;
430+
431+
//enter hotel name
432+
$hotelInfo = $objHtlBranchInfo->hotelBranchesInfo(
433+
Configuration::get('PS_LANG_DEFAULT'),
434+
2,
435+
0,
436+
$data_v['id_hotel']
437+
);
438+
$cart_htl_data[$type_key]['hotel_name'] = $hotelInfo['hotel_name'];
430439
}
431440
}
432441
$redirect_link_terms = $this->context->link->getCMSLink(new CMS(3, $this->context->language->id), null, $this->context->language->id);

controllers/front/OrderOpcController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ public function initContent()
475475

476476
if (count($avai_rm['rm_data'][0]['data']['available']) < count($cl_val['id_rms'])) {
477477
$cartChanged = true;
478-
478+
479479
foreach ($cl_val['id_rms'] as $cr_key => $cr_val) {
480480
$isRmBooked = $obj_htl_bk_dtl->chechRoomBooked($cr_val, $cl_val['date_from'], $cl_val['date_to']);
481481
if ($isRmBooked) {
@@ -502,7 +502,7 @@ public function initContent()
502502
if ($cart_htl_data) {
503503
$this->context->smarty->assign('cart_htl_data', $cart_htl_data);
504504
}
505-
505+
506506
// For Advanced Payment
507507
$advance_payment_active = Configuration::get('WK_ALLOW_ADVANCED_PAYMENT');
508508
if ($advance_payment_active) {

install/controllers/http/system.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ public function display()
9595
'curl' => $this->l('Curl extension is not loaded'),
9696
'soap' => $this->l('SOAP extension is not loaded'),
9797
'simplexml' => $this->l('SimpleXml extension is not loaded'),
98-
'upload_max_filesize' => $this->l('In the PHP configuration set memory_limit to minimum 128M'),
98+
'memory_limit' => $this->l('In the PHP configuration set memory_limit to minimum 128M'),
9999
'max_execution_time' => $this->l('In the PHP configuration set max_execution_time to minimum 500'),
100-
'memory_limit' => $this->l('In the PHP configuration set upload_max_filesize to minimum 16M'),
100+
'upload_max_filesize' => $this->l('In the PHP configuration set upload_max_filesize to minimum 16M'),
101101
)
102102
),
103103
array(
@@ -160,4 +160,4 @@ public function display()
160160

161161
$this->displayTemplate('system');
162162
}
163-
}
163+
}

install/fixtures/fashion/data/connections.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<field name="id_shop"/>
1010
</fields>
1111
<entities>
12-
<connections id="connections_1" id_guest="guest_1" id_page="1" ip_address="2130706433" id_shop_group="1" id_shop="1">
13-
<http_referer>http://www.prestashop.com</http_referer>
12+
<connections id="connections_1" id_guest="guest_1" id_page="1" ip_address="10424105181" id_shop_group="1" id_shop="1">
13+
<http_referer>http://www.qloapps.com</http_referer>
1414
</connections>
1515
</entities>
1616
</entity_connections>

0 commit comments

Comments
 (0)