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
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) {