I'm new in working with TourCms, so I need a bit of guidance. I'm trying to get the tour's availability chart in xml format, but with no success. Any help is welcome.
Permalink Reply by Paul on August 23, 2010 at 12:11pm
Hi Barni,
First off check that the product you are getting availability for is loading using Freesale Seasons, if so that call should get back all of the seasons.
Alternatively if the product is loaded as a Hotel (check the Tours/Hotels page in TourCMS or ask the person doing the loading) you would likely use the Search Hotels by date range API to get either a monthly availability (i.e. has availability in Feb '11) or a list of available start dates. Take a look at these examples, the 12 Month availability chart is probably the simplest.
If you need any more help then let me know which product type you have and where you are getting stuck.
My products are loaded as hotels (chalets & tours).
I tried the examples you sent, but what I need is not there. Here is an apropriate example of what I want to do: http://www.skifamille.co.uk/availabilitychart.php . So I need the availabilitychart for a specific hotel, not for all.
I hope this makes sense.
Permalink Reply by Paul on August 23, 2010 at 1:06pm
The Search Hotels by date range API (as used in the Range example) can be passed a single Tour ID and only that Tour will come back. You would pass in that ID plus your desired date range (say December to end of April) and get back just the dates when that particular property is available.
Although the example you have linked to has multiple hotels on, so do check if that is what you actually want first.
That will let you do FULL / AVAILABLE from your example but you won't be able to distinguish whether the AVAILABLE dates are totally empty or whether there are already bookings (i.e. you could show FULL/AVAILABLE but not SPACE).
The Range example we have uploaded is listing individual days so you would just need slightly different logic to just display weeks.