Skip to content

Search and book

The search and book widget adds a search bar to your website. Guests choose their arrival and departure date, the number of guests, an accommodation and whether they want to rent or camp. When they click Search, they go to the Booking Engine with their search filled in.

Once a guest has picked an accommodation, the calendar shows which arrival dates can be booked (green) and which can’t (red). To turn this off, add hide_availability.

On narrow screens, such as phones, the bar collapses into a summary of the search. Tapping it opens the search full screen.

This widget is available on all plans.

Copy the code below and paste it into your website. See Widgets for where to find your administration slug and how to create a public key.

<booking-engine
administration="{Your administration slug}"
public-key="{Your public key}"
widget="search-and-book"
></booking-engine>
<script type="module" crossorigin src="https://widgets.camping.care/assets/plugin.js"></script>

By default, Search opens the Booking Engine at booking.camping.care:

  • without an accommodation, on the list of accommodations;
  • with an accommodation, on the booking form of that accommodation.

If you’ve embedded the Booking Engine on a page of your own website, send guests there instead with linkout_url:

<booking-engine
administration="{Your administration slug}"
public-key="{Your public key}"
widget="search-and-book"
linkout_url="https://example.com/book"
></booking-engine>

Add parameters as attributes. Each one falls back to the same parameter in the URL of your page.

Attribute Description
arrival Arrival date, YYYY-MM-DD. Defaults to today.
departure Departure date, YYYY-MM-DD.
default_days Number of nights when no departure is given. Defaults to 1.
persons Number of persons in the main age table. Defaults to 2.
guests Guests per age table, as JSON: [{"id": 12345, "count": 2}]. Overrides persons.
accommodation ID of the accommodation to preselect.
category rent or camp to preselect a category.
hide_filter Hides the rent / camp filter.
hide_accommodations Hides the accommodation picker.
hide_availability Turns off the availability check. The calendar shows all dates without green and red.
hide_search Hides the Search button, for when you handle the search yourself.
linkout_url Page with the Booking Engine to send guests to. See Where guests go.
lang Language code, such as nl or de. See Language.

The attributes channel_id, modes, view, show_camping_name, discountcard and show_discount_card are passed on to the Booking Engine. See Booking parameters.

Switches such as hide_filter are on when you add them without a value, or with 1, true or yes.

<booking-engine
administration="{Your administration slug}"
public-key="{Your public key}"
widget="search-and-book"
arrival="2026-08-01"
departure="2026-08-08"
category="camp"
hide_filter
></booking-engine>

Try it: open the calendar to see which dates the safari tent can be booked. On a phone, the bar collapses into a summary. The example uses our demo campsite, Widgets Demo Park.

Event When
search The guest clicks Search. Cancelable.
search-change The dates, guests, accommodation or category change.

See Styling and events for the details.