Understanding Plugin’s Shortcodes: Booking Form vs. Widget
The plugin provides two ways to display the booking interface on your website: the Booking Form shortcode and the Widget shortcode.
You can find the available shortcodes in ‘Car Rental Booking System’ -> ‘Booking Forms’. Edit the booking form you want to use, then open ‘General’ -> ‘Shortcodes’. The plugin automatically generates the correct shortcodes for that booking form.
Booking Form Shortcode
The Booking Form shortcode displays the complete booking form and should normally be used on the main booking page where customers complete the entire reservation process.
Example:
[crbs_booking_form booking_form_id="10013"]
The ‘booking_form_id’ parameter identifies the booking form that should be displayed. When you copy the shortcode from the ‘Shortcodes’ tab, the correct booking form ID is already included automatically.
Edit the WordPress page where you want to display the booking form and paste the shortcode into a Shortcode block or a shortcode-compatible element provided by your page builder.
Widget Shortcode
The Widget shortcode displays a simplified version of the booking form. It can be placed on other pages of your website and used to collect the initial booking details before redirecting the customer to the main booking form.
The plugin provides two widget layouts:
- Horizontal Widget – displays the widget in a horizontal layout.
- Vertical Widget – displays the widget in a vertical layout.
The selected layout is controlled by the ‘widget_booking_form_style_id’ parameter in the shortcode.
Horizontal Widget example:
[crbs_booking_form booking_form_id="10013" widget_mode="1" widget_booking_form_style_id="1" widget_booking_form_url=""]
Vertical Widget example:
[crbs_booking_form booking_form_id="10013" widget_mode="1" widget_booking_form_style_id="2" widget_booking_form_url=""]
To use the widget, enter the full URL of the page containing your main booking form in the ‘widget_booking_form_url’ parameter.
For example, if your main booking form is available at:
https://yourwebsite.com/booking/
the widget shortcode can look like this:
[crbs_booking_form booking_form_id="10013" widget_mode="1" widget_booking_form_style_id="1" widget_booking_form_url="https://yourwebsite.com/booking/"]
When a customer submits the widget, they are redirected to the main booking form and the information entered in the widget is transferred automatically.
Good to Know
The widget is optional. You can use only the main Booking Form shortcode if you do not need a simplified booking form on other pages of your website.
Booking Form vs. Widget
- Booking Form – displays the complete booking process and is normally used on your main booking page.
- Widget – displays a simplified form, collects initial booking details, and redirects the customer to the main booking form.
Summary
Document version: 1.0
Last updated: August 26, 2026
Plugin version: 4.2+