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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

willvincent’s picture

Category: bug » feature
Status: Active » Postponed

Yes. 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.

willvincent’s picture

Component: Documentation » User interface

Reassigning to proper Component setting.

willvincent’s picture

Assigned: Unassigned » larowlan
clevername’s picture

re-subscribing.

Thought I'd share my vacation rental site as well: newport beach vacation rentals

szczym’s picture

subscribing, imho its critical to have "book now" button on room type view.
let me know if you need beta testing for that feature ;)

willvincent’s picture

Beta testing isn't needed, implementation is. :)

weblance’s picture

+1

Xarlie’s picture

Component: User interface » Code
Assigned: larowlan » Xarlie
Category: feature » task
Status: Postponed » Patch (to be ported)
FileSize
17 KB
1.12 KB

I 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.

weblance’s picture

Outstanding, 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

Xarlie’s picture

FileSize
131.99 KB

Yes, 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.

synistics’s picture

patched, 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

clevername’s picture

Worked 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.

larowlan’s picture

hi 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!)

larowlan’s picture

Status: Patch (to be ported) » Closed (fixed)

This is available in v2, now available