From 5f118933c532e08d32dec07009fb8ce4373c33b8 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 28 Jan 2025 13:32:57 +0530 Subject: [PATCH 1/3] Removed: non required validation while validating the cart bookings --- .../hotelreservationsystem/classes/HotelCartBookingData.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/hotelreservationsystem/classes/HotelCartBookingData.php b/modules/hotelreservationsystem/classes/HotelCartBookingData.php index 0cd9c678d..7f8a3e151 100644 --- a/modules/hotelreservationsystem/classes/HotelCartBookingData.php +++ b/modules/hotelreservationsystem/classes/HotelCartBookingData.php @@ -1032,9 +1032,7 @@ class HotelCartBookingData extends ObjectModel $preparationTime = HotelOrderRestrictDate::getPreparationTime($roomData['id_hotel']); if ($preparationTime !== false) { $minOrderDate = date('Y-m-d', strtotime('+'. ($preparationTime) .' days')); - if (strtotime($minOrderDate) > strtotime($roomData['date_from']) - || strtotime($minOrderDate . ' +1 day')> strtotime($roomData['date_to']) - ) { + if (strtotime($minOrderDate) > strtotime($roomData['date_from'])) { $objHotelBranchInformation = new HotelBranchInformation( $roomData['id_hotel'], $context->language->id From 461d496c98d0cbae1ee753027c6a5b9a097c3db0 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 28 Jan 2025 13:34:31 +0530 Subject: [PATCH 2/3] Updated the date format used while getting the room type booking extra demands --- .../hotelreservationsystem/classes/HotelBookingDemands.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/hotelreservationsystem/classes/HotelBookingDemands.php b/modules/hotelreservationsystem/classes/HotelBookingDemands.php index f4f51bbef..416ec2d67 100644 --- a/modules/hotelreservationsystem/classes/HotelBookingDemands.php +++ b/modules/hotelreservationsystem/classes/HotelBookingDemands.php @@ -103,8 +103,8 @@ class HotelBookingDemands extends ObjectModel $sql .= ' AND hb.`id_room`='.(int)$idRoom; } if ($dateFrom && $dateTo) { - $dateFrom = date('Y-m-d', strtotime($dateFrom)); - $dateTo = date('Y-m-d', strtotime($dateTo)); + $dateFrom = date('Y-m-d H:i:s', strtotime($dateFrom)); + $dateTo = date('Y-m-d H:i:s', strtotime($dateTo)); $sql .= ' AND hb.`date_from`=\''.pSQL($dateFrom).'\' AND hb.`date_to`= \''.pSQL($dateTo).'\''; } From 31a369c78d69d800de34c516075a7375628329fa Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Wed, 5 Feb 2025 18:29:36 +0530 Subject: [PATCH 3/3] Added: data in double inverted commas --- .../hotel-reservation-theme/js/modules/blockcart/ajax-cart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/hotel-reservation-theme/js/modules/blockcart/ajax-cart.js b/themes/hotel-reservation-theme/js/modules/blockcart/ajax-cart.js index d0698fa3e..5a9b17ee5 100644 --- a/themes/hotel-reservation-theme/js/modules/blockcart/ajax-cart.js +++ b/themes/hotel-reservation-theme/js/modules/blockcart/ajax-cart.js @@ -939,7 +939,7 @@ var ajaxCart = { content += '' + date_diff_v.num_rm + ''; content += '' + formatCurrency(parseFloat(date_diff_v.amount) + parseFloat(date_diff_v.demand_price), currency_format, currency_sign, currency_blank) + ''; content += ''; - content += ''; + content += ''; content += ''; content += ''; });