can't choose room quantity,and u must booking room for several times for one more rooms,how can i add room quantity chosen in booking interface.

Comments

larowlan’s picture

Status:Active» Postponed

Hi
You can't, but patches are welcome :)

LR

cnetlau’s picture

oh,thx for ur reply,but i'm not good at php,can u help me for this patch, i think it is important for hotel booking system.

cnetlau’s picture

needs help

i modify hotel_booking_module,hotel_booking_util.inc and hotel_booking_ubercart.inc

hotel_booking_module

  hotel_booking_inc('util');
  +  $form['search']['qty'] = array(
    '#type' => 'select',
    '#title' => t('quantity'),
    '#options' => range(1, 10),
    '#default_value' => 1,
  );

hotel_booking_util.inc

function hotel_booking_save_defaults($form_state) {
+   'qty' => $form_state['values']['qty'],

hotel_booking_ubercart.inc

function hotel_booking_uc_cart_item($op, $item) {
+    $item->qty = $qty;

but nothing changed...

cnetlau’s picture

Issue summary:View changes

test