Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Basic workflow for a touristic website:

Homepage:

We create a search bar with 3 inputs: arrival_date, departure_date and people.

The button “Search availability” will go to a new page with the parameters for the inputs, where we will show the list of available properties.

List of properties:

We read the parameters of the URL.

1/ If the parameters exist → we will show the available properties for those dates / people.

2/ If there are no parameters → we will show all the properties in the system.

Option 1: Show available properties:

First, we call DailyAvailability()

DailyAvailability(“2022-01-01”, “2022-01-05”, 3, “en”, “test_user”, “test_psw”)

This will return the list of available properties in those dates, with all the information except prices.

Then, we call DailyRates for each one in a recursive function.

DailyRates(1011, “2022-01-01”, “2022-01-05”, 3, “en”, “test_user”, “test_psw”)

This will return de prices for that property and dates.

  1. Title → DailyAvailability.headline or DailyAvailability.lodging_name

  2. Description → DailyAvailability.description

  3. Photo →

  4. Main features:

    1. Capacity → DailyAvailability.maximum_capacity

    2. Bedrooms → DailyAvailability.number_of_rooms

    3. Surface → DailyAvailability.surface

    4. Wifi → DailyAvailability.lodging_equipment.wifi or DailyAvailability.lodging_equipment.free_wifi

  5. Price → DailyRates.price

Other important fields from DailyAvailability:

  • lodging_id → you must read this to access the DailyRates function

  • lodging_type → useful to filter by apartment / villa

  • city → useful to filter by destination

  • latitude & longitude → necessary if you want to create a Google Maps

  • release → useful if your users can’t book for today but starting tomorrow

  • rating & review → useful if you want to put the stars + reviews here

Other important fields from DailyRates:

  • closed_to_arrival → if this is true, that property can’t be booked with the arrival_date, even if it is available. You should put a message informing the user of this restriction.

  • closed_to_departure → if this is true, that property can’t be booked with the departure_date, even if it is available. You should put a message informing the user of this restriction.

  • minimum_stay → you should check the nights of the search. If search_nights < minimum_stay the reservation can’t be made. You should put a message informing the user of this restriction.

Option 2: Show all properties:

Without filtering for availability, when the user goes through the menu and not through the search bar.

We call Catalog()

Catalog("", 0, "en", "test_usr", "test_pwd")

The parameters will be almost the same that when doing a search.

The only thing that changes is the price.

We will not show the price of the stay, because we don’t have dates and thus we can’t calculate the prices for a specific interval of dates.

What we can show is the minimum_price of that property.

Catalog.minimum_rate → this will give us the minimum price, then we can put something like:

“from 70€/night”

Property page:

COMING SOON


Advanced workflow for a touristic and long-term rental website:

COMING SOON

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.