Booking Form
[booking type=1 nummonths=2 form_type='standard']
Specify the full calendar width (one or several months in a row), the height of date cell (so its possible to configure the height of entire calendar by that (just divide the entire calendar width to 7 and you will get approximate date cell height), the number of months in one row (its useful, if you want to show several months in several rows, for example 4 months in 2 rows or 6 months in 2 rows etc).
Configuration rules
Example 1:
[booking type=1 nummonths=2 options='{calendar months_num_in_row=2 width=568px cell_height=30px}']
Example 2:
[booking type=1 nummonths=4 options='{calendar months_num_in_row=2 width=100% cell_height=40px}']
The general structure of the configuration calendar parameter is following:
{calendar months_num_in_row="{NUMBER OF MONTHs IN ONE ROW}" width="{ENTIRE WIDTH OF CALENDAR IN px or %}" cell_height="HEIGHT of CALENDAR DATE CELL, only in px"}
Parameters:
calendar - name of the parameter. Its always the same (Its required for the future extend functionality).
months_num_in_row - number of months on one row. Its can be any number.
width - the entire height of the calendar. This width can be in "px" (example: "400px") or in percentage (example "100%).
cell_height - height of calendar date cell. The height can be only in "px" (example "30px").
Specify that during certain seasons (or days of week), the specific minimum number of days must be booked, for example: visitor can select only 3 days starting at Friday and Saturday, 4 days - Friday, 5 days - Monday, 7 days - Saturday, etc...
Important! Please note, this feature is working only, if you activated the "Range days" selection at the General Booking Settings page.
Available in Business Medium / Large, MultiUser versions
Configuration rules
Example 1:
[booking type=1 options='{select-day condition="season" for="High season" value="7-14,20"}, {select-day condition="season" for="Low season" value="2-5"}']
Example 2:
[booking type=1 options='{select-day condition="weekday" for="1" value="4"}, {select-day condition="weekday" for="5" value="3"}, {select-day condition="weekday" for="6" value="2,7"}']
The general structure of the configuration one condition rule are following:
{select-day condition="{season|weekday}" for="{Name of season filter|Number of week day}" value="Number of days selection"}, ...
Parameters:
select-day - name of the rule. Its always the same (Its required for the future extend functionality).
condition - type of the condition. There are 2 types of the condition: "weekday" and "season". "weekday" - is mean that condition rule is based on the selected day of week value, like Monday, Tuesday, etc... . "season" - is mean that condition rule is based on the "season filter" name of selected date. In other words the condition is TRUE if the selected day is belong to some season filter in the Booking > Resources > Filters page.
for - value of the specific conditions. If the condition is true, so then the number of specific days selection will possible in the calendar. If the condition is set as "weekday" so then "for" can have the following numbers: 0 - Sunday, 1 - Monday, 2 - Tuesday, 3 - Wednesday, 4 - Thursday, 5 - Friday, 6 - Saturday.
value - number of specific days selection in the calendar, which can be selected by visitors. It can be simple number or several days separated by comma (example: "7,14,21,28") or by dash (example:"3-5", its the same like this: "3,4,5") or combination (example:"3-5,7,14", its the same like this: "3,4,5,7,14")
Examples:
Week days conditions.
[booking type=1 form_type='standard' nummonths=2 options='{select-day condition="weekday" for="1" value="4"}, {select-day condition="weekday" for="5" value="3"}, {select-day condition="weekday" for="6" value="2,7"}']
where values of the "for" parameter are mean following:
0 - Sunday,
1 - Monday,
2 - Tuesday,
3 - Wednesday,
4 - Thursday,
5 - Friday,
6 - Saturday
You can use only one number of the specific week day.
Its mean that on Monday is possible to select only 4 days,
on Friday is possible to select only 3 days,
on Saturday is possible to select only 2 or 7 days.
Season filters conditions.
[booking type=1 form_type='standard' nummonths=2 options='{select-day condition="season" for="High season" value="7-14,20"}, {select-day condition="season" for="Low season" value="2-5"}']
where values of the "for" parameter are mean following:
High season - its a name of the some Season filter on the Booking > Resources > Filters page,
Low season - its a name of the some Season filter on the Booking > Resources > Filters page
You can use only single season filter name in the one value.
Its mean that during High season is possible to select only 7, 8, 9, 10, 11, 12, 13, 14 or 20 days
and during the Low season is possible to select only 2, 3, 4 or 5 days
Description.
This configuration will allow to set the specific start day(s) selection (day(s) of week) for the specific Season Filters.
For example, in high season, you can allow start day selection only at Friday in the Low season (or any other days) to start day selection from any weekday.
1) I can suggest that you are activated the range days selection using 2 mouse clicks for the specific day(s) of week. For example for Friday.
2) So then inside of the page, where you are inserted the booking shortcode, you are need to have something like this, to allow any start day selection for the "Low season" days:
Available in Business Medium / Large, MultiUser versions
[booking type=1 form_type='standard' nummonths=6 options='{start-day condition="season" for="Low season" value="0,1,2,3,4,5,6"}']
Configuration of the Options parameter:
start-day – name of the rule. Its always the same.
condition – type of the condition. For this rule is available only 1 type of the condition: “season”.
season – is mean that condition rule is based on the EXACT “season filter” name of selected date. In other words the condition is TRUE if the selected day is belong to some season filter in the Booking > Resources > Filters page.
for – value of the specific condition – EXACT Name of Season Filter.
value – day(s) of week, where we can start selection for the specific season.
It can be simple number or several days separated by comma.
0 – Sunday,
1 – Monday,
2 – Tuesday,
3 – Wednesday,
4 – Thursday,
5 – Friday,
6 – Saturday
In update 6.1 or newer you can use new condition variable: options='{parameter name="my_param" value="value"}'
This option parameter can transfer custom value from this booking form shortcode into the content of booking form.
Available in Business Medium / Large, MultiUser versions
Example of shortcode usage:
[booking type=1 form_type='standard' nummonths=3 options='{parameter name="my_param" value="value"},{parameter name="other_param" value="other value"}']
Example of booking form customization:
[text some_field_name "my_param"]and
[text other_field_name "other_param"]
Important. Parameter name must be unique and exist only once in booking form.