Putting the booking module on your website
- Waar vind ik dit
- Configuration › Customer page › Widget and buttons
The booking module is the window in which your guest books a table. You place it on your own site, so your guest never leaves your website.
What you need
Two lines of code: one in the <head> of your page, and one where the module should appear. If someone else built your site, forward those two lines — for a web builder it is a five-minute job.
Where to find the code
You do not write the code yourself; your environment hands it to you. In your environment, go to the configuration and then to Customer page › Widget and buttons.
- Add a new configuration and choose Widget as the type.
- Give it a name you will recognise later — Booking will do.
- Save. The block stays on the page afterwards.
If you cannot see Widget and buttons, your account lacks administrator rights. Ask whoever manages your environment to create the widget, or to grant you those rights.
How to copy the code
At the bottom of your widget block there is a </> button. Click it and the code appears in two parts, one for the <head> and one for the <body>. Select each part and copy it.
The head part belongs between <head> and </head> on your website. Most website builders have a field for exactly this, usually under a heading like scripts, head or custom code. The second part goes into the content of the page, precisely where the module should appear.
That second part contains a number: the config_id of your widget. You see the same number when you hover your mouse over the widget’s name. So paste the line exactly as it is and do not change that number — with the wrong number the module shows someone else’s calendar, or nothing at all.
Allow your own domain
The module will not load on a website your environment does not know. So add your own domain to the allowed domains in your environment’s Content Security Policy. If the spot where the module belongs stays empty while the code is there, this is almost always the reason.
Where to put it
Give the module a page of its own — Book a table — and put a button in your menu and on your homepage as well. A guest who wants to book does not want to search.
What your guest sees
The products you created, with the times and party sizes that belong to them. If something is off there, you fix it on the product and not in the module.