From 2ba13e30bae256fb986ae05908d246e047602836 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Fri, 27 Sep 2024 12:59:13 +0530 Subject: [PATCH 1/2] Fixed: Unable to update room occupancy while booking from room type page --- themes/hotel-reservation-theme/js/product.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/themes/hotel-reservation-theme/js/product.js b/themes/hotel-reservation-theme/js/product.js index 05dcfcfbf..4cfd83222 100644 --- a/themes/hotel-reservation-theme/js/product.js +++ b/themes/hotel-reservation-theme/js/product.js @@ -1394,12 +1394,9 @@ var BookingForm = { } }, getFormData: function () { - var formData = new FormData($('form#booking-form').get(0)); + let formData = new FormData($('form#booking-form').get(0)); formData.append('room_type_demands', JSON.stringify(getRoomsExtraDemands())); formData.append('room_service_products', JSON.stringify(getRoomsServiceProducts())); - if (occupancy = getBookingOccupancy()) { - formData.append('occupancy', occupancy); - } return formData; }, refresh: function(resetOccupancy = false) { From 84dcd9eb77577c8d12d57ac8cb7ec4cd2b46ad73 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Thu, 3 Oct 2024 20:23:39 +0530 Subject: [PATCH 2/2] updated booking form occupancy field input name --- themes/hotel-reservation-theme/_partials/occupancy_field.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/hotel-reservation-theme/_partials/occupancy_field.tpl b/themes/hotel-reservation-theme/_partials/occupancy_field.tpl index d26d99dc5..1ffa6f022 100644 --- a/themes/hotel-reservation-theme/_partials/occupancy_field.tpl +++ b/themes/hotel-reservation-theme/_partials/occupancy_field.tpl @@ -120,7 +120,7 @@
- +
{$room_type_info['adults']}
@@ -143,7 +143,7 @@
- +
0