Shortcodes
[cr_bee_manage_booking]
Booking lookup by reference and email, with cancellation and messaging
Renders the Manage Booking page where customers can look up their booking, cancel it, or send a message.
Usage
[cr_bee_manage_booking]What It Renders
Lookup Form
- Booking reference field
- Email field
- Search button
Booking Details (after lookup)
- Booking status and payment status
- Vehicle name
- Rental dates, times, and locations
- Price breakdown (per-day rate, addons, modifiers, total)
- Number of rental days
Actions (if enabled in settings)
- Cancel Booking button — Only shown if:
manage_cancel_enabledis true in tenant settings- Booking status is cancellable (request_received, confirmed, pending_payment)
- Pickup date is beyond the cancellation window
- Send Message form — Only shown if
manage_message_enabledis true
API Calls (via AJAX)
| Action | Endpoint | Purpose |
|---|---|---|
| Lookup | GET /bookings/{ref}?email={email} | Fetch booking details |
| Cancel | POST /bookings/{ref}/cancel with email | Cancel the booking |
| Message | POST /bookings/{ref}/message with email + message | Send a message |
Feature Toggles
These settings (configured in Settings > Booking in the CR Bee admin) control what the Manage page shows:
| Setting | Effect |
|---|---|
manage_page_enabled | Show/hide the entire form |
manage_cancel_enabled | Show/hide the cancel button |
manage_message_enabled | Show/hide the message form |