Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Promotion codes

  • Specific room or package button

Continue to

Options

Options can be inserted in the form like

Code Block
languagehtml
<form method="post" action="https://scripts.hoteliers.com/api/v1/book-form" target="_blank" class="hoteliers-book-form">
    <input type="hidden" name="chain" value="{chain}">
    
    <!-- INSERT OPTIONS HERE -->
    
    <button type="submit" class="hoteliers-book-form__button">Book now</button>
</form>

Table of Contents

Language

Please see Language section for hotels.

Arrival and departure

Please see Arrival and departure section for hotels.

Google Analytics variables

Please see Google Analytics variables section for hotels.

Advanced usage

Hotel selector using HTML only

By default if you pass both an hotel and chain. The hotel will be prioritized.

You can use this to make a hotel selector like here: DEMO

Code Block

languagehtml
<form method="post" action="https://scripts.hoteliers.com/api/v1/book-form" target="_blank" class="hoteliers-book-form"> <!-- Put chain hotel here --> <input type="hidden" name="chain" value="36"> <!-- Add select with hotels --> <select name="hotel"> <option value="">All Hotels</option> <option value="8">Demo hotel 1</option> <option value="2270">Demo hotel 2</option> </select> <button type="submit" class="hoteliers-book-form__button">Book now</button> </form>Extra options (for chains).