Search by

easyweek / contao-booking-bundle

Yevhen L.

EasyWeek online booking for Contao: a floating Book now button on every page and a content element with the booking form.

Package info

github.com/easyweek/contao-booking-bundle

Homepage

Documentation

Type:contao-bundle

pkg:composer/easyweek/contao-booking-bundle

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-12-01 13:01 UTC

This package is auto-updated.

Last update: 2026-12-01 13:10:48 UTC


README

Contao bundle that adds EasyWeek online appointment booking to your website: a floating "Book now" button on every page, a booking form inside any page, a full booking page, and booking links. Clients book a service, a specialist and a free time without leaving your site.

The EasyWeek booking form opened on top of a website page

Install

  1. Install the bundle: search for EasyWeek Booking in the Contao Manager, or run composer require easyweek/contao-booking-bundle. Then update the database: Contao Manager › Database, or vendor/bin/contao-console contao:migrate.
  2. Copy your booking link from your EasyWeek account: Integrations and Apps › Booking Widget. It looks like https://booking.easyweek.io/your-company.
  3. In the back end open Layout › Site structure, edit the website root of your site and paste the link into Booking link in the section EasyWeek Booking. Save.

The floating "Book now" button now shows in the corner of every page of that website. A click opens the booking form on top of the page. Every website root has its own settings, so each site of a multi-domain installation can use its own booking link or none.

Settings

All settings sit in the section EasyWeek Booking of the website root.

Setting Field Default What it does
Booking link easyweekBookingUrl empty Your EasyWeek booking link. It must start with https://. Empty switches the widget off on this website
Floating button easyweekBookingFloating on Show the booking button in the corner of every page
Button text easyweekBookingText Book now The label of the button
Show the text next to the icon easyweekBookingShowText on Off shows the round icon only
Button position easyweekBookingPosition right Bottom right or bottom left
Button colour easyweekBookingBackground empty A hex colour such as #58B44B; empty keeps the EasyWeek green

An invalid link or colour is rejected at the field when you save. A value that is invalid anyway (for example written straight into the database) is never replaced by a default: the page gets no widget and the Contao system log gets an entry that names the field.

With the floating button off, the widget still loads, so your own links with the class easyweek-booking-button open the booking form.

Content element "EasyWeek booking form"

Add it in an article: new content element, group "Include elements".

Show as Shows
Booking form inside the page The booking form in a frame of the width and height you set (550 x 600 by default)
Booking form over the full height of the screen The booking form as a separate booking page
Link that opens the booking form A link with your text that opens the booking form on top of the page

The field Booking link of the content element takes any booking link format: a location, a service, a specialist, a gift card, a membership. Leave it empty to use the booking link of the website root. A link of its own opens as a plain link, because the widget opens the booking link of the website root only.

Without any valid booking link visitors see nothing; a signed-in back end user sees a notice in the front end preview.

Any element of your own templates with the class easyweek-booking-button opens the booking form too, for example a navigation item.

To change the markup, override the template content_element/easyweek_booking in your theme (Contao Twig templates).

Content Security Policy

When the Content Security Policy of a website root is on (website root › Security), the bundle allows the host of your booking link in script-src and frame-src through the Contao CSP API, and the start script of the widget carries the nonce of the page. The widget styles itself with a <style> element that it adds to the page, so a policy without 'unsafe-inline' for style-src blocks its look; allow it in the CSP field of the website root if your site enforces the policy.

Requirements

Contao 5.7 LTS or 6.0, PHP 8.2 or newer, an EasyWeek account (online booking is part of every plan, the free one included). Tested on Contao 6.0.6 and Contao 5.7.17 with PHP 8.4.28, legacy page layouts and Twig layouts, with and without the Content Security Policy.

Privacy

The bundle stores only its settings in the website root and the fields of its content element. The booking form and widget.js load from EasyWeek, the host of your booking link. When the address of a page carries campaign parameters (UTM tags, gclid), the widget script keeps them in the local storage of the visitor's browser under the key ew_tracking and passes them to the booking form, so that you see where a booking came from. Terms and policies: easyweek.io/business/terms-and-policies, privacy: easyweek.io/business/privacy.

About EasyWeek

EasyWeek is online booking and business management software for service businesses: beauty salons, barbershops, nail and lash studios, massage and spa, clinics, fitness and yoga studios, schools and rentals. More than 50,000 users run their bookings, clients, payments and reminders in it. All features: github.com/easyweek and easyweek.io/business/features. Support: support.easyweek.io.

More from EasyWeek on GitHub

License

MIT. Copyright EasyWeek GmbH. EasyWeek is a registered trademark of EasyWeek GmbH.