Impart Media Booking Gadget

As with all the previous gadgets, this gadget required the vcID to function. Note: it will also refuse to start up if the page protocol is not https (SSL). The code that started this page's gadget is below:

Warning! Achtung! If you edit with the gadget code on this page, do NOT change demoMode to false. If you try to put a booking through, it will work, and you will be charged.

Note: Please do not include the cart gadget on the same page as the booking gadget. The booking gadget has the cart built in. If you include the gadget on the same page undesired behaviour can occur.


Here is the code that started the gadget on this page

<script src="//gadgets.impartmedia.com/gadgets.jsz" type="text/javascript"></script>
<script type="text/javascript">
	$w(function() {
		BE.gadget.book('#book-example',{
			vcID:85,
			demoMode:true
		});
	});
</script>

You can edit the above code and either: hit esc or click this paragraph to refresh the gadget...

Booking Gadget Defaults

If not supplied, these are the default values for the Booking Gadget

automaticCart           true
bookedBy                null
campaignID              null
confirmationURL        '/product/confirmation.html'
demoMode                false
itineraryCSS            null
overlaySettings         {}
eventTrackingIsRequired false
showPromoCode           false

Each option is described below.


automaticCart

If set to false, you need to manually start a cart gadget before the booking gadget, in the element of your choice.

bookedBy

To obtain greater clarity on where bookings are generating from, you can apply this parameter to be different to the default 'online'. This is particularly beneficial for instances of 'Sister Gadgets' where the Tourism Centre has the booking engine powering more than one website.

campaignID

This will put the gadget into campaign mode, and will only show operators that are part of the supplied campaign ID. In campaign mode, the sort order tool is hidden, as the sort order is defined at the campaign level. Should the campaign have used the levels functionality, then the gadget will add classes you can use to style the various levels.

The syntax for converting your level names to classes is: set to lowercase, replace spaces with hyphens and remove any numbers at the start of the name. So for example, 'First Class' would become 'first-class'. Note: your style declarations will need to use !important if you don't set rules any more specific than the ones already in use by the gadget.

confirmationURL

Set to a page where you are hosting the confirmation gadget, so you can track booking goals and other analytic funnels and paths. If set to null, you don't need to use a confirmation gadget, the booking gadget will disappear on completion and show the link to the initerary pdf.

demoMode

This is used on this page, to stop the gadget from actually making bookings to an operator.

itineraryCSS

Supply a valid URL to a CSS file to style the itinerary pdf supplied on successful booking. A sample html file for the itinerary should prove useful to help with styling.

overlaySettings

This is an object of the same format as the overlaySettings from the cart gadget, and passes to the automaticCart if you use that option.

eventTrackingIsRequired

If set to true, this will make the "Are you attending an event?" question mandatory for guests to answer upon checkout. Please note this question only appears on the gadget if the Booking Centre has enabled the "Event Tracking" Bookeasy addon.

showPromoCode

If set to true, this will display a promo code input field for guests to enter a promo code to enable promotion specific benefits.

Home