The number of attendees is passed in the notification email along with the additional names if this option is enabled. If it’s not showing in your emails something is awry.
Can you send me a link to an event so I can check the ‘show more name’ box.
Not sure what you mean by ‘checked’ in the body of the email. Do you mean is shows checked to indicate an option has been enabled?
Really need to see the event to do any diagnosis.
Aerin, since this is a members-only site, I would have to provide you with a test login to view. I can email you that plus screen captures if needed.
However I would like to focus on just getting the number of attendees to show up in the notification emails. The rest I’ll deal with later.
If you could just tell me which file handles the registration form and sends the emails, I can likely figure out the rest.
Thanks!
The file you need is quick-event-register.php
The function you need is called qem_send_confirmation
The line:
$msg = str_replace('[places]', $values['yourplaces'], $msg);
adds the number of places to the message if you have used the [places] shortcode.
If you have chosen to add the registration details to the message the line:
$copy .= qem_build_event_message($values,$register);
adds the registration details to the message
Thank you for the quick response. I found a fix that works (for me) which was a modification to line 806 of quick-event-register.php
Changing this line:
if ($register[‘usenumber1’]) $content .= ‘<p><b>’ . $register[‘usenumber1’] . ‘: </b>’ . strip_tags(stripslashes($values[‘usenumber1’])) . ‘</p>’;
To this:
if ($register[‘usenumber1’]) $content .= ‘<p><b>’ . $register[‘yournumber1’] . ‘: </b>’ . strip_tags(stripslashes($values[‘yournumber1’])) . ‘</p>’;
Puts the number attending entered in the reg form in the notification email.
Aha!
This all makes sense now. The yournumber1 field isn’t set up to manage the number of places. It’s just a plain text field the people use for collecting numerical data.
If you want to collect attendee information and their names and pass this information via email then use the ‘places’ option on the form.
Will do. Thanks for all your help.