What are the redirection options for the booking process?
HBook allows you to split the booking process in different steps that can be done on different pages:
Step 1 : Search form page / Accommodation booking page.
You can set a redirection to your "Main booking page" with the parameters "search_only" and "redirection_url".
On a global search form, you can set that the results of the search will be displayed on a different page. The user enters check-in date and check-out date, number of guests (if relevant) and is redirected to a different page. Here is an example of shortcode for this behavior:
[hb_booking_form search_only="yes" redirection_url="https://www.abc.com/main-booking-form"]
On a global search form, you can set that the user is redirected to a different page only once he has selected the accommodation he wishes to book. Here is an example of shortcode for this behavior: [hb_booking_form redirection_url="https://www.abc.com/main-booking-form"}
On an accommodation form, you can set that the user is redirected after the results of his search. Here is an example of shortcode for this behavior:
[hb_booking_form accom_id="123" redirection_url="https://www.abc.com/main-booking-form"]
Step 2 : Extra-services, Customer details and Payment.
You can set the redirection to your "Thank you page" with the parameter "thank_you_page_url". On the second page (the "Main booking page"), you will have a booking form, and you can set a redirection for the last step. Here is an example of shortcode for this behavior:[
hb_booking_form thank_you_page_url="https://www.abc.com/thank-you-page"]
Step 3 : Thank you page.
On this page, you will have a shortcode [reservation_summary]. The user will be redirected to this page only when the reservation is finalized, be it that an online payment is required or not.