WooCommerce Booking and Reservation DocumentationWooCommerce Booking and Reservation Documentation
  • Getting Started

    • Documentation Home
    • Overview
    • Features
    • Booking Comparison
    • Installation
  • Daily Operations

    • Booking Dashboard
    • Managing Bookings
    • Logs and Tools
  • Setting Up a Product

    • Product Setup
    • Booking Types
    • Availability
    • Pricing
    • Resources
    • People and Guests
    • Services, Extras and Fees
    • Location and Search
    • Calendar Sync
  • Store-wide Settings

    • Global Settings
    • Notifications
  • Your Customers

    • The Booking Experience
    • My Bookings
    • Shortcodes and Blocks
  • Help & Support

    • Troubleshooting
    • FAQ
Demo
Buy Now
  • Getting Started

    • Documentation Home
    • Overview
    • Features
    • Booking Comparison
    • Installation
  • Daily Operations

    • Booking Dashboard
    • Managing Bookings
    • Logs and Tools
  • Setting Up a Product

    • Product Setup
    • Booking Types
    • Availability
    • Pricing
    • Resources
    • People and Guests
    • Services, Extras and Fees
    • Location and Search
    • Calendar Sync
  • Store-wide Settings

    • Global Settings
    • Notifications
  • Your Customers

    • The Booking Experience
    • My Bookings
    • Shortcodes and Blocks
  • Help & Support

    • Troubleshooting
    • FAQ
Demo
Buy Now
  • Booking and Reservation

    • WooCommerce Booking and Reservation
    • Overview
    • Features
    • WooCommerce Booking Plugin Comparison
    • Installation
    • Booking Dashboard
    • Managing Bookings
    • Logs and Tools
    • Product Setup
    • Booking Types
    • Availability
    • Pricing
    • Resources
    • People and Guests
    • Services, Extras and Fees
    • Location and Search
    • Calendar Sync
    • Global Settings
    • Notifications and Reminders
    • The Customer Booking Experience
    • My Bookings
    • Shortcodes and Blocks
    • Troubleshooting
    • Frequently Asked Questions

Shortcodes and Blocks

Booking is not confined to the product page. Five shortcodes — each with a matching block — let you place booking and discovery elements anywhere on your site: a landing page, a sidebar widget, a page built with a page builder.

The shortcodes

ShortcodeBlockWhat it renders
[wcbrs_booking_form product_id="123"]Booking FormA complete booking form for one bookable product
[wcbrs_bookable_products]Bookable ProductsA list of your bookable products
[wcbrs_available_bookings]Available BookingsProducts that are free in a given window
[wcbrs_booking_search]Booking SearchA Search / From / To form with a Find bookings button
[wcbrs_booking_search_results]—The results of the search above

Shortcodes also work inside text widgets, so a booking search can sit in a sidebar or a footer.

The booking form

[wcbrs_booking_form product_id="1452"]

Renders a standalone booking form for that product: the date fields for its booking type, the guest field, person types, the resource dropdown, services, extras, a quantity box and a Book now button.

AttributeRequiredNotes
product_idRecommendedThe bookable product's ID. On a product page it falls back to the current product

Note

The form only renders for a product that is actually marked bookable. Point it at an ordinary product and nothing appears.

Find the product ID in the Product Settings header — Managing settings for Product ID: N — or in the address bar when you edit the product.

Good for: a landing page for one property, a "book a consultation" page, an offer page for a single tour.

Listing bookable products

[wcbrs_bookable_products]

Lists your bookable products. Use it to build a simple directory page.

Showing what is free

[wcbrs_available_bookings]

Shows products that are available in a window, each labelled Available or Unavailable. When nothing matches it says "No matching bookable products found."

The search form and its results

[wcbrs_booking_search]

Renders a form with Search, From and To fields and a Find bookings button.

Where the answers appear depends on Search results mode, under Product Settings → Global Settings → Storewide booking options:

ModeBehaviour
InlineResults appear directly below the form
ModalResults open in an overlay
RedirectThe customer is sent to a page you nominate

For Redirect, build a results page first:

  1. Create a page, for example Booking results.
  2. Put [wcbrs_booking_search_results] on it and publish.
  3. Note its page ID.
  4. Enter that ID in Redirect results page ID and set Search results mode to Redirect.

The look of the results — grid, list or calendar, cards per row, the filters offered, whether a map is shown — is controlled on the Search Builder tab. See Location and Search.

Using the blocks

In the block editor, add a block and search for its name — Booking Form, Bookable Products, Available Bookings or Booking Search. The Booking Form block has a Product ID setting in its sidebar; the others take their configuration from your Search Builder settings.

Page builders

Extra page-builder support is available under Product Settings → Global Settings → Storewide booking options → Elementor/page builder. Turn it on if your builder does not render the shortcodes on its own. Shortcodes are also enabled inside text widgets, so most builders work without it.

Worked examples

A dedicated landing page for one hotel room

[wcbrs_booking_form product_id="1452"]

A "check availability" box in the sidebar

Add a text widget containing [wcbrs_booking_search], and set Search results mode to Modal so the results overlay the current page rather than navigating away.

A search page with its own results page

  • Find a room page: [wcbrs_booking_search]
  • Booking results page: [wcbrs_booking_search_results]
  • Search results mode: Redirect, pointing at the results page ID

Checking your work

  1. Publish the page and open it as a visitor, not as an administrator.
  2. Confirm the form renders and the fields match the product's booking type.
  3. Run a search you know should return something, and one you know should not.
  4. Make a test booking through the standalone form and confirm it reaches your Bookings list.

Next step

  • Location and Search — configure the search behaviour.
  • The Customer Booking Experience — what the form does once it is filled in.
Prev
My Bookings
Next
Troubleshooting