- {l s='Name of account owner:' mod='bankwire'} {if $bankwireOwner}{$bankwireOwner}{else}___________{/if}
+
- {l s='Include these details:' mod='bankwire'} {if $bankwireDetails}{$bankwireDetails}{else}___________{/if}
+
- {l s='Bank address:' mod='bankwire'} {if $bankwireAddress}{$bankwireAddress}{else}___________{/if}
+
{if !isset($reference)}
- - {l s='Do not forget to insert your order number #%d in the subject of your bank wire.' sprintf=$id_order mod='bankwire'}
+
{l s='Do not forget to insert your order number #%d in the subject of your bank wire.' sprintf=$id_order mod='bankwire'}
{else}
- - {l s='Do not forget to insert your order reference %s in the subject of your bank wire.' sprintf=$reference mod='bankwire'}
+
{l s='Do not forget to insert your order reference %s in the subject of your bank wire.' sprintf=$reference mod='bankwire'}
{/if}
+
{else}
diff --git a/modules/cheque/views/templates/hook/payment_return.tpl b/modules/cheque/views/templates/hook/payment_return.tpl
index 21c98bfb7..66eea5216 100644
--- a/modules/cheque/views/templates/hook/payment_return.tpl
+++ b/modules/cheque/views/templates/hook/payment_return.tpl
@@ -30,10 +30,12 @@
- {l s='Payable to the order of' mod='cheque'} {if $chequeName}{$chequeName}{else}___________{/if} - {l s='Mail to' mod='cheque'} {if $chequeAddress}{$chequeAddress}{else}___________{/if}
{if !isset($reference) && isset($id_order) && $id_order}
- - {l s='Do not forget to insert your order number #%d.' sprintf=$id_order mod='cheque'}
+
- {l s='Do not forget to insert your order number #%d.' sprintf=$id_order mod='cheque'}
{else}
- - {l s='Do not forget to insert your order reference %s.' sprintf=$reference mod='cheque'}
+
- {l s='Do not forget to insert your order reference %s.' sprintf=$reference mod='cheque'}
{/if}
+
+
{else}
{l s='We noticed a problem with your order. If you think this is an error, feel free to contact our' mod='cheque'}
diff --git a/themes/hotel-reservation-theme/modules/bankwire/views/templates/hook/payment_return.tpl b/themes/hotel-reservation-theme/modules/bankwire/views/templates/hook/payment_return.tpl
index dc09e182d..2b1f20593 100644
--- a/themes/hotel-reservation-theme/modules/bankwire/views/templates/hook/payment_return.tpl
+++ b/themes/hotel-reservation-theme/modules/bankwire/views/templates/hook/payment_return.tpl
@@ -25,16 +25,18 @@
{if $status == 'ok'}
{l s='Your order on %s is complete.' sprintf=$shop_name mod='cheque'}
- {l s='Please send us a bank wire with' mod='bankwire'}
+ {l s='Please send us a bank wire with:' mod='bankwire'}
- {l s='Amount' mod='bankwire'} {$total_to_pay}
-
- {l s='Name of account owner' mod='bankwire'} {if $bankwireOwner}{$bankwireOwner}{else}___________{/if}
-
- {l s='Include these details' mod='bankwire'} {if $bankwireDetails}{$bankwireDetails}{else}___________{/if}
-
- {l s='Bank name' mod='bankwire'} {if $bankwireAddress}{$bankwireAddress}{else}___________{/if}
+ - {l s='Name of account owner:' mod='bankwire'} {if $bankwireOwner}{$bankwireOwner}{else}___________{/if}
+ - {l s='Include these details:' mod='bankwire'} {if $bankwireDetails}{$bankwireDetails}{else}___________{/if}
+ - {l s='Bank address:' mod='bankwire'} {if $bankwireAddress}{$bankwireAddress}{else}___________{/if}
+
{if !isset($reference)}
- - {l s='Do not forget to insert your order number #%d in the subject of your bank wire.' sprintf=$id_order mod='bankwire'}
+
{l s='Do not forget to insert your order number #%d in the subject of your bank wire.' sprintf=$id_order mod='bankwire'}
{else}
- - {l s='Do not forget to insert your order reference %s in the subject of your bank wire.' sprintf=$reference mod='bankwire'}
+
{l s='Do not forget to insert your order reference %s in the subject of your bank wire.' sprintf=$reference mod='bankwire'}
{/if}
+
{else}
diff --git a/themes/hotel-reservation-theme/modules/cheque/views/templates/hook/payment_return.tpl b/themes/hotel-reservation-theme/modules/cheque/views/templates/hook/payment_return.tpl
index 21c98bfb7..66eea5216 100644
--- a/themes/hotel-reservation-theme/modules/cheque/views/templates/hook/payment_return.tpl
+++ b/themes/hotel-reservation-theme/modules/cheque/views/templates/hook/payment_return.tpl
@@ -30,10 +30,12 @@
- {l s='Payable to the order of' mod='cheque'} {if $chequeName}{$chequeName}{else}___________{/if} - {l s='Mail to' mod='cheque'} {if $chequeAddress}{$chequeAddress}{else}___________{/if}
{if !isset($reference) && isset($id_order) && $id_order}
- - {l s='Do not forget to insert your order number #%d.' sprintf=$id_order mod='cheque'}
+
- {l s='Do not forget to insert your order number #%d.' sprintf=$id_order mod='cheque'}
{else}
- - {l s='Do not forget to insert your order reference %s.' sprintf=$reference mod='cheque'}
+
- {l s='Do not forget to insert your order reference %s.' sprintf=$reference mod='cheque'}
{/if}
+
+
{else}
{l s='We noticed a problem with your order. If you think this is an error, feel free to contact our' mod='cheque'}
From 32d89058b32a0726dd3823d66b19e4c6f94ecf94 Mon Sep 17 00:00:00 2001
From: Abhishek Kumar
Date: Mon, 24 Jul 2023 16:26:24 +0530
Subject: [PATCH 006/528] Add autofill for hotel form at back office
---
.../admin/AdminAddHotelController.php | 29 +++++++----
.../admin/add_hotel/helpers/form/form.tpl | 48 +++++++++----------
2 files changed, 42 insertions(+), 35 deletions(-)
diff --git a/modules/hotelreservationsystem/controllers/admin/AdminAddHotelController.php b/modules/hotelreservationsystem/controllers/admin/AdminAddHotelController.php
index 595400dce..451a36b78 100644
--- a/modules/hotelreservationsystem/controllers/admin/AdminAddHotelController.php
+++ b/modules/hotelreservationsystem/controllers/admin/AdminAddHotelController.php
@@ -124,22 +124,15 @@ class AdminAddHotelController extends ModuleAdminController
$country = $this->context->country;
$smartyVars['defaultCountry'] = $country->name[Configuration::get('PS_LANG_DEFAULT')];
+ $idCountry = null;
if ($this->display == 'edit') {
$idHotel = Tools::getValue('id');
$hotelBranchInfo = new HotelBranchInformation($idHotel);
$addressInfo = HotelBranchInformation::getAddress($idHotel);
- $statesbycountry = State::getStatesByIdCountry($addressInfo['id_country']);
+ $idCountry = $addressInfo['id_country'];
- $states = array();
- if ($statesbycountry) {
- foreach ($statesbycountry as $key => $value) {
- $states[$key]['id'] = $value['id_state'];
- $states[$key]['name'] = $value['name'];
- }
- }
$smartyVars['edit'] = 1;
- $smartyVars['state_var'] = $states;
$smartyVars['address_info'] = $addressInfo;
$smartyVars['hotel_info'] = (array) $hotelBranchInfo;
//Hotel Images
@@ -175,6 +168,24 @@ class AdminAddHotelController extends ModuleAdminController
$smartyVars['order_restrict_date_info'] = $restrictDateInfo;
}
+ // manage state option
+ if ($this->display == 'add') {
+ $idCountry = Tools::getValue('hotel_country');
+ }
+
+ $stateOptions = null;
+ if ($idCountry) {
+ $statesByCountry = State::getStatesByIdCountry($idCountry);
+ if ($statesByCountry) {
+ $stateOptions = array();
+ foreach ($statesByCountry as $key => $value) {
+ $stateOptions[$key]['id'] = $value['id_state'];
+ $stateOptions[$key]['name'] = $value['name'];
+ }
+ }
+ }
+
+ $smartyVars['state_var'] = $stateOptions;
$smartyVars['enabledDisplayMap'] = Configuration::get('WK_GOOGLE_ACTIVE_MAP');
$smartyVars['ps_img_dir'] = _PS_IMG_.'l/';
diff --git a/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl b/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl
index d9b047f82..8b659f94f 100644
--- a/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl
+++ b/modules/hotelreservationsystem/views/templates/admin/add_hotel/helpers/form/form.tpl
@@ -160,7 +160,7 @@
** {l s='If Hotel\'s country is not present in country list then import that country from' mod='hotelreservationsystem'}{l s='Localization' mod='hotelreservationsystem'}{l s='tab.' mod='hotelreservationsystem'}
\ No newline at end of file
diff --git a/themes/hotel-reservation-theme/modules/cashondelivery/views/templates/hook/index.php b/themes/hotel-reservation-theme/modules/cashondelivery/views/templates/hook/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/cashondelivery/views/templates/hook/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/cashondelivery/views/templates/hook/payment.tpl b/themes/hotel-reservation-theme/modules/cashondelivery/views/templates/hook/payment.tpl
deleted file mode 100644
index d2c601d19..000000000
--- a/themes/hotel-reservation-theme/modules/cashondelivery/views/templates/hook/payment.tpl
+++ /dev/null
@@ -1,34 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
diff --git a/themes/hotel-reservation-theme/modules/cashondelivery/views/templates/index.php b/themes/hotel-reservation-theme/modules/cashondelivery/views/templates/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/cashondelivery/views/templates/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/favoriteproducts/index.php b/themes/hotel-reservation-theme/modules/favoriteproducts/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/favoriteproducts/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/favoriteproducts/views/index.php b/themes/hotel-reservation-theme/modules/favoriteproducts/views/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/favoriteproducts/views/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/front/favoriteproducts-account.tpl b/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/front/favoriteproducts-account.tpl
deleted file mode 100644
index 0e9fa54ad..000000000
--- a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/front/favoriteproducts-account.tpl
+++ /dev/null
@@ -1,77 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-{capture name=path}
-
- {l s='My account' mod='favoriteproducts'}
-
- {$navigationPipe}
- {l s='My favorite products' mod='favoriteproducts'}
-{/capture}
-
-
diff --git a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/front/index.php b/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/front/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/front/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/favoriteproducts-extra.tpl b/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/favoriteproducts-extra.tpl
deleted file mode 100644
index 9c303eb0b..000000000
--- a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/favoriteproducts-extra.tpl
+++ /dev/null
@@ -1,42 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-{if !$isCustomerFavoriteProduct AND $is_logged}
-
- {l s='Add this product to my list of favorites.' mod='favoriteproducts'}
-
-{/if}
-{if $isCustomerFavoriteProduct AND $is_logged}
-
- {l s='Remove this product from my favorite\'s list. ' mod='favoriteproducts'}
-
-{/if}
-
-
- {l s='Remove this product from my favorite\'s list. ' mod='favoriteproducts'}
-
-
- {l s='Add this product to my list of favorites.' mod='favoriteproducts'}
-
\ No newline at end of file
diff --git a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/favoriteproducts-header.tpl b/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/favoriteproducts-header.tpl
deleted file mode 100644
index 16dff0abd..000000000
--- a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/favoriteproducts-header.tpl
+++ /dev/null
@@ -1,31 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-{strip}
-{addJsDef favorite_products_url_add=$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], Tools::usingSecureMode())|escape:'quotes':'UTF-8'}
-{addJsDef favorite_products_url_remove=$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], Tools::usingSecureMode())|escape:'quotes':'UTF-8'}
-{if isset($smarty.get.id_product)}
- {addJsDef favorite_products_id_product=$smarty.get.id_product|intval}
-{/if}
-{/strip}
\ No newline at end of file
diff --git a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/index.php b/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/my-account.tpl b/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/my-account.tpl
deleted file mode 100644
index 0e3289348..000000000
--- a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/hook/my-account.tpl
+++ /dev/null
@@ -1,37 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
diff --git a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/index.php b/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/favoriteproducts/views/templates/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/loyalty/index.php b/themes/hotel-reservation-theme/modules/loyalty/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/loyalty/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/loyalty/views/index.php b/themes/hotel-reservation-theme/modules/loyalty/views/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/loyalty/views/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/loyalty/views/templates/front/index.php b/themes/hotel-reservation-theme/modules/loyalty/views/templates/front/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/loyalty/views/templates/front/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/loyalty/views/templates/front/loyalty.tpl b/themes/hotel-reservation-theme/modules/loyalty/views/templates/front/loyalty.tpl
deleted file mode 100644
index 0fa112b9a..000000000
--- a/themes/hotel-reservation-theme/modules/loyalty/views/templates/front/loyalty.tpl
+++ /dev/null
@@ -1,248 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-{capture name=path}{l s='My account' mod='loyalty'}{$navigationPipe}{l s='My loyalty points' mod='loyalty'}{/capture}
-
-
{l s='Vouchers generated here are usable in the following categories : ' mod='loyalty'}
-{if $categories}{$categories}{else}{l s='All' mod='loyalty'}{/if}
diff --git a/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/index.php b/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/my-account.tpl b/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/my-account.tpl
deleted file mode 100644
index c18bc3a62..000000000
--- a/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/my-account.tpl
+++ /dev/null
@@ -1,30 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
-
-
\ No newline at end of file
diff --git a/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/product.tpl b/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/product.tpl
deleted file mode 100644
index 4373b83ec..000000000
--- a/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/product.tpl
+++ /dev/null
@@ -1,52 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
- {if $points}
- {l s='By buying this product you can collect up to' mod='loyalty'} {$points}
- {if $points > 1}{l s='loyalty points' mod='loyalty'}{else}{l s='loyalty point' mod='loyalty'}{/if}.
- {l s='Your cart will total' mod='loyalty'} {$total_points}
- {if $total_points > 1}{l s='loyalty points' mod='loyalty'}{else}{l s='loyalty point' mod='loyalty'}{/if} {l s='that can be converted into a voucher of' mod='loyalty'}
- {convertPrice price=$voucher}.
- {else}
- {if isset($no_pts_discounted) && $no_pts_discounted == 1}
- {l s='No reward points for this product because there\'s already a discount.' mod='loyalty'}
- {else}
- {l s='No reward points for this product.' mod='loyalty'}
- {/if}
- {/if}
-
-
-{addJsDef point_rate=$point_rate}
-{addJsDef point_value=$point_value}
-{addJsDef points_in_cart=$points_in_cart}
-{addJsDef none_award=$none_award}
-
-{addJsDefL name=loyalty_willcollect}{l s='By buying this product you can collect up to' mod='loyalty' js=1}{/addJsDefL}
-{addJsDefL name=loyalty_already}{l s='No reward points for this product because there\'s already a discount.' mod='loyalty' js=1}{/addJsDefL}
-{addJsDefL name=loyalty_nopoints}{l s='No reward points for this product.' mod='loyalty' js=1}{/addJsDefL}
-{addJsDefL name=loyalty_points}{l s='loyalty points' mod='loyalty' js=1}{/addJsDefL}
-{addJsDefL name=loyalty_point}{l s='loyalty point' mod='loyalty' js=1}{/addJsDefL}
-{addJsDefL name=loyalty_total}{l s='Your cart will total' mod='loyalty' js=1}{/addJsDefL}
-{addJsDefL name=loyalty_converted}{l s='that can be converted into a voucher of' mod='loyalty' js=1}{/addJsDefL}
\ No newline at end of file
diff --git a/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/shopping-cart.tpl b/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/shopping-cart.tpl
deleted file mode 100644
index dea995c2f..000000000
--- a/themes/hotel-reservation-theme/modules/loyalty/views/templates/hook/shopping-cart.tpl
+++ /dev/null
@@ -1,38 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
-
-
- {if $points > 0}
- {l s='By checking out this shopping cart you can collect up to' mod='loyalty'}
- {if $points > 1}{l s='%d loyalty points' sprintf=$points mod='loyalty'}{else}{l s='%d loyalty point' sprintf=$points mod='loyalty'}{/if}
- {l s='that can be converted into a voucher of' mod='loyalty'} {convertPrice price=$voucher}{if isset($guest_checkout) && $guest_checkout}*{/if}.
- {if isset($guest_checkout) && $guest_checkout}* {l s='Not available for Instant checkout order' mod='loyalty'}{/if}
- {else}
- {l s='Add some products to your shopping cart to collect some loyalty points.' mod='loyalty'}
- {/if}
-
-
\ No newline at end of file
diff --git a/themes/hotel-reservation-theme/modules/loyalty/views/templates/index.php b/themes/hotel-reservation-theme/modules/loyalty/views/templates/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/loyalty/views/templates/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/mailalerts/index.php b/themes/hotel-reservation-theme/modules/mailalerts/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/mailalerts/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/mailalerts/views/index.php b/themes/hotel-reservation-theme/modules/mailalerts/views/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/mailalerts/views/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/front/index.php b/themes/hotel-reservation-theme/modules/mailalerts/views/templates/front/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/front/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/front/mailalerts-account.tpl b/themes/hotel-reservation-theme/modules/mailalerts/views/templates/front/mailalerts-account.tpl
deleted file mode 100644
index 47fe5199d..000000000
--- a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/front/mailalerts-account.tpl
+++ /dev/null
@@ -1,49 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-{capture name=path}{l s='My account' mod='mailalerts'}{$navigationPipe}{l s='My alerts' mod='mailalerts'}{/capture}
-
-{addJsDef mailalerts_url_remove=$link->getModuleLink('mailalerts', 'actions', ['process' => 'remove'])|escape:'quotes':'UTF-8'}
\ No newline at end of file
diff --git a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/hook/index.php b/themes/hotel-reservation-theme/modules/mailalerts/views/templates/hook/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/hook/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/hook/my-account.tpl b/themes/hotel-reservation-theme/modules/mailalerts/views/templates/hook/my-account.tpl
deleted file mode 100644
index 3e4ad1c24..000000000
--- a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/hook/my-account.tpl
+++ /dev/null
@@ -1,31 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
diff --git a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/hook/product.tpl b/themes/hotel-reservation-theme/modules/mailalerts/views/templates/hook/product.tpl
deleted file mode 100644
index df64e2422..000000000
--- a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/hook/product.tpl
+++ /dev/null
@@ -1,44 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @version Release: $Revision$
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
- {if isset($email) AND $email}
-
-
-
- {/if}
- {l s='Notify me when available' mod='mailalerts'}
-
-{strip}
-{addJsDef oosHookJsCodeFunctions=array('oosHookJsCodeMailAlert')}
-{addJsDef mailalerts_url_check=$link->getModuleLink('mailalerts', 'actions', ['process' => 'check'])}
-{addJsDef mailalerts_url_add=$link->getModuleLink('mailalerts', 'actions', ['process' => 'add'])}
-
-{addJsDefL name='mailalerts_placeholder'}{l s='your@email.com' mod='mailalerts' js=1}{/addJsDefL}
-{addJsDefL name='mailalerts_registered'}{l s='Request notification registered' mod='mailalerts' js=1}{/addJsDefL}
-{addJsDefL name='mailalerts_already'}{l s='You already have an alert for this product' mod='mailalerts' js=1}{/addJsDefL}
-{addJsDefL name='mailalerts_invalid'}{l s='Your e-mail address is invalid' mod='mailalerts' js=1}{/addJsDefL}
-{/strip}
-
diff --git a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/index.php b/themes/hotel-reservation-theme/modules/mailalerts/views/templates/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/mailalerts/views/templates/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/productcomments/index.php b/themes/hotel-reservation-theme/modules/productcomments/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/productcomments/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/productcomments/productcomments-extra.tpl b/themes/hotel-reservation-theme/modules/productcomments/productcomments-extra.tpl
deleted file mode 100644
index 11cbb1e8c..000000000
--- a/themes/hotel-reservation-theme/modules/productcomments/productcomments-extra.tpl
+++ /dev/null
@@ -1,64 +0,0 @@
- {*
-* 2007-2015 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2015 PrestaShop SA
-* @version Release: $Revision$
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-{if (!$content_only && (($nbComments == 0 && $too_early == false && ($is_logged || $allow_guests)) || ($nbComments != 0)))}
-
-{/if}
-
diff --git a/themes/hotel-reservation-theme/modules/productcomments/productcomments.tpl b/themes/hotel-reservation-theme/modules/productcomments/productcomments.tpl
deleted file mode 100644
index e9a73e1f7..000000000
--- a/themes/hotel-reservation-theme/modules/productcomments/productcomments.tpl
+++ /dev/null
@@ -1,266 +0,0 @@
-{*
-* 2007-2015 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newersend_friend_form_content
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2015 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
- {if (!$too_early AND ($is_logged OR $allow_guests))}
-
{l s='No customer reviews for the moment.' mod='productcomments'}
- {/if}
-
-
-{strip}
-{addJsDef productcomments_controller_url=$productcomments_controller_url|@addcslashes:'\''}
-{addJsDef moderation_active=$moderation_active|boolval}
-{addJsDef productcomments_url_rewrite=$productcomments_url_rewriting_activated|boolval}
-{addJsDef secure_key=$secure_key}
-
-{addJsDefL name=confirm_report_message}{l s='Are you sure that you want to report this review?' mod='productcomments' js=1}{/addJsDefL}
-{addJsDefL name=productcomment_added}{l s='Your review has been added!' mod='productcomments' js=1}{/addJsDefL}
-{addJsDefL name=productcomment_added_moderation}{l s='Your review has been added and will be available once approved by a moderator.' mod='productcomments' js=1}{/addJsDefL}
-{addJsDefL name=productcomment_title}{l s='New Review' mod='productcomments' js=1}{/addJsDefL}
-{addJsDefL name=productcomment_ok}{l s='OK' mod='productcomments' js=1}{/addJsDefL}
-{/strip}
-
diff --git a/themes/hotel-reservation-theme/modules/productcomments/productcomments_reviews.tpl b/themes/hotel-reservation-theme/modules/productcomments/productcomments_reviews.tpl
deleted file mode 100644
index 2ab650171..000000000
--- a/themes/hotel-reservation-theme/modules/productcomments/productcomments_reviews.tpl
+++ /dev/null
@@ -1,42 +0,0 @@
-{*
-* 2007-2015 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2015 PrestaShop SA
-* @version Release: $Revision$
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-{if isset($nbComments) && $nbComments > 0}
-
-{/if}
diff --git a/themes/hotel-reservation-theme/modules/productcomments/productcomments_top.tpl b/themes/hotel-reservation-theme/modules/productcomments/productcomments_top.tpl
deleted file mode 100644
index e69de29bb..000000000
diff --git a/themes/hotel-reservation-theme/modules/productcomments/products-comparison.tpl b/themes/hotel-reservation-theme/modules/productcomments/products-comparison.tpl
deleted file mode 100644
index 89f915c4b..000000000
--- a/themes/hotel-reservation-theme/modules/productcomments/products-comparison.tpl
+++ /dev/null
@@ -1,103 +0,0 @@
-{*
-* 2007-2015 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2015 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
diff --git a/themes/hotel-reservation-theme/modules/productcomments/tab.tpl b/themes/hotel-reservation-theme/modules/productcomments/tab.tpl
deleted file mode 100644
index 26839bb90..000000000
--- a/themes/hotel-reservation-theme/modules/productcomments/tab.tpl
+++ /dev/null
@@ -1,28 +0,0 @@
-{*
-* 2007-2015 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2015 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
-
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/index.php b/themes/hotel-reservation-theme/modules/referralprogram/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/views/index.php b/themes/hotel-reservation-theme/modules/referralprogram/views/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/views/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/email.tpl b/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/email.tpl
deleted file mode 100644
index 3d4030e33..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/email.tpl
+++ /dev/null
@@ -1,26 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-{$content}
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/index.php b/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/program.tpl b/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/program.tpl
deleted file mode 100644
index 022c09ba2..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/program.tpl
+++ /dev/null
@@ -1,223 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-{capture name=path}{l s='My account' mod='referralprogram'}{$navigationPipe}{l s='Referral Program' mod='referralprogram'}{/capture}
-
-
{l s='Referral program' mod='referralprogram'}
-
-{if $error}
-
- {if $error == 'conditions not valided'}
- {l s='You need to agree to the conditions of the referral program!' mod='referralprogram'}
- {elseif $error == 'email invalid'}
- {l s='At least one e-mail address is invalid!' mod='referralprogram'}
- {elseif $error == 'name invalid'}
- {l s='At least one first name or last name is invalid!' mod='referralprogram'}
- {elseif $error == 'email exists'}
- {l s='Someone with this e-mail address has already been sponsored!' mod='referralprogram'}: {foreach from=$mails_exists item=mail}{$mail} {/foreach}
- {elseif $error == 'no revive checked'}
- {l s='Please mark at least one checkbox' mod='referralprogram'}
- {elseif $error == 'cannot add friends'}
- {l s='Cannot add friends to database' mod='referralprogram'}
- {/if}
-
-{/if}
-
-{if $invitation_sent}
-
- {if $nbInvitation > 1}
- {l s='E-mails have been sent to your friends!' mod='referralprogram'}
- {else}
- {l s='An e-mail has been sent to your friend!' mod='referralprogram'}
- {/if}
-
-{/if}
-
-{if $revive_sent}
-
- {if $nbRevive > 1}
- {l s='Reminder e-mails have been sent to your friends!' mod='referralprogram'}
- {else}
- {l s='A reminder e-mail has been sent to your friend!' mod='referralprogram'}
- {/if}
-
- {l s='Get a discount of %1$s for you and your friends by recommending this Website.' sprintf=[$discount] mod='referralprogram'}
-
- {if $canSendInvitations}
-
- {l s='It\'s quick and it\'s easy. Just fill in the first name, last name, and e-mail address(es) of your friend(s) in the fields below.' mod='referralprogram'}
- {if $orderQuantity > 1}
- {l s='When one of them makes at least %d orders, ' sprintf=$orderQuantity mod='referralprogram'}
- {else}
- {l s='When one of them makes at least %d order, ' sprintf=$orderQuantity mod='referralprogram'}
- {/if},
- {l s='he or she will receive a %1$s voucher and you will receive your own voucher worth %1$s.' sprintf=[$discount] mod='referralprogram'}
-
-
- {else}
-
- {l s='To become a sponsor, you need to have completed at least' mod='referralprogram'} {$orderQuantity} {if $orderQuantity > 1}{l s='orders' mod='referralprogram'}{else}{l s='order' mod='referralprogram'}{/if}.
-
- {/if}
-
-
-
- {if $pendingFriends AND $pendingFriends|@count > 0}
-
- {l s='These friends have not yet placed an order on this Website since you sponsored them, but you can try again! To do so, mark the checkboxes of the friend(s) you want to remind, then click on the button "Remind my friend(s)"' mod='referralprogram'}
-
-
- {else}
-
- {if $subscribeFriends AND $subscribeFriends|@count > 0}
- {l s='You have no pending invitations.' mod='referralprogram'}
- {else}
- {l s='You have not sponsored any friends yet.' mod='referralprogram'}
- {/if}
-
- {/if}
-
-
-
- {if $subscribeFriends AND $subscribeFriends|@count > 0}
-
- {l s='Here are sponsored friends who have accepted your invitation:' mod='referralprogram'}
-
-{addJsDefL name=ThickboxI18nClose}{l s='Close' mod='referralprogram' js=1}{/addJsDefL}
-{addJsDefL name=ThickboxI18nOrEscKey}{l s='or Esc key' mod='referralprogram' js=1}{/addJsDefL}
-{addJsDef tb_pathToImage=$img_ps_dir|cat:'loadingAnimation.gif'}
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/rules.tpl b/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/rules.tpl
deleted file mode 100644
index ff32ce07d..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/front/rules.tpl
+++ /dev/null
@@ -1,32 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
{l s='Referral program rules' mod='referralprogram'}
-{/if}
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/authentication.tpl b/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/authentication.tpl
deleted file mode 100644
index d721126df..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/authentication.tpl
+++ /dev/null
@@ -1,34 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
-
-
\ No newline at end of file
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/index.php b/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/my-account.tpl b/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/my-account.tpl
deleted file mode 100644
index f5eaaee8e..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/my-account.tpl
+++ /dev/null
@@ -1,30 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
-
-
\ No newline at end of file
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/order-confirmation.tpl b/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/order-confirmation.tpl
deleted file mode 100644
index 450ea29c8..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/order-confirmation.tpl
+++ /dev/null
@@ -1,29 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
- {l s='Thanks to your order, your sponsor %1$s %2$s will earn a voucher worth %3$d off when this order is confirmed.' sprintf=[$sponsor_firstname,$sponsor_lastname,$discount] mod='referralprogram'}
-
-
\ No newline at end of file
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/shopping-cart.tpl b/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/shopping-cart.tpl
deleted file mode 100644
index 4ebd5c929..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/hook/shopping-cart.tpl
+++ /dev/null
@@ -1,34 +0,0 @@
-{*
-* 2007-2017 PrestaShop
-*
-* NOTICE OF LICENSE
-*
-* This source file is subject to the Academic Free License (AFL 3.0)
-* that is bundled with this package in the file LICENSE.txt.
-* It is also available through the world-wide-web at this URL:
-* http://opensource.org/licenses/afl-3.0.php
-* If you did not receive a copy of the license and are unable to
-* obtain it through the world-wide-web, please send an email
-* to license@prestashop.com so we can send you a copy immediately.
-*
-* DISCLAIMER
-*
-* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
-* versions in the future. If you wish to customize PrestaShop for your
-* needs please refer to http://www.prestashop.com for more information.
-*
-* @author PrestaShop SA
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*}
-
-
-
-
- {l s='You have earned a voucher worth %s thanks to your sponsor!' sprintf=$discount_display mod='referralprogram'}
- {l s='Enter voucher name %s to receive the reduction on this order.' sprintf=$discount->name mod='referralprogram'}
- {l s='View your referral program.' mod='referralprogram'}
-
-
-
\ No newline at end of file
diff --git a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/index.php b/themes/hotel-reservation-theme/modules/referralprogram/views/templates/index.php
deleted file mode 100644
index 9a99a8662..000000000
--- a/themes/hotel-reservation-theme/modules/referralprogram/views/templates/index.php
+++ /dev/null
@@ -1,35 +0,0 @@
-
-* @copyright 2007-2017 PrestaShop SA
-* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-*/
-
-header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
-header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-
-header("Cache-Control: no-store, no-cache, must-revalidate");
-header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
-
-header("Location: ../");
-exit;
From c0efb6f4ba6bcbe65195e8d83440402375cf351f Mon Sep 17 00:00:00 2001
From: Abhishek Kumar
Date: Mon, 24 Jul 2023 17:23:34 +0530
Subject: [PATCH 010/528] Fix hotel permission issue when creating a hotel
---
.../hotelreservationsystem/classes/HotelBranchInformation.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/hotelreservationsystem/classes/HotelBranchInformation.php b/modules/hotelreservationsystem/classes/HotelBranchInformation.php
index b0cae319a..5cd6a73e0 100644
--- a/modules/hotelreservationsystem/classes/HotelBranchInformation.php
+++ b/modules/hotelreservationsystem/classes/HotelBranchInformation.php
@@ -139,7 +139,7 @@ class HotelBranchInformation extends ObjectModel
$query .= ' VALUES '.'(1, '.(int)$idHotel.', 1)';
/* Profile selection */
$profiles = Db::getInstance()->executeS('SELECT `id_profile` FROM '._DB_PREFIX_.'profile WHERE `id_profile` != 1');
- if (!$profiles || empty($profiles)) {
+ if ($profiles) {
foreach ($profiles as $profile) {
$access = 0;
if (isset($context->employee->id_profile)) {
From f6b56ae0d033bcb7d08d1f6e1ea86af517109618 Mon Sep 17 00:00:00 2001
From: Abhishek Kumar
Date: Mon, 24 Jul 2023 18:41:59 +0530
Subject: [PATCH 011/528] Fix PHP warning on Booking Carts > View page at back
office
---
classes/Carrier.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/classes/Carrier.php b/classes/Carrier.php
index 704763700..7e4fdc8fb 100644
--- a/classes/Carrier.php
+++ b/classes/Carrier.php
@@ -1300,7 +1300,8 @@ class CarrierCore extends ObjectModel
}
$id_address = (int)((!is_null($id_address_delivery) && $id_address_delivery != 0) ? $id_address_delivery : $cart->id_address_delivery);
- if ($id_address) {
+ $obj_address = new Address($id_address);
+ if (Validate::isLoadedObject($obj_address)) {
$id_zone = Address::getZoneById($id_address);
// Check the country of the address is activated
From 36d235316948a4a0317c936a1a85bd5c640abbec Mon Sep 17 00:00:00 2001
From: Abhishek Kumar
Date: Mon, 31 Jul 2023 11:30:23 +0530
Subject: [PATCH 012/528] Fix filter reset button on Manage Room Types page
---
controllers/admin/AdminProductsController.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php
index bef67be10..542c4bdb6 100644
--- a/controllers/admin/AdminProductsController.php
+++ b/controllers/admin/AdminProductsController.php
@@ -2354,7 +2354,7 @@ class AdminProductsControllerCore extends AdminController
$helper->source = $this->context->link->getAdminLink('AdminStats').'&ajax=1&action=getKpi&kpi=disabled_room_types';
$helper->refresh = (bool)(ConfigurationKPI::get('DISABLED_ROOM_TYPES_EXPIRE') < $time);
$helper->tooltip = $this->l('X% of your room types are disabled and not visible to your customers', null, null, false);
- $helper->href = Context::getContext()->link->getAdminLink('AdminProducts').'&productFilter_active=0&submitFilterproduct=1';
+ $helper->href = Context::getContext()->link->getAdminLink('AdminProducts').'&productFilter_sa!active=0&submitFilterproduct=1';
$kpis[] = $helper->generate();
$helper = new HelperKpiRow();
From 9bf3c567e39f0dd9a0aa095a83445f906bd45bad Mon Sep 17 00:00:00 2001
From: Abhishek Kumar
Date: Mon, 31 Jul 2023 12:01:19 +0530
Subject: [PATCH 013/528] Fix PHP warning on Preferences > General page
---
classes/Tools.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/classes/Tools.php b/classes/Tools.php
index c48c02177..58ab06580 100644
--- a/classes/Tools.php
+++ b/classes/Tools.php
@@ -3603,6 +3603,8 @@ exit;
public static function purifyHTML($html, $uri_unescape = null, $allow_style = false)
{
+ require_once(_PS_TOOL_DIR_.'htmlpurifier/HTMLPurifier.auto.php');
+
static $use_html_purifier = null;
static $purifier = null;
From c0d436cf73d5ea739f43f8f16ee28af189afd5fa Mon Sep 17 00:00:00 2001
From: Abhishek Kumar
Date: Mon, 31 Jul 2023 12:08:44 +0530
Subject: [PATCH 014/528] Allow 0 deduction value for refund rules
---
.../controllers/admin/AdminOrderRefundRulesController.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php b/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php
index ffcf6ec19..c03062ce6 100644
--- a/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php
+++ b/modules/hotelreservationsystem/controllers/admin/AdminOrderRefundRulesController.php
@@ -213,10 +213,10 @@ class AdminOrderRefundRulesController extends ModuleAdminController
if ($paymentType == '') {
$this->errors[] = $this->l('Invalid payment type.');
}
- if (!$fullPayAmount) {
+ if (!$fullPayAmount && floatval($fullPayAmount) != 0) {
$this->errors[] = $this->l('Enter deduction value for full payment.');
}
- if (!$advPayAmount) {
+ if (!$advPayAmount && floatval($advPayAmount) != 0) {
$this->errors[] = $this->l('Enter deduction value for advance payment.');
}
From afcf7821f3dc6ebc75c487f4679426a4c706368a Mon Sep 17 00:00:00 2001
From: Abhishek Kumar
Date: Mon, 31 Jul 2023 12:24:01 +0530
Subject: [PATCH 015/528] Fix new voucher generation issue on order creation
---
classes/PaymentModule.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php
index 3e89319f2..5e5fb6f52 100644
--- a/classes/PaymentModule.php
+++ b/classes/PaymentModule.php
@@ -646,17 +646,17 @@ abstract class PaymentModuleCore extends Module
// THEN
// The voucher is cloned with a new value corresponding to the remainder
$reduction_amount_converted = $cart_rule['obj']->reduction_amount;
- if ((int) $cart_rule['obj']->reduction_currency !== (int) $cart->id_currency) {
+ if ((int) $cart_rule['obj']->reduction_currency !== (int) $this->context->cart->id_currency) {
$reduction_amount_converted = Tools::convertPriceFull(
$cart_rule['obj']->reduction_amount,
new Currency($cart_rule['obj']->reduction_currency),
- new Currency($cart->id_currency)
+ new Currency($this->context->cart->id_currency)
);
}
if ($cart_rule['obj']->reduction_tax) {
- $remaining_amount = $reduction_amount_converted - $values['tax_incl'];
+ $remaining_amount = $values['tax_incl'] - $order->total_products_wt;
} else {
- $remaining_amount = $reduction_amount_converted - $values['tax_excl'];
+ $remaining_amount = $values['tax_excl'] - $order->total_products;
}
if ($remaining_amount > 0 && $cart_rule['obj']->partial_use == 1 && $reduction_amount_converted > 0) {
// Create a new voucher from the original
From 7bb40c1641d3b8137dec45e5124d6a2df888ad5e Mon Sep 17 00:00:00 2001
From: Abhishek Kumar
Date: Mon, 31 Jul 2023 12:28:48 +0530
Subject: [PATCH 016/528] Open room type detail page in same tab from Hotel
Rooms block
---
.../wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl b/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl
index e19ea0e50..fdcb398f2 100644
--- a/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl
+++ b/modules/wkhotelroom/views/templates/hook/hotelRoomDisplayBlock.tpl
@@ -58,7 +58,7 @@
{$roomDisplay.description}