Posted: 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 |
Have you looked at the “Email Manager” settings? https://eventespresso.com/wiki/email-manager/ |
|
|
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. |
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. |
|
|
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. |
|
Hi Josh, Can you tell me how to get the payment info into the registration summary email? Thanks |
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. |
|
|
Im using authorize.net AIM. Would we be able to pass the payment info back to the registration summary email? |
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>'; } |
|
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.