Deprecated - Booking Mask

The booking form must follow these names for input:

<!-- required: attr action / .js-booking-form css class -->
<form action="{{website.item.booking_mask_url}}" method="get" target="_blank" class="js-booking-form">
    <input type="text" name="datein"> <!-- name = datein => format MM/DD/YYYY -->
    <input type="text" name="dateout"> <!-- name = dateout => format MM/DD/YYYY -->
    <input type="text" name="rooms"> <!-- name = rooms -->
    <input type="text" name="adults"> <!-- name = adults -->
    <input type="text" name="children"> <!-- name = children -->
    <input type="text" name="promoCode"> <!-- name = promoCode -->
</form>

If this is a booking mask for a group website:

<select name="hotel">
    #$loop|{hotel}|{a}| $#
        <option value="{a.booking_mask_url}">{a.name}</option>
    #$/loop|{hotel}|{a}| $#
</select>

You can change the type of the inputs, make the choice to remove some of them or put them as hidden field, but keep the same name for inputs, because it will be used later by a JS code to build the booking mask URL.

Last updated