Adding the search widget to your website
Search is flexible. It can be added to your site in different ways.
We’re here to help you become successful. Our skilled developers can help you add the Property Search in the best way possible.
The simplest way to forward your guests to your CabinKey™ Search form is to use a link. You can find your link at Preview > Property
The HTML to add this to your website is as simple as
<a href="PASTE YOUR PROPERTY SEARCH LINK HERE">Search Availability</a>
This will show up on your page link this —> Search Availability <— Your guests can click the link and will be directed to the search form.
A good way to get your guests to your CabinKey™ Property Search form is to use an embedded iframe. You can find your link at Preview > Property.
Advantage: Your guests do not leave your site to search your availability.
Copy and paste the HTML you see in red onto your web page.
<div id="cabinkeyframe"></div> <script>var CABINKEY_APP="https://book.cabinkeyapp.com/search/property/09a95135-3f40-411b-87dc-f5eff6eb5a66";</script> <script src="https://book.cabinkeyapp.com/cabinkey-frame-script.js";></script>
This is how it will appear inside your web page
It’s possible to use your own form and forward values to CabinKey™ Search form. The URL for the Property Search accepts some parameters that can pre populate the form values.
Example, this link will pre populate the arrival, departure, adults, children, and pets values in the form
https://book.cabinkeyapp.com/search/property/ac0d0450-78b9-45f5-9fc0-57da02cdb4ab?arrival=2020-06-13&departure=2020-06-20&adults=2&children=0&pets=0
Possible values to pass
arrival
YYYY-MM-DD
departure
adults
children
pets
autosearch