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.
Thanks for your work on this module.
Attempting to link the 'hotel room type' view page with an 'add to cart' button of some sort.
Added a cck node reference field with an advaced node reference view of 'uc_products'. When I go to edit the hotel room type thereafter, I receive the error message
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'uc_catalog_buy_it_now_form_6' was given in /vacationsite/includes/form.inc on line 371.
Is there a better way to view a hotel description page, and have an associated 'add to cart' button on the same page, without having to use the search block?
Comment | File | Size | Author |
---|---|---|---|
#10 | example.jpeg | 131.99 KB | Xarlie |
#8 | hotel_booking.patch | 1.12 KB | Xarlie |
#8 | hotel_calendars.patch | 17 KB | Xarlie |
Comments
Comment #1
willvincent CreditAttribution: willvincent commentedYes. This is one of the features we are working on incorporating at the moment.
Rather than a Buy It Now button, it will be a simplified search form that automatically adds the results for that room type to the cart. This is necessary as the dates and occupants need to be specified.
larowlan has already implemented the functionality, and is presently working on getting it added to the core module code base, along with a few other enhancements.
An announcement will be made when it is available either directly from the project page or in cvs.
Comment #2
willvincent CreditAttribution: willvincent commentedReassigning to proper Component setting.
Comment #3
willvincent CreditAttribution: willvincent commentedComment #4
clevername CreditAttribution: clevername commentedre-subscribing.
Thought I'd share my vacation rental site as well: newport beach vacation rentals
Comment #5
szczym CreditAttribution: szczym commentedsubscribing, imho its critical to have "book now" button on room type view.
let me know if you need beta testing for that feature ;)
Comment #6
willvincent CreditAttribution: willvincent commentedBeta testing isn't needed, implementation is. :)
Comment #7
weblance CreditAttribution: weblance commented+1
Comment #8
Xarlie CreditAttribution: Xarlie commentedI have implemented a solution for the book it now button on the room type view. I attach two patches, the patch hotel_booking.patch is for the file hotel_booking.module and the patch hotel_calendars.patch is for hotel_calendars.module.
I hope it is useful.
Comment #9
weblance CreditAttribution: weblance commentedOutstanding, thank you for this. Can you let us know how to configure. After install of patch I do not see this on room type node or in views..
Do I need calendars to be enabled?
Thanks
Comment #10
Xarlie CreditAttribution: Xarlie commentedYes, you need to have the calendars enabled, and then you may see something like in the picture I attach.
if you have more problems do not hesitate to ask.
Comment #11
synistics CreditAttribution: synistics commentedpatched, installed, theme issues on my end, but when I reverted to another theme, there is was. What I am getting is page not found when booking now. I have two dummy rooms set up and they show using the regular widget. When I hit book now, it breaks.
Is there something I am missing? I see in hotel_calendar.mod on 713 drupal goto ('room-book/".args);, is this referencing something that I should have created? In hotel_booking, 159 you are calling 'bis_hotel_search_view', somewhere I am breaking down....and that does not include my limited mental state!!!
Pointers would be appreciated.
Thanks
Mike
Comment #12
clevername CreditAttribution: clevername commentedWorked for me after a manual patch. I implemented the search form as a function call in a dynamic field on the page, instead of attached to the calendar. Thanks for your contribution.
Comment #13
larowlanhi v2 of the module includes this out of the box - hoping for a beta release in August - watch this space (yes I'm a tease but put it in your diary b/c we will need testers!)
Comment #14
larowlanThis is available in v2, now available