Knowledgebase
Maestrel > Help Desk > Knowledgebase

Browse our knowledgebase...




 
Knowledgebase » How to ... »

How to display the results of a search in a new page? Is it possible to redirect the customer to a different page to view the results of the search?

Answer

It is possible to redirect to a different page to show the results of the search.

  • You will create a "Booking" page, which will be the page where your customers will be redirected to, once they have entered check-in, check-out and optionally number of adults and children. For our example, we will say that the url of this "Booking" page is : http://www.abc.com/main-booking-form
  • In this "Booking" page, you will have the shortcode:

[hb_booking_form]

  • In the page where you have the search form, you will write the shortcode using the parameters "search_only" and "redirection_url". With our example, we will write:

[hb_booking_form search_only="yes" redirection_url="http://www.abc.com/main-booking-form"]

By doing so, your customer enter the check-in and check-out dates as well as the number of adults and children if requested. When he presses the "Search" button, he is redirected to your "Booking" page for the next step of the booking (selection of accommodation and extra-services, customer details, payment, confirmation).

Please check this section of the documentation for further details about the parameters.

Related articles The search form does not display any results. It keeps reloading the page.
How to track conversions with GA4?
How to use a different page to display my accommodation types?
Is multiple room booking possible? How does it work?
When making a reservation, the search form select box for the number of persons shows options only up to 5 Adults. How can I change that?
Themes Booking Plugin Pricing Blog Contact