How to filter products in the availability calendar
August 29, 2007By adding a few parameters to the availability calendar, you can control exactly what products are being included in the list. You can also control what product should be the default product in the list.
Here’s an example of a regular availability calendar URL:
http://www.webreserv.com/book?hostcode=DCSA
Adding a product filter
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 standard single:
http://www.webreserv.com/book?hostcode=DCSA&productfilter=5
And here we show the standard single and standard double:
http://www.webreserv.com/book?hostcode=DCSA&productfilter=5,6
Making a product default
To make a specific product the default, include the parameter “ptid=[productid]“. In the URL below, we include all products, but default to the suite (productid 7):
http://www.webreserv.com/book?hostcode=DCSA&ptid=7
See also http://www.webreserv.com/articles/20060901 for more tips on the reservation widget / availability calendar