In the booking form, it is possible to preselect a product's language, start date, end date, duration, and number of male, female, and/or couple guests.

This can be done for any kind of product - flexible duration, flexible arrival, fixed date, or duration variant products can all be preset.

To do this, you can deep-link directly to the product, add '?' to the end of the URL followed by any series of parameters that you wish to set with each parameter separated by an '&' symbol. Note that the order in which the parameters are passed does not make a difference and that all parameters are optional (i.e. if you include one parameter there is no requirement to pass all available parameters).

The optional parameters are:

  • `start` which is in 'YYYY-MM-DD' format;

  • `end` also in 'YYYY-MM-DD' format;

  • `duration` as an integer;

  • `male` integer of number of males;

  • `female` integer of number of females;

  • `couple` integer of number of couples and

  • `genderless` or `guest` integer of number of genderless guests (when genderless pax picker is enabled).

For example, a product located at

https://surfcampdemo.bookinglayer.com/tests/en/product/surf-and-stay-package

could be preset with a check-in date for 28/05/2022 and 3 guests by the URL:

https://surfcampdemo.bookinglayer.com/tests/en/product/surf-and-stay-package/?start=2022-05-28&guest=3

Pre-setting dates:

If you are pre-setting dates you will need to take a look at the product on the booking form to know whether you will need to pass a start & end date or a start date & duration:

In the case of a product with Flexible Arrival, you must include the start and end date.

In the case of a product with Dates, you must include the start date and duration.

Pre-setting guests:

There are four different kinds of guests that can be preset: males, females, couples, and genderless:

To pre-set 2 males:
https://sample-account.bookinglayer.com/tests/en/product/accommodation-only-package?male=2

To pre-set 1 male, 2 females & 1 couple:
https://sample-account.bookinglayer.com/tests/en/product/accommodation-only-package/?male=1&female=2&couple=1

When the genderless pax picker is enabled it is not possible to preset males, females nor couples. You can preset genderless guests:

https://surfcampdemo.bookinglayer.com/tests/en/product/surf-and-stay-package?guest=3

Pre-setting translations

If you want to display products and categories in different languages, you may want to use the language URL parameters below:

If you want to refer guests to a Spanish version of the booking engine, paste "/es/" right after your domain on the desired URL (it can be the main booking engine page or any other product/category page): e.g.:

https://sample-account.bookinglayer.com/tests/es/product/accommodation-only-package/

The same is valid for any other language: 

  • French: /fr/

  • Portuguese: /pt/

  • English: /en/

  • German: /de/

  • Dutch: /nl/

  • Russian: /ru/

  • Spanish: /es/

 

Did this answer your question?