From e8bceeff2c05f224a8e3acc63c0706946556f220 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Tue, 8 Oct 2024 14:48:55 +0530 Subject: [PATCH 1/2] Fixed: Unable to book multiple rooms from room type page when quantity wise booking is enabled --- cache/smarty/cache/index.php | 4 ++-- cache/smarty/compile/index.php | 4 ++-- controllers/front/ProductController.php | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cache/smarty/cache/index.php b/cache/smarty/cache/index.php index 369a7a3f3..ffdebb428 100644 --- a/cache/smarty/cache/index.php +++ b/cache/smarty/cache/index.php @@ -1,6 +1,6 @@ -* @copyright 2007-2014 PrestaShop SA +* @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ diff --git a/cache/smarty/compile/index.php b/cache/smarty/compile/index.php index 369a7a3f3..ffdebb428 100644 --- a/cache/smarty/compile/index.php +++ b/cache/smarty/compile/index.php @@ -1,6 +1,6 @@ -* @copyright 2007-2014 PrestaShop SA +* @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ diff --git a/controllers/front/ProductController.php b/controllers/front/ProductController.php index d9222203d..83d3bb857 100644 --- a/controllers/front/ProductController.php +++ b/controllers/front/ProductController.php @@ -1277,6 +1277,8 @@ class ProductControllerCore extends FrontController if (!Validate::isOccupancy($occupancy)) { $occupancy = array(); } + } else { + $occupancy = Tools::getValue('qty', 1); } $roomTypeDemands = Tools::getValue('room_type_demands'); $roomServiceProducts = Tools::getValue('room_service_products'); From 81b9a9de095037a8aed695c66d4cbf736218bf67 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Tue, 8 Oct 2024 19:20:02 +0530 Subject: [PATCH 2/2] undo index file change --- cache/smarty/cache/index.php | 4 ++-- cache/smarty/compile/index.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cache/smarty/cache/index.php b/cache/smarty/cache/index.php index ffdebb428..369a7a3f3 100644 --- a/cache/smarty/cache/index.php +++ b/cache/smarty/cache/index.php @@ -1,6 +1,6 @@ -* @copyright 2007-2015 PrestaShop SA +* @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ diff --git a/cache/smarty/compile/index.php b/cache/smarty/compile/index.php index ffdebb428..369a7a3f3 100644 --- a/cache/smarty/compile/index.php +++ b/cache/smarty/compile/index.php @@ -1,6 +1,6 @@ -* @copyright 2007-2015 PrestaShop SA +* @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */