Support

Home Forums Event Espresso Premium Question on registration confirmation/notification email

Question on registration confirmation/notification email

Posted: April 5, 2013 at 4:40 pm

Viewing 9 reply threads


infosolwebadmin

April 5, 2013 at 4:40 pm

I’ve been playing around with the settings on when a confirmation email gets sent (before or after payment is received) and ran into an issue when people pay by check/money order. We are going to have a payment gateway to handle debit/credit cards and then the check/money order gateway setup as well. I didn’t like how confirmation emails were being sent before a payment gateway was selected and completed, so I changed the setting to not send an email until after payment is received. This works fine when checking out with the credit card gateway, but if you choose the check/money order option and fully register, no confirmation email is sent to the customer (probably because technically the payment has not been received) and no registration notification email is sent to the site admin either.

I need a registration notification email sent to the admin whenever a new student registers (even if they pay by check and payment technically hasn’t been received) and would need the student to get a confirmation email as well, but preferably not until they hit the ‘click here to finalize your registration’ link when paying by check or after they’ve submitted their billing information if paying by card.

Is there anything that I can modify to get the system to work that way? I don’t like sending the confirmation email right after they submit their personal information on the signup form, because customers’ might see the email pop up and think they’re done registering – even though it says their registration is not complete until they pay on the screen.

Thanks as always


Sidney Harrell

April 5, 2013 at 6:10 pm

You can add the following line just before line 14 in gateways/check/check_ipn.php

event_espresso_email_confirmations(array('session_id' => $payment_data['attendee_session'], 'send_admin_email' => 'true', 'send_attendee_email' => 'true'));


infosolwebadmin

April 5, 2013 at 6:35 pm

I copied that code in and got the following error after clicking the finalize payment link:

Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /home/content/73/10778773/html/wp-content/plugins/event-espresso/gateways/check/check_ipn.php on line 14

Also, if I put that file in the content/uploads/espresso/gateways folder (once it is working) will it a) work and b) not get overwritten?

Thanks


Sidney Harrell

April 5, 2013 at 7:00 pm

Sorry about that, I didn’t see that it converted the > into html entities:

event_espresso_email_confirmations(array('session_id' => $payment_data['attendee_session'], 'send_admin_email' => 'true', 'send_attendee_email' => 'true'));

Yes, you’ll want to copy the whole check folder over to uploads/espresso/gateways. After you do so, you may have to deactivate and reactivate the check gateway for it to switch over to using the copy in uploads.


infosolwebadmin

April 8, 2013 at 12:50 pm

No problem. The system now sends the right emails when I want them to, but for whatever reason it is sending two registration notification emails to the admin and two confirmation emails to the attendee and they are duplicate emails. I tried it twice registering one attendee for one class and had that happen both times. Any ideas?

Here’s a link to a test event on our test site if you want to register and choose the pay by check option to see what it is doing (if necessary):

http://esschi.com/event-registration/?ee=20

Thanks!


Sidney Harrell

April 8, 2013 at 3:22 pm

I worked out something that will stop the duplicate email.

static $sent = false;
if (!$sent) {
    event_espresso_email_confirmations(array('session_id' => $payment_data['attendee_session'], 'send_admin_email' => 'true', 'send_attendee_email' => 'true'));
    $sent = true;
}


infosolwebadmin

April 8, 2013 at 6:36 pm

Hmmm, I tried that and I am still running into the duplication issue. Here is a link to my code to make sure I copied it in properly:

http://pastebin.com/zYeeuDG9

Thank you


Sidney Harrell

April 9, 2013 at 9:18 am

That’s the correct code. I tested it on my setup to make sure it stopped the duplicates. Did you make the change to the copy in uploads/espresso/gateways or plugins/event-espresso/gateways?


infosolwebadmin

April 9, 2013 at 6:29 pm

Yeah I double checked to make sure that the right file was in the right spot and it is.  And just to be sure I got rid of the check folder in uploads/espresso/gateways and then put the modified check_ipn file into the plugins/etc directory and I’m still getting the duplicate issue.


Sidney Harrell

April 10, 2013 at 11:57 am

Can you fill out the form here and be sure to include ftp info.

Viewing 9 reply threads

The support post ‘Question on registration confirmation/notification 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