Shortcodes
[cr_bee_search]
Full search page with date, time, and location pickers
Renders the full-page search form where customers select their rental dates, times, and locations.
Usage
[cr_bee_search]No attributes are supported — the shortcode renders a full search form using your tenant's configuration.
What It Renders
- Date pickers for pickup and dropoff dates (powered by Flatpickr)
- Time dropdowns filtered by operating hours (30-minute intervals)
- Location dropdowns (if you have locations configured)
- Category filter (optional)
- Driver age field (if enabled in settings)
- Search button
API Calls
| Endpoint | Cache TTL | Purpose |
|---|---|---|
GET /locations | 15 min | Populate location dropdowns |
GET /categories | 15 min | Populate category filter |
GET /settings | 5 min | Operating hours, lead time, locale labels |
Behavior
- Operating Hours — Time slots are filtered to the selected location's operating hours. If no location is selected, global operating hours apply.
- Lead Time — Dates within the lead-time window are disabled in the date picker.
- Validation — Pickup date must be before dropoff date. Both dates are required.
- Submit — Redirects to the Results page with search parameters in the URL.
Dependencies
- CSS: Flatpickr styles, CR Bee Connect styles
- JS: Flatpickr, CR Bee search widget script