Drupal is a registered trademark of Dries Buytaert

commerce_bat

2 sites No security coverage
View on drupal.org

Connects Drupal Commerce to BAT so you can sell rentals and timeslots with live availability calendars, capacity presets, and admin blockouts.

Features

- Adds a booking layer to Drupal Commerce using BAT (Booking and Availability Tools).
- Supports two modes: rentals (date ranges) and timeslots (lessons).
- Real‑time availability calendars on the add‑to‑cart form (FullCalendar or Flatpickr).
- Capacity presets (shared or separate) and shared capacity pools across variations.
- Admin blockout calendar to reserve inventory and see orders.
- Bulk order sync to rebuild BAT events when needed.

Use this module when you need a Commerce checkout for bookable inventory, plus a calendar‑driven UX for selecting dates or time slots.

I'm sure there were other ways to do the same thing this module does but it works for my needs.

Post-Installation

1. Enable Commerce BAT and its dependencies.
2. Go to `/admin/commerce/commerce-bat` (settings overview):
- Map variation types to rental or timeslot mode.
- Choose calendar plugins and defaults.
- Configure capacity defaults/presets.
3. Add/confirm the BAT Date/Time widget on the add‑to‑cart form display.
4. Create capacity presets (optional) at `/admin/commerce/commerce-bat/capacity-presets`.
5. Use the admin blockout calendar at `/admin/commerce/commerce-bat/blockout`.
6. If importing existing orders, run the bulk sync once.

Additional Requirements

- Drupal Commerce (commerce_product, commerce_order, commerce_cart, commerce_store, commerce_price).
- BAT modules: bat, bat_unit, bat_event.
- Core module: datetime_range.
- JS libraries: FullCalendar and Flatpickr (CDN fallback or local copies).

- FullCalendar v6.1.11+(best UX for calendars and timeslots).
- Flatpickr v4.6.13+ (lighter date picker).
- Views (for custom order reporting).

Similar projects

- BAT alone provides booking entities but not Commerce checkout integration. For e.g You can look into BEE(Bookable Entities Everywhere)
- Commerce booking modules exist, but this module focuses on calendar UX, shared capacity pools, and admin blockouts tightly integrated with Commerce.

Supporting this Module

Please use the Drupal.org issue queue for support and feature requests.

Community Documentation

See the README docs included with the project for setup and validation steps.

Activity

Total releases
11
First release
Jan 2026
Latest release
1 month ago
Release cadence
1 day
Stability
91% stable

Release Timeline

Releases

Version Type Release date
1.4.4 Stable Jan 23, 2026
1.4.3 Stable Jan 21, 2026
1.4.2 Stable Jan 21, 2026
1.4.1 Stable Jan 21, 2026
1.4.0 Stable Jan 21, 2026
1.3.1 Stable Jan 21, 2026
1.3.0 Stable Jan 19, 2026
1.0.x-dev Dev Jan 18, 2026
1.2.0 Stable Jan 18, 2026
1.1.1 Stable Jan 17, 2026
1.0.0 Stable Jan 16, 2026