Options can be inserted in the <form>
tags like this:
<form method="get" action="https://scripts.hoteliers.com/api/v1/book-form" target="_blank" class="hoteliers-book-form"> <input type="hidden" name="hotel" value="{hotel}"> <!-- INSERT OPTIONS HERE --> <button type="submit" class="hoteliers-book-form__button">Book now</button> </form> |
<input type="hidden" name="promotion_code" value="mycode1234"> |
Codes cannot be validated on your website. Invalid codes don’t show any errors to the visitor currently either.
You can directly link to a specific room or package. This is useful if your visitor is on a detail page of a specific room.
For rooms:
<input type="hidden" name="room_id" value="{room_id}"> |
For Packages:
<input type="hidden" name="package_id" value="{package_id}"> |
You can only link to 1 room or 1 package |
Arrival and departure dates can be added. Both dates must be YYYY-mm-dd
format.
<input type="hidden" name="arrival" value="2020-08-20"> <input type="hidden" name="departure" value="2020-08-21"> |
The above HTML creates hidden date fields. The person who created your website should build their own javascript if calendar fields are required.
Please note The Booking Engine does support input by date pickers. However, we do not support technical questions on the date picker as this is not part of the standard Booking Engine button. |
Number of nights can be added.
<input type="hidden" name="nights" value="2"> |
Please note When |
Number of persons can be added.
<input type="hidden" name="persons" value="2"> |
We support the _ga
variable. Cross domain tracking is enabled. Simply add this script to your page. Make sure Google Analytics is loaded before.
<script src="https://scripts.hoteliers.com/js/book-button-ga.js"></script> |
This will attach the Google variable to the URL like this: ?_ga={code}
All other variables will be added as key/value pairs as a query string
<input type="hidden" name="key" value="value"> |
This will attach the variable “key“ to the URL like this: ?key=value
See Chain Engine Button.