Support

Home Forums Event Espresso Premium Combining registration emails for multiple events

Combining registration emails for multiple events

Posted: July 1, 2013 at 7:48 am

Viewing 6 reply threads


Emily Harris

July 1, 2013 at 7:48 am

When customers are bulk buying they are receiving an e ticket confirming their total payment and list of shows then they receive additional registration emails for all other shows. One man I spoke today had 12 registration emails. Can we change this as it is annoying people that they don’t just get one email.

http://www.henleyfringe.org
Wordpress 3.5.1, EE 3.1.32.2.P. Upgraded software running all add ons


Jonathan Wilson

July 1, 2013 at 2:26 pm

Hi Emily,

You can choose to not send confirmation emails until after payment. This is done is Event Espresso > General Settings > Email Settings.


Emily Harris

July 1, 2013 at 3:07 pm

Indeed, and this is what I have selected. However they are then receiving a separate registration email for each event – is there a way of making this just one email like the payment email?


Jonathan Wilson

July 2, 2013 at 11:27 am

Hi Emily,

There isn’t a way to combine the emails. They are 2 separate emails triggered by two separate functions in the system. They will get one for the event registration and one for the payment confirmation, unless you set “Send payment confirmation emails?” to No. Then they will only receive the registration confirmation email.


Josh

  • Support Staff

July 2, 2013 at 12:45 pm

Hi Emily,

There is a way to only send out the payment email and not send the registration confirmation email. If that’s viable option for you, this is one way to set it up:

1) You can alter the Payment Confirmation Email to include the [attendee_event_list] shortcode, which will create a table that lists out all the events they registered for in the Payment confirmation email.

2) Be sure to set Send payment confirmation emails? to Yes -and-
Send registration confirmation emails before payment is received? to No in Event Espresso>General Settings under Mail settings.

3) Then you can add these functions to the custom_functions.php file included with the custom files add-on after the opening ?php tag:

// do not send the registration confirmation email if emails are set to go out after payment
function alter_email_after_payment_hook() {
	remove_action('action_hook_espresso_email_after_payment','espresso_email_after_payment');
}
add_action ('action_hook_espresso_email_after_payment', 'alter_email_after_payment_hook', 9 );

// only send the payment email and admin notification if emails are set to go out after payment
add_action ('action_hook_espresso_email_after_payment', 'my_custom_espresso_email_after_payment');

function my_custom_espresso_email_after_payment($payment_data) {
	global $org_options;
	if ($payment_data['payment_status'] == 'Completed') {
		event_espresso_send_payment_notification(array('attendee_id' => $payment_data['attendee_id'], 'registration_id' => $payment_data['registration_id']));
		if ($org_options['email_before_payment'] == 'N') {
			event_espresso_email_confirmations(array('session_id' => $payment_data['attendee_session'], 'send_admin_email' => 'true', 'send_attendee_email' => 'false'));
		}
	}
}

If you haven’t installed the custom_functions.php file that’s included with the custom files add-on, there is some documentation on how to do that here:

https://eventespresso.com/wiki/custom-files-addon/


Emily Harris

July 12, 2013 at 9:13 am

Thanks Josh, I have implemented the custom functions to stop registration emails from being sent.


Josh

  • Support Staff

July 12, 2013 at 1:35 pm

You’re welcome Emily.

Viewing 6 reply threads

The support post ‘Combining registration emails for multiple events’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso