Use JavaScript booking engines
How to use Sirvoy’s JavaScript-based booking engine code for more flexible and customizable website integrations.
Table of Contents
Sirvoy offers two types of booking engine code: the standard version and a JavaScript version. Both work the same way for guests, but the JavaScript version gives web developers more flexibility when customizing how the Sirvoy booking engine appears and behaves on a website.
What is the JavaScript version?
The JavaScript version is an alternative way to embed booking engines on your website. It’s written in JavaScript, a common and easy-to-use programming language.
This version is especially useful if you want to build your own layout or integrate the booking engine into a custom-built system.
Where to find JavaScript booking engine code
To get the JavaScript version of the code:
- Go to Settings > Booking engines.
- Click the three dots on the same row as the booking engine you want to embed.
- Select Install.
- Open the Advanced settings.
- Check the Alternate syntax option.
- The JavaScript version will appear under Copy this code.
What you can build with a JavaScript engine
Using the JavaScript version opens up a wide range of customization options. Here are a couple of real-world examples from Sirvoy users:
- Custom search bars that direct guests to one or multiple Sirvoy booking engines, depending on the selected criteria.
- A unified booking interface for multi-property websites, where guests first choose a location or property and then are given search results from the matching Sirvoy booking engine—even engines from across multiple Sirvoy accounts.
Note: Talk to your web developer for help implementing these examples or exploring other custom integration options using the JavaScript version.