Putting the booking widget on your website
Let customers book from your own website. There are three ways, from the simplest to the nicest. All three show the same form.
What you need
Your own booking link. You will find it in the back office under the widget settings. In the examples below, EXAMPLE stands in for your own code.
Register your domain
Ways 2 and 3 need your domain registered with us. Without that, the browser refuses to show the form on your site. Register it in the back office exactly as it appears in the address bar, so with https:// and no path.
1. A link or QR code
Put the link on your site, in your signature or on a sticker in the car. Nothing to install, and your domain does not need to be registered.
https://taxibuddy.be/en/book/VOORBEELD2. An iframe
Paste this into your page's HTML. The form is on your site straight away, without a script.
<iframe
src="https://taxibuddy.be/en/book/VOORBEELD?embed=1"
title="Book a ride"
allow="geolocation"
style="width:100%;height:1150px;border:0;display:block"
></iframe>The height is fixed. Do not set it lower than below, or your visitor gets a second scrollbar inside the form.
3. The script (recommended)
Works like the iframe, but the form adjusts its own height. At every step the box is exactly as tall as it needs to be.
<script
src="https://taxibuddy.be/embed/v1/widget.js"
data-slug="VOORBEELD"
data-locale="en"
async
></script>If the script cannot run, an ad blocker for instance, it falls back to a plain link. Your visitor always gets through.
What to watch for
- Your page must be served over https. On http the browser refuses the form.
- Give the box the full width of your column. The form adapts to narrow screens.
- Minimum height for way 2: 1150 pixels.
- Put nl, fr, en or ar in the link for the language of the form.
If your site has its own security policy
If your page blocks external frames with a Content-Security-Policy, allow our address in the frame-src rule:
Content-Security-Policy: frame-src https://taxibuddy.be;It does not work
- I see an empty box
- Your domain is not registered, or not letter for letter. Check https, www and the port.
- There is a scrollbar inside the form
- The iframe is too short. Make it taller, or use way 3.
- It says online booking is switched off
- The widget is off in the back office. Switch it back on there.
Still stuck
Email us at info@taxibuddy.be with your domain and the link you are using.