Shortcodes
[cr_bee_addons]
Insurance and extras selection form
Renders the addon and insurance selection page where customers choose optional extras before checkout.
Usage
[cr_bee_addons]Session Requirement
This shortcode requires an active session (set by the previous booking flow steps). If no session cookie (crbc_session) exists, the customer is redirected to the search page.
What It Renders
- Insurance tier cards (if configured):
- Tier name, subtitle, and price
- Coverage items list
- Accent-colored highlight for recommended tier
- Radio selection (one tier only)
- Extra addons:
- Name, description, and price
- Quantity selector (up to
maxQuantity) - Per-day or one-time pricing indicator
API Calls
| Endpoint | Cache TTL | Purpose |
|---|---|---|
GET /sessions/{id} | None | Current session data |
GET /addons?carId={id} | 15 min | Available addons for this vehicle |
GET /settings | 5 min | Labels and currency |
Auto-Skip Logic
If your configuration has exactly one insurance tier and zero extra addons, this page is automatically skipped. The single insurance tier is pre-selected and the customer proceeds directly to checkout.
Behavior
- Selecting addons sends a
PATCH /sessions/{id}/addonsrequest - Insurance tiers are in an exclusive group — only one can be selected
- The updated total is shown before proceeding
- Click "Continue" to proceed to Checkout