Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
At present the availability calendar shows dates on room availability by color codes.
Can I show Number of rooms available along with dates.
Thanks
Comments
Comment #1
larowlanHi
This can be done at the theme layer.
Copy hotel_booking_calendar_cell.tpl.php from the module folder to your theme folder and flush your cache (theme registry).
Then you may edit the version in your theme to suit.
The header of the file contains comments regarding the available variable names, one of which is $available which details the number of rooms available, alter the markup to suit your needs and you're good to go.
You have to love theme templates!
Lee
Comment #2
sverma CreditAttribution: sverma commentedThis is fantastic,
thanks a lot
Luving it.
Comment #3
Slartibartfass CreditAttribution: Slartibartfass commentedHi,
every time I want to update the Availability calender (eg. to set the room unavailable for some days), the last status of the month's availability gets lost. Thist means I have to enter the availability of the whole month again.
Is this right or am I doing wrong, and what am I doing wrong??
Thorsten
Comment #4
larowlanPlease create a new request with the new version and new issue, don't hijack an existing closed issue.
Comment #5
Slartibartfass CreditAttribution: Slartibartfass commentedI'm sorry; it was my fault though not my intention at all. Best regards. Thorsten