Introduction
Our online booking system has the capability to display a general header message and a booking footer. Perfect to share a message to your end users and to customize the online booking page.
Configuration
Configuration is a piece of cake! Follow these steps and you should be able to create your own header message in no time:
- Open the menu
- Click on ‘Communication’
- Click in the new submenu on ‘Communication’
- Click on ‘WebPages’
- Click on + to add an empty page
- Add a new page and set the kind 'OnlineBookingGeneralHeader' or 'OnlineBookingFooter' depending on what you need to create - the configuration is exactly the same. Image and Parent fields are not used in this case.
- Fill in the content. Make sure to use decent HTML content here, because it requires a bit of styling since it will show on your website.
- Click on “Save” in the bottom right corner.
- Give the system a bit of time to synchronise your changes to the Online Booking platform and you should be able to see the header.
If you would like to use a general HTML template, you can copy and paste following code to get started!
You can change the background color by adapting the background-color:orange part to any color you’d prefer. The actual content of the header is included in the <p> tags.
<div style=”font-size:20px;background-color:orange; padding:20px;”>
<p>Due to circumstances we are currently closed. Please have a look on our <a href=”#”>website</a> for the latest info.</p>
<p>Sorry for the inconvenience, we hope to see you back soon!</p>
</div>
Advanced Configuration for Footer
In a footer, it is also possible to configure buttons which will be redirected to other webpages. This means that apart from the footer, you need to configure each additional custom pop-up webpage.
Create the custom footer’s popup content
You need to follow the same steps for the General header and footer with the kind 'OnlineBookingCustomPopup', this will make sure that this page will be visible only when clicking on a specific button. You need to repeat thi procedd for each pop-up webpage you need.
Create a footer including pop-up buttons
Final step is to create the actual buttons the end user can click and link them to the correct WebPage (OnlineBookingCustomPopup).
- If you don’t have a footer already, click on the ‘+’ icon in the WebPages overview
- Make sure to select ‘Online booking footer’ in the popup
- The system will create a basic online booking footer page
- Open the page and select the correct language you would like to modify from the list
- In the Online booking footer page add a button with onclick event handler with the following code
onclick=”CustomPopupService.showPopup(WebPageId)”
where WebPageId is the id of the OnlineBookingCustomPopup you’ve created before, for example 12178254 in this case (this number will be different for you!!)
In order to retrieve the WebPageId number, go to the WebPages overview and press the ‘CTRL’ and ‘F10’ button on your keyboard simultaneously. The ID will be visible in the first column.If you would like to have a HTML template for the button to start with, you can use this code:
<button style=”padding: 10px 5px; background: lightgreen;color:black” onclick=”CustomPopupService.showPopup(WEBPAGEID)”>Show popup</button> - Repeat this step for each OnlineBookingCustomPopup created in the previous steps.
- Apply your changes by pressing the “Save” button on the bottom right.