I'm really excited about this module. It looks and works great.

Everything is setup and working fine except I cant figure out how to configure it to only show specific days available for booking. Can you point me in the right direction?

According to reply #4 (near the bottom of the reply: found here http://drupal.org/node/345163 ), it can be done but I'm not sure how or where.

Thanks for the help!

Comments

kenorb’s picture

Currently module don't handle that, but patches are welcome.

But, you can do that in both ways:

1.
Simple write your hook_validation function for your node_form and just generate the error, that those dates are not available.

2.
If you using ui-datepicker popup, you can do that there.

Read documentation:
http://jqueryui.com/demos/datepicker/
and look how to restrict date range
Otherwise if you are not using ui-datepicker, you can do that manually in jQuery using AJAX to restrict your dates.

Tell me how it goes.

jeremyr’s picture

I'll give it a whirl see if I cant figure it out.

threaders’s picture

StatusFileSize
new1021 bytes
new1.77 KB

I also needed a method to mark days as not available. I created a new content type called "Not Available" and created "all day" content. I changed the month view to show not available as though it was fully booked. I changed the day view to show fully booked if an all day event was there.

See the attached patches to the theme files from dev release dated 16th May.

I did come across an issue with calendar, whereby the last day of a multi-day event is not displayed as "all day". Logged it http://drupal.org/node/465474

kenorb’s picture

Status: Active » Needs work

Thanks for a patch, but in my case $rows['all_day'][$column] is always NULL, so it can't be imploded, so I made additional conditions.
I don't understand why code looking for 'Available', it's some standard value of variable or name of content?
Anyway, committed to latest version, later can be improved.
Thanks.

http://drupal.org/cvs?commit=213134

threaders’s picture

The code looks for 'Available', as the title of my new content type to deal with this is 'Not Available' and that is exposed in the calendar view. It didn't seem to work with the space, so I changed it to search for 'Available' instead - which worked.

kenorb’s picture

GBain22’s picture

Hi,

Im looking for a way to only be able to book timeslots that are 2 days ahead of the current date? Is this possible? I also need to edit the hours on a Sunday that are available to book - but leave the rest of the week the same as I have chosen in the configuration.

Cheers, Garry.

threaders’s picture

StatusFileSize
new854 bytes
new789 bytes

I use these patches to limit bookings to 2 days in advance or greater. They are for Day and Month view. I don't have anything for the Week view as I don't use it.

GBain22’s picture

Title: Limiting available dates » Calendar week

Cheers, much appreciated.

Is anyone aware that the calendar-week view doesn't look to the available timeslots? My "book now" link links to my site url as opposed to the individual day - I tried fiddling with the PHP but couldn't get anywhere.

Garry.

threaders’s picture

Title: Calendar week » Limiting available dates

Probably best to raise a new issue for the calendar-week view.

kenorb’s picture

Status: Needs work » Closed (duplicate)

New feature will continue here: #482324: Fine Grained Settings per Content Type
Added limiting dates by content type dates.