First off, great module. I upgraded from another system and this one seems to be very effective out of the box.

One issue that I'm having regards to enquiries... where do they go? I can't find them in my site, and I don't get any emails when I go through the process.

Thanks for any direction.

Comments

coloryan’s picture

Okay, after some more working with it I understand that it sends out an email notification. I've been able to add "phone" to the form and email, but I'm having a hard time getting the start_date and end_date to the email. Any suggestions?

arne.olafson’s picture

How did you add the phone to the form?

lilbebel’s picture

Is there a way to add new fields (such as phone number) and make them mandatory? Also, the enquiry form is missing the option to enter the number of people in the group. I'd like to add this field to it and make it mandatory along with a phone field.

Many thanks for any help.

M

lilbebel’s picture

Ok, I figured it out. In order to make an enquiry form field mandatory, simply add #required' => TRUE, to the form field in rooms_booking_manager.module

For example:

$form['customer_email'] = array(
    '#title' => t('Email:'),
    '#type' => 'textfield',
    '#size' => 50,
    '#required' => TRUE,

In order to add a new field to the form, you need to add a new variable in rooms_booking_manager.module, e.g. $variables['customer_phone'] = t('Phone:') . ' ' . $form_state['values']['customer_phone'];

In the above example, I added a form phone field.

Then, you need to create an array (is this the right term???) in rooms_booking_manager.module too, e.g.

    $form['customer_phone'] = array(
    '#title' => t('Phone:'),
    '#type' => 'textfield',
    '#size' => 17,
	'#required' => TRUE,
  );

Hope that helps. Sorry if my terminology is off. I'm only getting to grips with PHP.