I have to develope a site for a hotel with different rooms, but I just want one general calendar. Because there is no unit number availability per date, I've thought that I could use the states as number of rooms available. I know that you can change the name, but is there a way to increase the number of states so I can have as many states as number of rooms?

Is there another way to achieve what I need?

Thanks!

Comments

fietserwin’s picture

You can add, rename and remove states as you like in admin/config/content/availability-calendar. Subsequently define their color in admin/config/content/availability-calendar/styling. These states are site wide, thus for all fields you might want to define. Per field you can set the default state (if no state has been defined in the database for any given day) and restrict the states that the editor may choose to update the availability.

I'm not sure that you want as many states as you have room units. This, because occupancy rate (which could be derived from your calendar) is normally seen as confidential data. So I would go for something like "sufficient availability", "few left" and "fully booked" (change naming and number of ranges as you like). But this is a business decision to make, not mine...

Please close this issue (closed (works as designed)) if this answers your question.

taote’s picture

Status: Active » Closed (works as designed)

Oh yes, thank you for your answer.

BTW, I've seen some people are using these states to define the season price. I imagine that is the only way to do it, so if I use them for occupancy rate, I could not use them to establish the price for the date.

You are right about the number of rooms. It's just that I was thinking it would be good for the hotel to know the number of available rooms. Maybe it would be a good improvement for this module: to have the way to set the number of rooms available for a day, just for private purposes.

Thank you for your help.

fietserwin’s picture

A while ago, I have been thinking about 2 sets of states (seasonality versus availability) but decided not to implement it. You could mix states yourself and use various shades of e.g. green and orange to indicate availability (plenty = green, few = orange) and seasonality (various shades).

Another option is to have a look at Rooms. That is a bit more geared towards handling multiple units and offering a backend view (separate bookings, number of units available) and front end view (resulting availability).