The actual email received from the Enquiry form doesn't contain all of the information from the results page. While the check-in check-out fields are on the form itself (at least they're displayed) the email sent out comes in like so:

======== BOOKING REQUEST
=====================================================

Name: Bob Bitchin

Email: me@home.com

Address Line 1: 1234 Sesame Street

Address Line 2:

City: Anytown

State/County: CA

Country: USA

Comments: Lorem Ipsum

-------- INQUIRY
-------------------------------------------------------------

Room: 2702

Where can one modify the enquiry email to add the additional fields (check in/check out, unit price)

Comments

grazio.panico@gmail.com’s picture

Dear, I don't know why this information misses, but I solved in this way

Module: rooms_booking_manager.module

replace

if (isset($form_state['complete form']['room_description'])) {
$booking_request[] = $form_state['complete form']['room_description']['#markup'];
}

with

if (isset($form_state['complete form']['room_description'])) {
$booking_request[] = $form_state['complete form']['room_description']['#markup'];
//Add more information about enquery
$booking_request[] = $form_state['complete form']['info_arrival_date']['#markup'];
$booking_request[] = $form_state['complete form']['info_departure_Date']['#markup'];
$booking_request[] = $form_state['complete form']['info_nights']['#markup'];
}

then arrange template in order to render correctly this information (for instance, I used tags "ul" and "li" to print a list of ...)

Regards,
Grazio

junkbox’s picture

Status: Active » Closed (fixed)

grazio, thanks for the heads up, I was looking in entirely the wrong spot ;)

lilbebel’s picture

Thanks for the tip.

Can you please tell me the correct syntax for telling the arrival and departure dates, number of nights and room selection to this code? I'm not very familiar with PHP.

<h1><?php print t('Booking request'); ?></h1>

<p><?php print render($customer_name); ?></p>
<p><?php print render($customer_email); ?></p>
<p><?php print render($customer_add1); ?></p>
<p><?php print render($customer_add2); ?></p>
<p><?php print render($customer_city); ?></p>
<p><?php print render($customer_state); ?></p>
<p><?php print render($customer_country); ?></p>
<p><?php print render($comments); ?></p>

<p></p>

<h2><?php print t('Enquiry'); ?></h2>
<?php
  foreach ($booking_request as $request) {
    print render($request);
  }
?>

Many thanks!

M

lilbebel’s picture

My attempt is:

<p><?php print render($info_arrival_date); ?></p>
<p><?php print render($info_departure_Date); ?></p>
<p><?php print render($info_nights); ?></p>
<p><?php print render($info_room); ?></p>

Is that remotely correct?

lilbebel’s picture

Hi,

I answered my own question at:

Tested and works.

M

lilbebel’s picture