CR Bee Docs
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

EndpointCache TTLPurpose
GET /locations15 minPopulate location dropdowns
GET /categories15 minPopulate category filter
GET /settings5 minOperating 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

On this page