Skip to content

About

Drupal module for EasyWeek online booking: a floating Book now button on every page and a block with the booking form. Drupal 10.6, 11 and 12.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyWeek Booking

EasyWeek Booking adds EasyWeek online appointment booking to a Drupal site: a floating "Book now" button on every page, booking buttons and links, a booking form inside a page, and a full booking page. 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

For a full description of the module, visit the project page.

Submit bug reports and feature suggestions, or track changes in the issue queue.

Table of contents

  • Requirements
  • Installation
  • Configuration
  • Troubleshooting
  • FAQ
  • Privacy
  • About EasyWeek
  • More from EasyWeek on GitHub
  • Maintainers
  • License

Requirements

This module requires no modules outside of Drupal core.

  • Drupal 10.6, Drupal 11.3 or newer, or Drupal 12.
  • An EasyWeek account. Online booking is part of every plan, the free one included.

Tested on Drupal 11.4.14 with PHP 8.5.13. Install, settings, the block, public output and uninstall were also run on Drupal 10.6.23 (PHP 8.4.28), 11.3.23, 11.5.0-beta1 and 12.0.0-rc1 (PHP 8.5.13).

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

  1. Add the module: composer require drupal/easyweek_booking
  2. Enable it on the Extend page, or with Drush: drush en easyweek_booking

The code is mirrored on GitHub: easyweek/drupal-booking-module.

Configuration

  1. Copy your booking link from your EasyWeek account: Integrations and Apps › Booking Widget. It looks like https://booking.easyweek.io/your-company.
  2. Paste it in Configuration › Web services › EasyWeek Booking (/admin/config/services/easyweek-booking) and save.

The floating "Book now" button now shows in the corner of every page that is not an administration page. A click opens the booking form on top of the page.

While the booking link is empty the module adds nothing to your pages. Uninstalling the module removes its settings and its blocks.

Settings

Setting What it does
Booking link Your EasyWeek booking link. It must start with https://
Floating button Show the booking button in the corner of every page
Button text The label of the button
Show the text next to the icon Show the label, or the round icon only
Button position Bottom right or bottom left
Button colour A hex colour such as #58B44B; empty keeps the EasyWeek green

The settings page needs the permission "Administer EasyWeek Booking". The booking link decides which host the booking script is loaded from, so give this permission to trusted roles only.

Booking form inside a page

Place the block "EasyWeek booking form" in a region of your theme: Structure › Block layout › Place block.

Block setting What it does
Show as The booking form inside the page, the booking form over the full height of the screen, or a link that opens the booking form
Booking link Empty uses the link from the settings. A deeper link opens a location or a service straight away
Width, Height The size of the form inside the page, 550 by 600 pixels by default
Link text The text of the link. With the link from the settings a click opens the booking form on top of the page; with a booking link of its own the link leads to that booking page
Form title The title of the form for screen readers

The booking link of the block takes any booking link format: a location, a service, a specialist, a gift card, a membership.

Without a valid booking link the block shows nothing to visitors. Users with the permission "Administer EasyWeek Booking" see a notice instead.

Your own buttons and links

Any element of your theme with the class easyweek-booking-button opens the booking form too, for example a menu link. This works with the floating button switched off as well.

Translations

All texts of the module are translatable. German ships in translations/easyweek_booking.de.po. Drupal downloads the translations of contributed modules from localize.drupal.org. To use the shipped file before German is available there, import it in Configuration › Regional and language › User interface translation › Import, or with Drush:

drush locale:import de modules/contrib/easyweek_booking/translations/easyweek_booking.de.po

On a multilingual site, translate your own button text with the core module Configuration Translation: the settings page then gets a tab to translate it.

Content Security Policy

Drupal core does not send a Content-Security-Policy header. If your site adds one, for example with the Content-Security-Policy module, allow the host of your booking link in script-src and frame-src, and allow the inline script that starts the widget.

Troubleshooting

  • No button on the site: check that the booking link is saved and starts with https://, and that "Floating button" is ticked.
  • "The booking link must start with https://": paste the whole link from your EasyWeek account, including https://.
  • The button shows but the form stays empty: open your booking link in a new tab. If it does not open there either, check it in your EasyWeek account.

FAQ

Do I need an EasyWeek account?

Yes. Sign up for free at easyweek.io/business/free and set up your services and working hours.

Can I hide the floating button?

Yes. Untick "Floating button" in the settings and place the block "EasyWeek booking form" where you want booking.

Can clients pay online when they book?

Yes, when online payments are connected in your EasyWeek account.

Where are the widget options documented?

In Booking widget for developers.

Privacy

The module stores only its settings. It sets no cookies and collects no data on your Drupal site. The booking form and widget.js load from EasyWeek, the host of your booking link: when a visitor opens a page with the widget, their browser requests them from that host. 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.

More from EasyWeek on GitHub

Maintainers

License

GPL-2.0-or-later, like Drupal itself. Copyright EasyWeek GmbH. EasyWeek is a registered trademark of EasyWeek GmbH.

About

Drupal module for EasyWeek online booking: a floating Book now button on every page and a block with the booking form. Drupal 10.6, 11 and 12.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages