WebReserv Embedded Booking Calendar Advanced options

Controlling what products/units are shown

In addition to colors and fonts, you can also control what product (or room/tour/unit) should be shown and selected as the default product in the list.

Products are controlled via the productfilter and ptid parameters.

Here’s an example of a regular availability calendar URL in List view:

http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb

Here’s an example of a regular availability calendar URL in Calendar view:

http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&list=n

Here’s an example of a regular availability calendar URL in Calendar view with business header turned off:

http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&list=n&embedded=y

To filter the products in the product list, add productfilter=[productid]. You can include multiple productid’s, separated by comma. Example:

This availability calendar shows only the Canal Boat in List view:

http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&productfilter=1992

This availability calendar shows only the Canal Boat in Calendar view:

http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&list=n&embedded=y&productfilter=1992
(Notice how the product drop down option isn’t even shown anymore, this method is great if you have a specific webpage for each product and want to show only the booking calendar for that product)

And here we show the Canal Boat and Motor Boat:

http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&productfilter=1992,1991

Here we show the same but as a calendar view

http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&list=n&productfilter=1992,1991

To make a specific product the default, include the parameter ptid=[productid]. In the URL below, we include all products, but default to the Yacht Charter:

http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&list=n&ptid=1993

Tip: You can find the productid for any product by logging on to the Administration module, and select Setup – Product & reservation rules. The productid (ptid) is shown in the website address bar when a product is selected.

Start and End Date Defaults

You can set the start and end dates that are shown when the calendar is displayed.

This is achieved via the sstartdate and senddate parameters

This can be useful when you for example close over winter and have no rates all winter, but would like the calendar already showing May for the next year.

This feature is also very powerful in combination with product filters as it allows web developers to create their own search features, that then call the widget listing specific availability for those dates and product(s).

An example where sstartdate and senddate are set to a time in the future.
http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&sstartdate=01/01/2011&senddate=02/02/11

Pricing columns in list view

It is possible to define how many pricing columns are shown.

This is done via the showrates parameter.

No Columns
http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&showrates=0

1 Column
http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&showrates=1

2 Columns
http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&showrates=2

Date Format

The WebReserv booking component dynamically checks the users PC and browser to pick up on the international settings, and therefore handle bookings in date formats specified by the users PC.
While this method seems to be the “smart” choice, there appear to be many PC´s and browsers in Europe set up with USA date formats.
To over-rule this smart feature, you can use the dateformat flag to set the date format to european with the following parameter dateformat=en_GB
Examples:
Normal Link (This will use the users date format from their PC and Browser settings)
http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb
Link with Advanced Option dateformat used
http://www.webreserv.eu/services/bookonline.do?businessid=bobsboatdemogb&dateformat=en_GB

Using the booking calendar with multiple properties/locations

For businesses with two or more business locations (or properties) it is often desired to use the booking calendar for all locations (or properties). This can easily be accomplished with WebReserv.eu.

If each location is shown on a different webpage, simply add the booking calendar to each webpage with the businessid parameter for that particular location.

If there isn’t a separate webpage for each location, as it typically happens when the locations are similar and offer similar products (or units), simply add each businessid to the businessid parameter. For example:

http://www.webreserv.eu/services/bookonline.do?businessid=DCSA,DCSB,DCSC

Adding multiple businessid’s to the URL will cause the booking calendar to show a drop-down list with each location next to the product selection list. (Note: activation of the drop-down list may be required. Please contact WebReserv.eu support for more information).

Booking Calendar Parameters

Attribute Description Example
background-color Controls the background-color. Use this parameter to change the background color. The default background color is white. background-color=orange
businessid The business ID of your business businessid=dcsa
border-color Controls the border-color. Use this parameter to change the default border color. The default border-color is light-blue. border-color=4e4e66
color Controls the text color. Use this parameter to change the text color. The default text color is black. color=green
css Rather than controlling each attribute, you can specify a stylesheet with all the attributes. Using this attribute requires more extensive knowledge of Cascading Style Sheets (CSS) and website design. css=[URL]
embedded Instructs the booking calendar not to show the company name and picture at the top of the screen. This option is intended for embedded booking calendars. embedded=y
embedded=n
language Controls what language will be shown. This parameter is only valid on the WebReserv.eu site. language=es
list Controls if the product list should be shown. Default is y. list=y
list=n
search Controls if the search dates should be shown. Default is y. search=y
search=n
productfilter Controls what products to include in the product selection list. By default all products for the specified businessid is shown. productfilter=7,8
ptid Controls what product is shown as the default product. ptid=1032
sstartdate and senddate Automatically prefills the to and from dates on the booking calendar. sstartdate=02/02/10&senddate=03/03/10
showrates Defines how many pricing columns to show in List View.e.g. showrates=0 would show no pricing columns, showrates=3 would show 3 pricing columns. showrates=2
dateformat Over-rules the default smart date format feature and forces it to European dd/mm/yyyy and dd/mm/yy formats. dateformat=en_GB