...
The button “Search availability” will go link to a new page with the parameters for the inputs, where we will show the list of available properties.
...
Option 1: If the parameters exist → we will show the available properties for those dates / people, with the total price of the stay (nights + cleaning fee if any + booking fee in any).
Option 2: If there are no parameters → we will show all the properties in the system that have the minimum requirements. We can show the minimum price, so that the user has an idea, but it’s optional.
...
Option 1: Show available properties:
...
Webservice | Field | Description |
---|---|---|
DailyAvailability | lodging_id | You must read this to access the DailyRates function |
DailyAvailability | lodging_type | Useful to filter by apartment / villa |
DailyAvailability | city | Useful to filter by destination |
DailyAvailability | latitude & longitude | Necessary if you want to create a Google Maps |
DailyAvailability | release | Necessary if the properties have different release ** |
DailyAvailability | rating & review | Useful if you want to put the stars + reviews here |
DailyRates | closed_to_arrival | If closed_to_arrival=true, that property can’t be booked with the arrival_date, even if it’s available. You should put a message informing the user. |
DailyRates | closed_to_departure | If closed_to_departure=true, that property can’t be booked with the departure_date, even if it’s available. You should put a message informing the user. |
DailyRates | minimum_stay | If search nights < minimum_stay, the reservation can’t be made for that number of nights. You should put a message informing the user. |
Info |
---|
** What is the release? It’s the number of days from today to the first possible check-in date. For example:
The most normal values for release are 0 (accepts check-ins for today) or 1 (accepts check-ins starting tomorrow), but there can be others. When should we read this value? If the Property Manager uses the same release for all the catalogue (let’s say release=1), the easiest way to deal with this is to put this restriction directly in the calendar datepicker. If the user can’t pick today in the calendar, then they can’t make a reservation for today. But, if the Property Manager has different release values for each property, then we can’t use this solution. In this case, we must read the “release” value in DailyAvailability. If the arrival_date is 16/09/2021, and today is 16/09/2021, and the property has release=1, then we show a message with something like: “This apartment is not available for a check-in. Contact us to ask more information”. |
...
What we can show is the minimum _ price of the year for that property.
Catalog.minimum_rate → this will give us the minimum price, then we can put something like:
...