Requirement |
Note
|
Installed Library hotelrsv.js |
Installation of hotelrsv.js before the </head> or </footer> tag on each page where you want to place booking buttons, see the installation section. |
License code hotelrsv_id_## |
Assignment of the hotel variable or the main hotel in case of Group hotels. This information will be provided at the time-of-service activation. |
Action Item |
Example
|
<button>
|
<button class="rsv-app-launcher rsv-mobile-launcher otras-clases">
|
<input>
|
<input class="rsv-app-launcher rsv-mobile-launcher otras-clases">
|
<a>
|
<a class="rsv-app-launcher rsv-mobile-launcher otras-clases">
|
<input type="button">
|
<input type="button" class="rsv-app-launcher rsv-mobile-launcher otras-clases">
|
Parameter |
Possible Values |
Use
|
Explanation |
data-hotelrsv-lang
|
ISO 3166-2 two-character code. See list in Language Selection and Determination. |
Optional.
|
Language selection, if this parameter is not passed, it will take the language set as explained in Language Selection and Determination. |
data-hotelrsv-currency-code
|
ISO 4217 Currency Code according to the currencies configured in your hotel. |
Optional.
|
Currency code to be pre-selected. You must use the ISO 4217 codes that are registered in your extranet. Check in your control panel / extranet. If in doubt, submit a ticket. |
data-hotelrsv-dt-arrival
|
Date in format YYYYYMMDD |
Optional.
|
YearMonthDay representing the desired check-in date. |
data-hotelrsv-dt-departure
|
Date in format YYYYYMMDD |
Optional.
|
YearMonthDay representing the desired check-out date. |
data-hotelrsv-id-room-type
|
Room or product identifier according to the types of rooms or packages configured in your hotel. |
Optional. If you use room_type_abbrev you should not use this parameter. |
Identifier of the room to be pre-selected. The ID can be found in your control panel / extranet. If you do not know how to get the room id, use the room_type_abbrev parameter below. If you are using the dt_arrival and dt_departure parameters you must include this parameter. |
data-hotelrsv-room-type-abbrev
|
Customizable alphanumeric identifier of the room or product according to the types of rooms or packages configured in your hotel. |
Optional.
If you use id_room_typene you must use this parameter. |
Identifier of the room to be pre-selected.
The ID can be found in your control panel under Configurations → Configuration Operations → General → Room Type and Room Photos in the ABBREVIATION field
More information on this field in Room Types
If you are using the dt_arrival and dt_departure parameters, you must include this parameter.The abbreviation can NOT contain spaces, accents, accented letters, special characters or punctuation. Only alphanumeric characters. If you are using the dt_arrival and dt_departure parameters you must include this parameter. |
data-hotelrsv-show-other-rooms
|
1 | 0
|
Optional.
|
1 = It will show other rooms in addition to the pre-selected one.
0 = It will show only the pre-selected room.
|
data-hotelrsv-id-hotel
|
Hotel ID in a group of Hotels |
Optional. Only for Hotel groups |
Use this parameter if your page is for several hotels in a group but you want a booking button to launch the booking app for a particular button. |
data-hotelrsv-promo-code
|
Splendidus Promotional Code Promos Generator |
Optional.
|
The code can be found in the control panel at
Sales → Define Promotions |
data-hotelrsv-show-multihotel-selector
|
Display hotel selector (hotel groups only) |
Optional. Only for Hotel groups |
data-hotelrsv-show-multihotel-selector="1"
|
- In English data-hotelrsv-lang="en"
- Pre-selecting dates October 10-13, 2024 data-hotelrsv-dt-arrival="20241010" data-hotelrsv-dt-departure="20241013"
- Will load coupon MYPROMO15 data-hotelrsv-promo-code="MYPROMO15"
- Will show only the SGLLUX room type without showing other room types data-hotelrsv-room-type-abbrev="SGLLUX" and data-hotelrsv-show-other-rooms="0"