Support

Home Forums Event Espresso Premium Payment Confirmation and Registration Confirmation emails seem to be backwards?

Payment Confirmation and Registration Confirmation emails seem to be backwards?

Posted: January 20, 2014 at 1:40 pm

Viewing 15 reply threads


cstephens

January 20, 2014 at 1:40 pm

This doesn’t make sense to me.

I’m allowing a primary attendee to register multiple attendees and requiring info on each attendee. That part works fine.

However, after the payment has been completed, only the primary registrant gets the Registration Confirmation email, but all the attendees get the Payment Confirmation email.

It seems to be backwards. I would expect the primary attendee to receive the Payment Confirmation email and all of the attendees to receive the Registration Confirmation email.

And, yes, I did change my settings to force the Registration Confirmation to be sent after payment has been completed.

Also, it’s counterintuitive to provide an [attendee_event_list] shortcode that only lists one attendee, not the entire list.

My goal is to create a Payment Confirmation email that includes ALL relevant registration info (including all attendees) that the primary attendee can use as a complete record of their transaction. I would also like each attendee to receive a copy of the Registration Confirmation email.

Is this possible? It seems like a reasonable request.

  • This topic was modified 10 years, 10 months ago by cstephens.


Seth Shoultes

  • Support Staff

January 20, 2014 at 3:15 pm

Hi,

Ya, something doesn’t sound right. Is this happening on a development or live website? It kind of sounds like the emails were switched around. Have you modified the content of these emails at all? Can you please provide us some samples of the emails and possibly a link to the site where this is happening?


cstephens

January 20, 2014 at 3:39 pm

The site is live. My searches on the support forum suggest that everything is working the way it should (i.e., all attendees receive the payment confirmation email and only the primary gets the registration confirmation).

I modified the content of the Payment Confirmation email, but that doesn’t affect the distribution. And I’m using a customer registration email per event.

PAYMENT EMAIL:

***Payment Receipt – Please keep for your records***

Thank you, [fname] [lname].

We have received your registration and payment for the following Selerix training session :

[event_name]

Date: [start_date] through [end_date]

Amount Paid: [event_price]

Payment Method: Credit Card

Payment Transaction ID: [txn_id] ([payment_url].)

Training Location: Selerix Systems, McKinney, TX.

Google Map: [google_map_link]

If you have any questions about your, please contact Selerix Accounting.


Seth Shoultes

  • Support Staff

January 20, 2014 at 3:57 pm

Sorry. Please allow me some time to look into this a bit more. I thought that the payment emails were only sent to the primary registrant, but I may be thinking of something else.


Sidney Harrell

January 20, 2014 at 5:05 pm

The payment confirmation email is sent out by an overrideable function, so if you add this code, it will change it so it only goes out to the primary attendee:

You can add this code to one of the following:
1 – Your theme’s functions.php file. It may get overwritten the next time you update your theme.
2 – The EE custom files add-on in the custom_functions.php file.
3 – Use this blank plugin to hold the custom function.


Sidney Harrell

January 20, 2014 at 5:10 pm

I did test several times with MER and without, and all attendees should be receiving a confirmation email.
For the attendee_list shortcode, that does look to be a bug. If you can open up includes/functions/email.php and change lines 336-338 from:

$SQL .= 'WHERE att.email = %s AND att.attendee_session = %s';
$events = $wpdb->get_results( $wpdb->prepare( $SQL, $data->attendee->email, $data->attendee->attendee_session ));

to:

$SQL .= 'WHERE att.attendee_session = %s';
$events = $wpdb->get_results( $wpdb->prepare( $SQL, $data->attendee->attendee_session ));

and let us know if that fixes it for you.


cstephens

January 21, 2014 at 7:51 am

@Sidney, still not there yet. The payment confirmation emails are still going out to all attendees. I tried placing the function in each of the 3 locations you suggested. It turns off email completely in the EE custom files add-on.

The attendee_shortcode is now printing duplicate event info rows in a table, one row for each attendee. The info in the row is only info about the event itself, not about the attendees. The actual attendee info is printed below the table, but only for the attendee for whom the email is addressed.

(edited out)


cstephens

January 21, 2014 at 8:06 am

PS: Can you please delete my email example text. It’s a mess and I’d like to delete my contact info.


cstephens

January 21, 2014 at 8:11 am

Just found another problem. The PDF receipt link now generates a blank web page. No PDF whatsoever.


cstephens

January 21, 2014 at 8:12 am

The PDF problem was happening before I applied the fixes you suggested.


Sidney Harrell

January 21, 2014 at 12:06 pm

I think the attendee_event_list is supposed to provide a list for the attendee of the events that they signed up for in that session, not a list of attendees that signed up in that session. We are adding some hooks in 3.1.38 to allow you to add your own custom email shortcodes. Until that version of EE is released, you would need to modify email.php at line 153 to be:

apply_filters('filter_hook_espresso_post_replace_shortcode_search_values', $SearchValues);
	apply_filters('filter_hook_espresso_post_replace_shortcode_replace_values', $ReplaceValues, $data);
	//Perform the replacement
	return str_replace($SearchValues, $ReplaceValues, $message);

Would it be possible for us to get login and ftp credentials to do some quick testing? It may save us a lot of time of going back and forth in the forums. You can fill out the form here.


cstephens

January 21, 2014 at 12:58 pm

Well, I tried the last bit of code and it generated an error. I managed to get the PDF invoice working after updating my templates. That might work for the payment receipt we need.

Unfortunately, our IT guy won’t allow offsite FTP access to the web server.

I think I figured out how to limit the payment confirmation email only to the primary attendee. But still can’t get the registration confirmation email to go to anyone but the primary attendee.


Sidney Harrell

January 21, 2014 at 2:25 pm

If you are copying that last bit of code from the forums, you’ll have to edit out the line numbers. Sorry about that.
The confirmation emails should be going out to all the attendees. I tested it and it looks like it is working. You might want to check the spam folders to see if they got flagged. You should also install an email logging plugin (http://wordpress.org/plugins/email-log/) if you are not using an smtp service or a service like postmark or mandrill that will log all outgoing emails for you.
If you want to track that down, on the return from payment the function espresso_email_after_payment in gateways/process_payments.php should be getting tripped. It then calls event_espresso_email_confirmations in includes/functions/email.php. It is sending the session id, so all attendees with that same session id should get the confirmation email. I would put a var_dump in at line 492, like so:

$attendees = $wpdb->get_col( $wpdb->prepare( $sql, $session_id ));var_dump($attendees);

Then do a test registration with at least two attendees. On the thank-you page, (I would test with paypal-pro in sandbox mode so the emails get tripped on the thank-you page instead of by an IPN message on the transactions page) you should get the debugging output telling you the attendee ids that the confirmation email is going to get sent to.


cstephens

January 21, 2014 at 2:42 pm

Nope, line numbers not a problem. I edited them out first.

And all emails that are actually sent are being received and not ending up in spam.

I think the length of this thread is making it a bit confusing to follow regarding the confirmation emails.

Here’s what I want:

PAYMENT confirmation email should go only to the primary attendee (the one doing the registering). Right now it goes to all attendees.

REGISTRATION confirmation email should go to all attendees. Right now it goes only to the primary attendee.


Sidney Harrell

January 21, 2014 at 2:49 pm

All attendees do receive a confirmation email. You can test it here: http://eetesting.info/EE_branch/?page_id=4&ee=23. The only modification from the 3.1.36.3.P version is the addition of the gist from above to the custom_functions.php file which keeps the payment received email from going out to any but the primary attendee.


cstephens

January 21, 2014 at 3:27 pm

I’ve put in the gist code into the custom_functions.php file, but it’s doing nothing to limit the payment confirmation email to the primary attendee. It still goes out to all.


cstephens

January 21, 2014 at 9:01 pm

Looks like both confirmation emails are working properly now.

Thanks!

No luck on the attendee lists in the payment confirmation, but I can live with the attendees listed in the PDF invoice until I can figure out the attendee list in the email.


Dean

January 22, 2014 at 4:14 am

Glad it’s working!

I haven’t tested it but I think the only way would be to modify the email function / hook in to the function and run the LISTATTENDEES shortcode.

Viewing 15 reply threads

The support post ‘Payment Confirmation and Registration Confirmation emails seem to be backwards?’ 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