External Book Now - v2

This page contains a brief introduction and examples of the new external booking api.

Operational Tests :

Code Generator app : Generator

The full reference can be found here : Full Reference

Live Examples :

Brief Overview

Installation

The installation process for v2 has been slimmed down to reduce the level of complexity. The user need only add the following script into the web page header :

Basic Usage

The simplest possible usage can be summed up in the following example.

On page load the javascript code will generate a button, provided there is an HTML Element containing the id provided in the buttonTargetId setting.

By default the booxi widget is configured as english and loading as an iFrame

For a hands on introduction take a look at the Basic Usage Examples page.

Configuration & Settings

During the initial configuration it is possible to define a couple of settings which are applied globally on all button instances. Here is a quick example :

See Javascript Public Interface

The above will set the default language to Dutch, remove the icon from the book button and have a custom text.

Configuration & Global Behavior

During the configuration we can also define settings which effect the global behavior of the plugin.

See Configuration Options

The above settings will apply to every single button. In this case book now will open as an external popup, and within book now the google analytics key will be instanced for basic analytic feedback.



Creating Custom Booking Buttons

The configure method will return an object which serves as your interface with the JS API. Through this object we are able to create more buttons as well as customize some their behavior.

Additionally the button creation methods enable the defining the pre-selection of certain elements when opening book now

See Button Config Parameters

Defining Booking Profiles

It is also possible to define a booking profile without creating a button. The profile can be called via onclick methods or used to create a button at a later time

See Dynamic Interface