Part of the Commerce ecosystem · 506 projects
This module integrates Drupal Commerce with BAT (Booking and Availability Tools) to allow selling bookable products like rentals and timeslots online. It provides real-time availability calendars, capacity management, and admin tools for blocking out inventory.
Commerce BAT connects Drupal Commerce with BAT (Booking and Availability Tools) so you can sell bookable products and services through Commerce’s cart and checkout. It supports date-range rentals, reservations, appointments, lessons, and tickets, with configurable schedules, inventory capacity, and administrator availability management.
The 3.x series uses Commerce BAT’s own reusable native calendar for customer booking and administrator blockouts. Booking rules and reservation validation remain server-side, separate from calendar presentation.
Release status and important warnings
The 3.x series is currently alpha software. Test upgrades and booking workflows on staging before deploying to a live shop. Automated tests cover Drupal 10 and 11, but an alpha release is not a guarantee of production readiness.
Do not use the following releases:
- 1.5.0
- 2.x releases from 2.0.0 through 2.2.0-alpha2, inclusive
These releases contain a known Drupal 10 checkout compatibility defect: the checkout handler calls Transaction::commitOrRelease(), which is not available in Drupal 10. The 2.x fix was released in 2.2.0-alpha3. This identifies one confirmed defect; it does not mean that later releases are free of other issues.
Features
- Reusable Booking Types for date ranges and timeslots, including date-only bookings and timed ranges with explicit start and end times.
- Native embedded and popup calendars with month/year navigation, configurable colors and labels, and optional Week and Day date layouts enabled independently for customer and administrator calendars.
- Availability profiles for opening hours, recurring schedules, exceptions, and valid times.
- Capacity presets, independent inventory, shared capacity pools, and seats-per-quantity rules.
- Configurable booking windows and minimum notice, with server-side availability validation and checkout-time reservation checks.
- Date-range pricing that includes billable days in the unit price, with Commerce quantity applied normally.
- An administrator availability workspace for creating, editing, repeating, and reversing blockouts for all or part of a resource’s capacity. Availability details show shared capacity, administrator blocks, and permitted booking details; optional impact previews help review changes before applying them.
- Optional AJAX add-to-cart, cart quantity updates, item removal, and configurable Views-based confirmation popups.
- UTC storage for time-based bookings, booking-aware date/time formatting, and reservation synchronization for order placement, cancellation, and supported order-item changes.
- Booking field provisioning and diagnostics, availability explanations, audit logging, BAT relationship reports, health checks, and bulk order synchronization.
Included companion modules
- commerce_bat_calendar: the reusable native calendar presentation, including themeable templates, presentation tokens, lifecycle events, and an administrator Calendar preview.
- commerce_bat_ui: an optional configurable booking page/block with a service catalogue, calendar, selection controls, and Commerce add-to-cart integration. Links can preselect an exact eligible variation using
?v=or narrow the catalogue to a product using?p=. - commerce_bat_ajax: opt-in AJAX controls for product displays, booking interfaces, and cart Views. Confirmation titles, content, and actions are configurable; developers can provide a custom confirmation or disable the popup. No dependency on
dc_ajax_add_cartorcommerce_add_to_cart_confirmationis required. - commerce_bat_example and commerce_bat_ui_example: demonstration configurations for exploring booking setups and presentation options.
Templates, component plugins, lifecycle events, and PHP service interfaces support custom integrations. Example modules are intended for development and evaluation, not automatic production-shop configuration.
Post-installation
- Enable Commerce BAT, its dependencies, and
commerce_bat_calendarfor interactive calendars. - Open Commerce > Configuration > Booking settings at
/admin/commerce/config/commerce-bat. - Create Booking Types and configure their availability profiles, capacity, booking windows, and optional minimum notice.
- Assign an enabled Booking Type to each bookable product variation and review the Booking fields health checks for selected variation types.
- Confirm the BAT Date/Time Picker widget on the order-item add-to-cart form display, then configure Calendar appearance.
- Optionally enable
commerce_bat_uifor dedicated booking interfaces orcommerce_bat_ajaxfor AJAX operations. AJAX controls must be explicitly selected in product displays, booking interface components, or cart Views. - Manage availability and review booking orders under Commerce > Bookings. The availability workspace is at
/admin/commerce/bookings/availability. - Verify add-to-cart, cart, checkout, order changes, cancellation, and shared-capacity behavior before launch.
Additional requirements
- Drupal 10 or 11, with compatible Drupal Commerce and BAT releases.
- Drupal Commerce and its required product, order, cart, store, and price modules.
- BAT and its required unit and event modules.
- Core date-range support for the canonical booking field.
The 3.x native calendar does not require FullCalendar or Flatpickr. Bundled third-party calendar integrations have been retired. Developer-provided integrations remain supported through the calendar plugin API.
Upgrading
Back up the database, review the README’s migration instructions, run database updates, rebuild caches, and validate booking workflows on staging. Upgrades from older versions can change configuration and calendar presentation, so review custom templates and integrations carefully.
Similar projects
BEE (Bookable Entities Everywhere) provides another BAT-based approach to booking. Commerce BAT focuses on Commerce product variations, reusable booking configuration, shared inventory, and customer and administrator calendar workflows.
Supporting this module
Please use the Drupal.org issue queue for bugs, support, and feature requests. Include the module version, Drupal version, reproduction steps, and relevant error messages.
AI-assisted development: AI tools assist with implementation, testing, and documentation. Maintainers remain responsible for project decisions and releases. Community testing and independent reviews are welcome.
Documentation
See the README and documentation included with the module for setup, migration, AJAX configuration, theming, extension points, and verification guidance.
Ask your assistant about Commerce BAT Availability
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- bat Drupal core
- bat_event Drupal core
- bat_unit Drupal core
- commerce Drupal core
- commerce_cart Drupal core
- commerce_order Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Commerce ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.2.0-alpha11 | Pre-release | 10–11 | Aug 17, 2026 | ||
| 2.2.0-alpha8 | Pre-release | 10–11 | Aug 15, 2026 | ||
| 2.2.0-alpha7 | Pre-release | 10–11 | Aug 14, 2026 | ||
| 1.5.1 | Stable | 10–11 | Aug 10, 2026 | ||
| 2.2.0-alpha3 | Pre-release | 10–11 | Aug 10, 2026 | ||
| 2.2.0-alpha2 | Pre-release | 10–11 | Aug 9, 2026 | ||
| 2.1.0-alpha2 | Pre-release | 10–11 | Aug 8, 2026 | ||
| 2.1.0-alpha1 | Pre-release | 10–11 | Aug 8, 2026 | ||
| 2.0.0 | Stable | 10–11 | Aug 8, 2026 | ||
| 1.5.0 | Stable | 10–11 | Aug 8, 2026 |