Support

Home Forums Event Espresso Premium Registration Summary Email

Registration Summary Email

Posted: December 20, 2013 at 2:15 pm

Viewing 7 reply threads


David Berkowitz

December 20, 2013 at 2:15 pm

I receive a registration summary email but it is missing information that i need. I cant find where to edit this email template. Is it a core file? If so please provide me with the location.

Thanks


Garth

  • Support Staff

December 21, 2013 at 12:04 am

Have you looked at the “Email Manager” settings? https://eventespresso.com/wiki/email-manager/


David Berkowitz

December 26, 2013 at 8:21 am

Yes, i have checked the email manager settings. I cant find where this one email is coming from. It has a small table with some information a registration ID and then a download invoice pdf link.


Josh

  • Support Staff

December 26, 2013 at 12:00 pm

Hi David,

The description you posted sounds like the notification that gets sent to the contact email address entered in Event Espresso>General Settings. The location of the code that generates this email can be found in /event-espresso/includes/functions/email.php in the espresso_prepare_admin_email function.


David Berkowitz

January 9, 2014 at 10:56 am

I see the core file but I am unable to edit it properly. I need this email to display the payment method (check or credit card), and if credit card, what type. Can you tell me the code to add and where to add it to get this to display in that email summary.


David Berkowitz

January 14, 2014 at 12:12 pm

Hi Josh,

Can you tell me how to get the payment info into the registration summary email?

Thanks


Josh

  • Support Staff

January 15, 2014 at 8:21 am

Can you let me know the code edits that you made that did not work?

It’s possible that you will not be able to get the credit card type unless it’s something that’s passed back from the gateway. If your chosen payment method’s gateway does pass this back, I can look for the documentation and point you to the relevant gateway developer documentation.


David Berkowitz

January 15, 2014 at 11:43 am

Im using authorize.net AIM. Would we be able to pass the payment info back to the registration summary email?


Josh

  • Support Staff

January 15, 2014 at 6:49 pm

Hi David,

Yes it’s possible, because Authorize.net does send back the payment details in a serialized array, and the credit card type is included in the array. However, this gets complicated because if you’re offering both credit card and check payment options, then the admin email is likely set to fire before the payment option is selected. You can find when the registration email is set to fire if you look in Event Espresso>General Settings where it says: Send registration confirmation emails before payment is received?

If that’s set to Yes, then the email that gets sent to the admin will be automatically fired before a payment option is selected. So the info you’re looking to add isn’t available yet.

If that’s set to No, then this email will get sent automatically when people select the credit card option and after their successful payment is logged. So what you’d like to do (send some payment info along in this email) can work if this option is set to No, but the admin registration email for any registrations that select the check payment option will not be automatically sent.

With that in mind, the function that prepares the admin email starts on line 408 and it’s named: espresso_prepare_admin_email

If you look inside that function you’ll see how the standard information that gets sent is prepared. Along with that, you could add something like this to add some basic payment info:

//payment info
if (!empty($data)) {
	$admin_additional_info .= '<p><strong>Payment details:</strong><br />';
	if (!empty($data->attendee->txn_type))
		// add the payment type to the email
		$admin_additional_info .= $data->attendee->txn_type;
	$admin_additional_info .= '<br />';
	if (!empty($data->attendee->transaction_details)) {
		// first unserialize the transaction details array 
		$txn_array = unserialize($data->attendee->transaction_details);
		// get the credit card type
		$cctype = $txn_array['card_type'];
		// add the card type to the email
		$admin_additional_info .= $cctype;
	}
	$admin_additional_info .= '</p>';
}
Viewing 7 reply threads

The support post ‘Registration Summary Email’ 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