home > support > solution library > booking engine > linking to the booking engine > query string parameters
The TourCMS booking engine will set sensible defaults for most things, a lot of which can be configured in Channel Manager.
To further adjust settings the following parameters can be added onto the end of the booking engine link:
Parameter | Details | Sample value |
---|---|---|
Any Tour type | ||
month_year | Default selection for the MonthYear box This is ignored in the following two instances:
|
05_2012 (May 2012) |
if | Tells the booking engine that it is inside an IFrame Causes the booking engine to hide items such as banners and surrounding HTML, useful when loading the booking engine inside an IFrame or Popup Window. |
1 |
ifwidth | Booking engine width (when combined with if=1) |
770 |
agent | A valid Agent ID Bookings will be attributed to this agent inside TourCMS, useful for tracking websites that market your products. |
5 |
Standard Tours only (Freesales & Departures) | ||
people(X) | Default number of people on a Tour or Rate X is used to designate which Rate we want to set the number of people for. For example on a given Tour you may have several Rates configured to allow for different pricing for "Adult", "Child", "Senior Citizen"; say you wanted to default the booking engine to 2 Adults, 0 Children and 0 Seniors you coud use: |
1 |
Hotels only | ||
ad | Default number of adults If there are no child rates loaded for a hotel this is considered to be the number of people. |
1 |
ch | Default number of children | 1 |
inf | Default number of infants | 1 |
startdate_yyyymmdd | Default start date | 2012-05-01 (1st May 2012) |
hdur | Default duration (days / nights) | 1 |
If you are integrating with an existing CMS you can generate URLs to the booking engine WITHOUT needing to know the tour id. Generally you shouldn't be doing this but it is possible:
If you are building your website using TourCMS Web Templates you can still use these additional parameters to customise your Booking Engine.
The following example will output the Booking Engine link for the Tour with the id of 4 and default the number of people (or the number of people in the first Rate) to 4:
<a href="<$TourCMStour t_id="4" output="t_book_url"$>&people1=4">Book online</a>