This article teaches you how to create the booking widget code in Bókun in order to embed it onto your website
To accept bookings on your website, you must embed a booking widget. To add a booking widget to your website, you generate an embed code which you then paste on to your website.
Embedding the booking widget relies on iFrames that are added to your website's source code.
There are a few steps you need to take before you can add the booking widget to your website.
- Add a Booking channel - your website
- Add a Payment Provider - needed if you intend to take payment online
- Create Terms and conditions - needed for the checkout process
1. Click on Online Sales > Widgets in the side navigation
2. Choose the type of widget you would like, below are examples of each type of widget:
A simple booking button that you can edit so it fits your website and brand. When clicked, the booking button opens up a separate window that includes either a product list widget, a product page widget or a calendar widget.
A general booking widget that you can add to your website. The calendar widget is directly linked to a checkout widget.
A widget that shows a list of selected products. The list shows pictures, duration and prices for the selected products. If the product is selected you are moved to the Product Page Widget. The product list widget is an easy solution to set up a simple booking website e.g. for a conference or some other event where limited quantity of products are offered.
A product page widget shows description, images and a booking widget for the product all in one ready-made page. Note, the text description is in an iframe, which means that the text is not found by search engines. This page is good for experiences that are sent as links to a traveller, e.g. links to a booking page for a conference.
You can set up Gift Cards for your customers to buy online. First you have to create an option to sell Gift cards online, then you can create widgets for them. Here are more information on Gift cards and how o set them up.
3. Click the Generate Embed code button in the widget wizard on the left-hand side.
4. Copy the embed code by clicking the Copy Embed Code button
This is the code you should paste where the booking widget is supposed to be located on your website.