Hi,
I am about to start work on a small holiday lettings website. I am planning to use the Availability module but there is one major point of functionality missing that I require. I don't like the calendar layouts available and would like to use the layout available in the CGcalendar module. I have found a forum post which integrates the two modules here, http://forum.cmsmadesimple.org/index.ph ... 109.0.html, so am halfway there. It does not work properly with partially reserved days though, for example on the check in and check out days I would like the block of colour to be divided in half to show that half the day is available.
If anyone is able to do set this up for me please pm a quote.
Thanks
Chris
Availability & CGcalendar Integration
Availability & CGcalendar Integration
Last edited by clj83 on Wed Jun 09, 2010 2:52 pm, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Availability & CGcalendar Integration
would like the block of colour to be divided in half to show that half the day is available.
it's not possible at the moment... the data just isn't there in the calendar view.
it's not possible at the moment... the data just isn't there in the calendar view.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Availability & CGcalendar Integration
That's a shame, I thought that maybe the case. I have had a quick go at trying to do it using smarty and have managed to get the first day to show something different but I am stuck on trying to get the last day to change. I changed the default across template using the following,
{if isset($grid[day][rsrc]->url)}
url}">{$grid[day][rsrc]->label}
{if $previous_item == 'vacant'}
FIRST DAY
{else}
{$label}
{/if}
{/if}
{assign var="previous_item" value=$grid[day][rsrc]->status}
That checks what the previous days status was and then shows a different label if it says 'vacant'. I have looked at the array and cant find any bit of data to use to get the last day to change though. Is there anyway you can add any more info about the reservation to the array as oppose to just the resv id?
"EDIT - That doesn't work actually, not if the half day is on the first day of the month."
{if isset($grid[day][rsrc]->url)}
url}">{$grid[day][rsrc]->label}
{if $previous_item == 'vacant'}
FIRST DAY
{else}
{$label}
{/if}
{/if}
{assign var="previous_item" value=$grid[day][rsrc]->status}
That checks what the previous days status was and then shows a different label if it says 'vacant'. I have looked at the array and cant find any bit of data to use to get the last day to change though. Is there anyway you can add any more info about the reservation to the array as oppose to just the resv id?
"EDIT - That doesn't work actually, not if the half day is on the first day of the month."
Last edited by clj83 on Wed Jun 09, 2010 4:16 pm, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Availability & CGcalendar Integration
This system was primarily designed for hotels etc where a 'day' is technically a night... and the checkin time is usually something like 1:00pm and checkout at something 11:00am the next day.
In which case, if the checkin time is for the 15th of June, then you would show the 15th of june as 'booked' for that resource (if it was a daily resource) even though the checkin time is at 1:00pm.
Now, if you have half day resources, the time periods are usually like from 8:00am -> 12:00pm and from 1:00am to say 5:00pm then the 1/2 day thing would be handy.
If the resource was 'hourly', then it gets even more complicated.
Now, the calendar view in Availability sets the status to 'partial' for partially reserved days, but that's it, because there may be up to 8 slots in a particular day, and it's just not feasible to display those in a calendar view.
In which case, if the checkin time is for the 15th of June, then you would show the 15th of june as 'booked' for that resource (if it was a daily resource) even though the checkin time is at 1:00pm.
Now, if you have half day resources, the time periods are usually like from 8:00am -> 12:00pm and from 1:00am to say 5:00pm then the 1/2 day thing would be handy.
If the resource was 'hourly', then it gets even more complicated.
Now, the calendar view in Availability sets the status to 'partial' for partially reserved days, but that's it, because there may be up to 8 slots in a particular day, and it's just not feasible to display those in a calendar view.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.