Skip to content

Commit

Permalink
totalAvailableRooms issue resolved on room detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshya-webkul committed Feb 24, 2023
1 parent 7f7122d commit bda0b5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/front/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ public function assignBookingFormVars(
$quantity = 1;
}

$totalAvailableRooms = 0;
if ($hotelRoomData = $objBookingDetail->DataForFrontSearch($bookingParams)) {
$totalAvailableRooms = $hotelRoomData['stats']['num_avail'];
$quantity = ($quantity > $totalAvailableRooms) ? $totalAvailableRooms : $quantity;
Expand Down

0 comments on commit bda0b5d

Please sign in to comment.