Active
Project:
Hotel Booking System for Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2011 at 07:56 UTC
Updated:
7 Sep 2011 at 23:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
larowlanFair point, anyone else got an opinion on it?
I assume the search results would show those available at the top?
Comment #2
panayotis commentedI assume the search results would show those available at the top?
I do not mean the display of the search results. My point is, that besides the search results the (collapsed) availability calendars are displayed. I think (though no expert) it is controlled by
in hotel_booking_search_results.tpl.php. However, if the search for a room has no result
without displaying any availability calendars. Unfortunately I don't know how to display the availability calendar in that case, which should be pretty easy.
Panos
Comment #3
larowlanOh, now I get it.
I once wrote a 'multi-calendar' module that showed availability for all of the nodes (this was for v1 I think).
So that's the kind of thing you'd need - because you'd want to show the availability for all of the nodes on the site.
It's attached here if you (or anyone else) want to have a go at porting it to the 6.x.2.x-dev version - I'd be happy to put it in with the module. I think the only thing that would need changing is the query that generates the listing, it would need updating to the newer table and field names in the 2.x version (you can see function hotel_booking_update_6200 in hotel_booking.install to see what these changes were).
Then you'd just need to include that in the search results when there were no matching results.
Comment #4
panayotis commentedThanks a lot, I will try it out. I think changing the field names should be no problem even for a layman like me. However, how do I call it from hotel_booking_search_results.tpl.php?
Comment #5
larowlanYou'd need to replicate elements of the logic of the function hotel_calendars_multi_calendar.
I see that the module also uses the old v1 calendar tip logic, ideally this should use beauty tips but if you don't have restrictions - you needn't worry.
Comment #6
halter commentedcan u please the version which works with uc_hotel-6.x-2.x-dev properly because i'm new in drupal? What i must do to make hotel_calendars_multi_calendar work? Must I put file in hotel_booking directory?
Comment #7
larowlanhi @halter welcome to drupal please don't hijack existing threads, this was a feature request - create a new one.
Please see the definitions of priority here: http://drupal.org/node/45111