Merge pull request #1571 from vishal-singh-webkul/gli-2839_2

Fixed: Price filter related issue in the front office on the room type listing page.
This commit is contained in:
Rohit Jain
2025-12-31 13:12:12 +05:30
committed by GitHub

View File

@@ -1718,7 +1718,7 @@ class HotelBookingDetail extends ObjectModel
}
}
$productFeaturePrice = HotelRoomTypeFeaturePricing::getRoomTypeFeaturePricesPerDay($value['id_product'], $date_from, $date_to, self::useTax(), 0, 0, 0, 0, 1, 1, $bookingParams['occupancy']);
if (!empty($price) && ($price['from'] > $productFeaturePrice || $price['to'] < $productFeaturePrice)) {
if (!empty($price) && ((float) $price['from'] > $productFeaturePrice || (float) $price['to'] < $productFeaturePrice)) {
unset($bookingData['rm_data'][$key]);
continue;
}