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
Comment #1
grazio.panico@gmail.com commentedDear, 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
Comment #2
junkbox commentedgrazio, thanks for the heads up, I was looking in entirely the wrong spot ;)
Comment #3
lilbebel commentedThanks 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.
Many thanks!
M
Comment #4
lilbebel commentedMy attempt is:
Is that remotely correct?
Comment #5
lilbebel commentedHi,
I answered my own question at:
Tested and works.
M
Comment #6
lilbebel commentedThat's:
https://drupal.org/node/1947284