Hi

I would like to add another field to the hotel booking process. I have multiple hotels all with the same room type and I would like a dropdown to select which hotel the user wants when they book the room type.

Cheers.

Comments

larowlan’s picture

Really it would be easier to provide a new room type for each hotel, otherwise you can only achieve what you need via a custom module.
The forms are all served via the form api, you can implement hook_form_hotel_booking_search_form_alter in a custom module and add your fields as required. The search interface is $form['search'] whilst the the results is $form['results'] - this is an array keyed by nid. If you install devel module and add dsm($form) to your form alter hook you'll see the form structure. If you look at the submit handler the module provides, you can remove it and add your own with new logic to record the selected hotel or you can implement hook_uc_add_to_cart_data (check the name of that - some of the uc hooks changed between 6 and 7) to provide the required data (it has access to $form_state).
If you've not written a custom module before there are plenty of drupal freelancers (myself included) who'd be happy to quote on the job - it's not that huge.