From 3e49492af7abf257248c91c471dde45c2ce2fc03 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 12 Jan 2023 13:02:44 +0530 Subject: [PATCH] Fix ajax page not found issue on room type detail page --- themes/hotel-reservation-theme/js/product.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/hotel-reservation-theme/js/product.js b/themes/hotel-reservation-theme/js/product.js index fc5b6c5a7..9554e3d48 100644 --- a/themes/hotel-reservation-theme/js/product.js +++ b/themes/hotel-reservation-theme/js/product.js @@ -1237,8 +1237,8 @@ var BookingForm = { var data = { id_product: parseInt($('#product_page_product_id').val()), - date_from: $('#room_check_in').val(), - date_to: $('#room_check_out').val(), + date_from: $.datepicker.formatDate('yy-mm-dd', $.datepicker.parseDate('dd-mm-yy', $('#room_check_in').val())), + date_to: $.datepicker.formatDate('yy-mm-dd', $.datepicker.parseDate('dd-mm-yy', $('#room_check_out').val())), quantity: quantity, room_type_demands: JSON.stringify(getRoomsExtraDemands()), };