From 84b0a59a2c2d6b684ae001d9ec61b7bbfd9b7822 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 20 Sep 2023 11:00:16 +0530 Subject: [PATCH 1/4] Add an option to allow some room types to be booked only from back office --- .../controllers/products/informations.tpl | 21 ++++++++++++++++ classes/Cart.php | 2 +- controllers/front/OrderOpcController.php | 3 +++ controllers/front/ProductController.php | 2 +- .../classes/HotelHelper.php | 1 + .../classes/HotelRoomType.php | 25 +++++++++++++++++-- themes/hotel-reservation-theme/product.tpl | 2 +- 7 files changed, 51 insertions(+), 5 deletions(-) diff --git a/admin/themes/default/template/controllers/products/informations.tpl b/admin/themes/default/template/controllers/products/informations.tpl index 89ff4ac8c..e2d0e1307 100644 --- a/admin/themes/default/template/controllers/products/informations.tpl +++ b/admin/themes/default/template/controllers/products/informations.tpl @@ -273,6 +273,27 @@ +
+ +
+ + show_at_front || !$product->isAssociatedToShop()}checked="checked"{/if}/> + + show_at_front && $product->isAssociatedToShop()}checked="checked"{/if}/> + + + +
+
+