WEBSITE INTEGRATIONS
Booking Engine
10 min
the current version of the booking engine is intended to open in a new window the main reason being that many payment service providers do not allow payments to be executed within a nested iframe if you don't use any external payment service providers you can use the new booking engine in an iframe at your own risk in this case we recommend setting a fixed height for the iframe no greater than 100vh booking button the booking button will open the booking enginge in a new window the button will automatically adjust it's width to the one of it's parent container the colors and border radius can be customized to fit the web sites look and feel sample code additional options name description default value hotel (required) the hotel id as displayed in the hotel software online booking settings label (recommended) the label displayed on the button "online buchung" room type (optional) if room type id is supplied, the room type will be highlighted in the search results (if available) rate plan (optional) if rate plan id is supplied, the rate plan will be highlighted in the search results (if available) arrival date (optional) date format must be one of yyyy mm dd or yyyymmdd departure date (optional) date format must be one of yyyy mm dd or yyyymmdd num adults (optional) room count (optional) lang (optional) if not supplied, will try to auto determine the users language env (optional) "production" border radius (optional) 0em button text color (optional) #000 button color (optional) #fff button border color (optional) #000 button border width (optional) 0 2em button hover color (optional) #000 button hover border color (optional) #000 button hover text color (optional) #fff source a custom source name can be suppli to attribute the booking to a certain campaign (optional) default values of the design or subject to change in future versions, without prior notice, if we deem other values to align better with modern website designs custom implementation we do recommend the custom implementation for more experienced developers who prefer to have full control over the look and feel of the link dynamic link generation we are dynamically generating links, so you are always using the latest features and the latest version of the online booking we do not recommend hard coding those generated links, because they can stop working without prior notice hotelsoftware booking getlink does return a link which is valid with your configuration options provided avoid using window\ open we only used window\ open in the example above, to showcase how the link generation works as window\ open is often blocked by ad blockers, please set the generated link on the href attribute of the respective a tag, whenever possible to avoid problems with ad blockers warranty we are happy to help your web developer in case he needs any further information unfortunately, we can not do the website integrations for you we usually only see the page that got rendered for the end user, but we don't know about all the things going on behind the scenes working ourselves into all the implementation details of your website can take many hours, and there is still a high risk of missing out on some less obvious things in case you or your web designer are using a page builder and do not know how to adjust the code to your requirements, we can refer you to partner agencies which do offer professional web development services and no, we can not make an exception for you we have to provide warranty for whatever we do, and we can only provide warranty for systems which are entirely within our control additional options name description arrivaldate arrival date in format yyyy mm dd or yyyymmdd departuredate departure date in format yyyy mm dd or yyyymmdd env environment (one of 'dev', 'test', 'demo' or 'prod') default 'prod' lang iso language code if the language is not supported the online booking will default to 'de' roomtypeid if a valid roomtypeid is passed, this room type will be the first one to be displayed in the room type list (if available) rateplanid if a valid rateplanid is passed, this rate plan will be the first one to be displayed in the rate plan list (if available) source a custom source name can be supplied to attribute the booking to a certain campaign roomcount deprecated in latest version numadults deprecated in latest version sample code the following jsfiddle shows a sample code implementing a button to open the booking engine in a new window https //jsfiddle net/hmpeda/qgp8k7o6/ warranty the sample code above is provide as a sample implementation only with no warranty whatsoever it's just a sample showing how a button for the booking engine could be added to an existing website it may not work with older browser or cause interferrence with other parts of your existing website if you decide to copy it, please make sure to adjust it to your specific requirements url parameters as mentioned above, we strongly advise, not to hardcode the urls as any future version upgrade might break your implementation, without prior notice however, should you still decide to move forward in this direction, we provide some basic guidance on how to generate the link please be aware that this is not supported , and therefore we can't provide any assistance should you run into issues true false 251false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type