Support

Home Forums Event Espresso Premium Disable Payment Emails when adding additional attendees – EE3

Disable Payment Emails when adding additional attendees – EE3

Posted: September 9, 2015 at 7:24 am

Viewing 5 reply threads


Robert O’Halloran

September 9, 2015 at 7:24 am

Is it possible when adding more than one attendee to a ticket purchase order, that only the main registrar received the Payment confirmation email? At present all whose emails are captured are receiving the confirmation of payment email which our client woudl liek to eliminate.

I know there is an option to disable “Send payment confirmation emails?” but we do need it to go out to the initial registrar.

Many thanks.


Lorenzo Orlando Caum

  • Support Staff

September 9, 2015 at 8:36 am

Hi Robert, if you manually add an attendee through the WP dashboard, then an email will go out. I have two ideas for handling this:

1) If there are a few attendees that will be added, then use your own email and then edit the attendee/registrant contact information afterwards

2) If you need to import a large batch of attendees/registrants, then try the Attendee Batch Import tool which is available for Event Espresso 3:

https://eventespresso.com/wiki/attendee-batch-import-add-on/


Lorenzo


Robert O’Halloran

September 9, 2015 at 10:23 am

Hi Lorenzo,

Thanks for the reply. Unfortunately these options won’t work as the client would like the users to all receive the correct registration email but only the main registrar to receive the payment receipt email. I thought this was how it worked when we initially tested. the site is now live to its making debugging a little harder for us. Can you confirm if the payment receipt goes out to all or just the main registrar?

Thanks


Lorenzo Orlando Caum

  • Support Staff

September 9, 2015 at 10:47 am

Hi Robert, I may have misunderstood you. My prior reply was for adding registrants/attendees manually through the WP dashboard. That process sends out notifications to those recipients.

Is your question related to front-end registrations as in registering for an event as an attendee/registrant?


Lorenzo


Robert O’Halloran

September 10, 2015 at 1:08 am

Hi Lorenzo,

Yes I am referring to Front End Registration. Sorry if my wording was confusing.

Robert


Josh

  • Support Staff

September 11, 2015 at 12:32 pm

Hi Robert,

It’s possible and involves a bit of PHP programming because the payment notifications do go out to each attendee with an email address in EE3.

You can change the default behavior by copying the event_espresso_send_payment_notification function from EE3’s email.php file into your own plugin or a functions.php file. You’ll note that it’s a pluggable function, which makes copying the function and loading it from another location possible. This allows you to update the plugin without losing your customizations.

Once you have your new function copied over, you’ll make an edit to the foreach loop at the end of the function so that instead of sending to all attendees, it only sends an email to the first attendee in the loop. Here’s an example that shows a suggested code change:

https://gist.github.com/joshfeck/12d21bade938ae551891

One thing to look out for is you’ll need to make sure that your custom function loads before the Event Espresso plugin loads. An easy way to do this is when you name your plugin folder, you use any of the letters a-d at the beginning of the plugin folder’s name.

Viewing 5 reply threads

The support post ‘Disable Payment Emails when adding additional attendees – EE3’ 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