Skip to content

Booking search widget

Booking Search Widget

The Booking Search Widget allows users to search for products that match specific criteria entered in a search form. The results are displayed as product cards, making it easy for users to explore and choose from the available options.

By default, if no search criteria are specified, all products with at least one available time slot are listed.

Widget in Action

Key Features

  1. Customizable Search Experience Users can search based on criteria like difficulty, duration, quantities, and locations.

  2. Dynamic Product Listings Displays matching products as visually appealing cards with configurable colors.

  3. Responsive Design Adapts to different screen sizes, ensuring a seamless user experience on any device.

  4. Alternate Product Card Colors Customize the colors of the product cards in the list to alternate between specified styles for better visual distinction.

How to Use

Add the widget to your webpage using the HTML snippet below. Customize its properties as needed.

Example:

<bilberry-booking-search></bilberry-booking-search>

Widget Properties

PropertyDescriptionDefault ValueRequired
num-xsNumber of cards visible per row on extra small screens (mobile).1No
num-smNumber of cards visible per row on small screens (tablets).2No
num-mdNumber of cards visible per row on medium screens (small desktop screens).2No
num-lgNumber of cards visible per row on large screens (large desktop screens).3No
background-colorsComma-separated list of HTML color codes for alternating product card background colors.UnsetNo
text-colorsComma-separated list of HTML color codes for alternating product card text colors.UnsetNo
primary-colorsComma-separated list of HTML color codes for alternating primary colors on product cards.UnsetNo
primary-text-colorsComma-separated list of HTML color codes for alternating primary text colors on product cards.UnsetNo
accent-colorsComma-separated list of HTML color codes for alternating accent colors on product cards.UnsetNo
accent-text-colorsComma-separated list of HTML color codes for alternating accent text colors on product cards.UnsetNo
hide-difficultyHides the difficulty field in the search form. Options: yes, no.noNo
hide-durationHides the duration field in the search form. Options: yes, no.noNo
hide-quantitiesHides the quantities field in the search form. Options: yes, no.noNo
limit-to-productsComma-separated list of product IDs to limit the search to. Searches all products if unset.All productsNo
exclude-productsComma-separated list of product IDs to exclude from the search. Ignored if limit-to-products is set.All productsNo
locationsComma-separated list of locations to limit the search to. Hides the field if unset. Locations must match locations defined in Bilberry BackofficeAll locationsNo
lazy-loadSet to yes to defer loading the widget content until it is visible in the viewport. Options: yes, no.noNo

Configuring Alternating Product Card Colors

You can configure alternating colors for the product cards to enhance visual distinction. Ensure that all the color-related properties (background-colors, text-colors, primary-colors, primary-text-colors, accent-colors, accent-text-colors) have the same number of colors specified to maintain consistency.

Setting Up on Wix

If you’re using Wix as your website builder, follow these steps to configure the widget:

  1. Access the Configuration Guide: Refer to the relevant guide in these docs for general widget setup on Wix.
  2. Use the Following Values:
    • Server URL: https://bilberry-widgets.b-cdn.net/v4/wix-wrappers/WixBilberryBookingSearch.js
    • Tag Name: wix-bilberry-booking-search

Tips for Effective Integration

  1. Customize Card Layout: Adjust the num-* properties to control the number of cards displayed per row on different screen sizes.
  2. Apply Color Themes: Use alternating colors for product cards to make your listing visually engaging.
  3. Tailor Search Options: Hide unnecessary fields like difficulty or duration to simplify the search process.
  4. Focus the Search: Use limit-to-products or locations to narrow the search to specific products or areas.
  5. Mobile Responsiveness: Test the widget on various devices to ensure a smooth user experience.

By integrating the Booking Search Widget, you can provide an intuitive and visually appealing way for users to find and book products on your website.