easyweek / shopware-booking-plugin
Online appointment booking for Shopware 6 with EasyWeek: a floating Book now button on every page and a booking form for Shopping Experiences.
Package info
github.com/easyweek/shopware-booking-plugin
Type:shopware-platform-plugin
pkg:composer/easyweek/shopware-booking-plugin
Requires
- shopware/core: ~6.6.10 || ~6.7.0
- shopware/storefront: ~6.6.10 || ~6.7.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Shopware 6 plugin that adds EasyWeek online appointment booking to your shop: a floating "Book now" button on every storefront page, a booking form inside any Shopping Experiences layout, a full booking page and booking links. Clients book a service, a specialist and a free time without leaving your shop.
- Download:
EasyWeekBooking.zipfrom the releases of this repository, then Extensions › My extensions › Upload extension - Widget reference: Booking widget for developers
- Other ways to add the widget: easyweek/widget-example-integration
Install
- Upload
EasyWeekBooking.zipin Extensions › My extensions › Upload extension, then install and activate EasyWeek Booking. On the command line:bin/console plugin:zip-import EasyWeekBooking.zip,bin/console plugin:refresh,bin/console plugin:install --activate EasyWeekBooking. - Copy your booking link from your EasyWeek account: Integrations and Apps › Booking Widget. It looks like
https://booking.easyweek.io/your-company. - Open the configuration of the plugin (Extensions › My extensions › EasyWeek Booking › Configure), paste the link and save. Every sales channel can have its own link and its own button.
The floating "Book now" button now shows in the corner of every storefront page. A click opens the booking form on top of the page.
Shopware 6.7 refreshes cached storefront pages with its scheduled task "shopware.invalidate_cache", which runs every five minutes. To see a change at once, clear the caches in Settings › System › Caches & indexes or run bin/console cache:clear:delayed. Shopware 6.6 refreshes them when you save.
Settings
| Setting | What it does |
|---|---|
| Booking link | Your EasyWeek booking link, it must start with https://. Without a link the plugin shows nothing |
| 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 next to the round icon |
| Button position | Bottom right or bottom left |
| Button colour | A hex colour such as #58B44B; empty keeps the EasyWeek green |
| Load the booking widget only after cookie consent | Adds "EasyWeek online booking" to the cookie settings of the storefront and loads the button and the form only for visitors who accept it. Off by default |
A booking link that does not start with https://, or another invalid setting, switches the affected output off for that sales channel and writes one entry to var/log/EasyWeekBooking-<date>.log.
Booking form inside a page
In Content › Shopping Experiences open a layout and add the block EasyWeek booking form from the block category Form. The element of the block can also replace the element of any other block.
| Option | What it does |
|---|---|
| Type | Booking form inside the page (default), booking form over the full height of the screen, or a link that opens the booking form on top of the page. A link with a booking link of its own, different from the saved one, is an ordinary link to that booking page |
| Booking link | Empty uses the link of the plugin settings. A deeper booking link opens a location, a service, a specialist, a gift card or a membership straight away |
| Width and height | Size of the form inside the page in pixels, 550 by 600 by default |
| Link text | The text of the link, "Book now" by default |
| Title of the form | The title screen readers read out, "Online booking" by default |
Any element with the class easyweek-booking-button opens the booking form, for example a menu item.
Requirements
Shopware 6.6.10 or newer and Shopware 6.7, PHP 8.2 or newer, an EasyWeek account (online booking is part of every plan, the free one included). Tested on Shopware 6.7.16.2 and 6.6.10.32 with PHP 8.4.
If your shop sends a Content-Security-Policy header for the storefront (the storefront template of the parameter shopware.security.csp_templates), the plugin adds the host of your booking link to script-src and frame-src. The short script that starts the widget is an inline script: a policy has to allow inline scripts, as it has to for the inline scripts of the Shopware storefront itself.
Privacy
The plugin stores only its settings in the shop and sets no cookie by itself. widget.js and the booking form load from EasyWeek, the host of your booking link. With these requests the IP address and browser details of the visitor and the address of your shop reach EasyWeek. What a visitor enters in the booking form is sent to EasyWeek to create the booking.
In the browser of the visitor widget.js keeps the campaign parameters of the visit (utm_*, gclid, rwg_token) in the local storage under ew_tracking, when the address of the page has such parameters. When analytics tools are connected to the booking form in your EasyWeek account (Google Analytics, Google Tag Manager, Meta Pixel, Cookiebot), widget.js loads them on the page once the booking form is opened.
With the setting "Load the booking widget only after cookie consent" nothing of this loads before the visitor accepts "EasyWeek online booking" in the cookie settings of the storefront, and withdrawing the consent removes ew_tracking.
Terms and policies: easyweek.io/business/terms-and-policies, privacy: easyweek.io/business/privacy.
Uninstall
Uninstalling with "Remove all app data permanently" deletes the settings and the "EasyWeek booking form" blocks. A booking form element inside another block becomes an empty text element, because a block cannot keep an empty slot. Keeping the app data leaves settings and layouts as they are.
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
- easyweek/widget-example-integration: every way to install the widget, with a live demo
- easyweek/wordpress-booking-plugin: WordPress plugin with a shortcode and a floating button
- easyweek/booking-widget-react: React and Next.js
- easyweek/easyweek-mcp: connect EasyWeek to Claude, ChatGPT and Cursor
- easyweek/agent-skills: skills for Claude Code, Cursor and Codex
License
MIT. EasyWeek is a registered trademark of EasyWeek GmbH.