Posted: 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.
|
|
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? |
|
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. |
|
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. |
|
|
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:
|
|
I did test several times with MER and without, and all attendees should be receiving a confirmation email. $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. |
@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)
|
|
PS: Can you please delete my email example text. It’s a mess and I’d like to delete my contact info. |
|
Just found another problem. The PDF receipt link now generates a blank web page. No PDF whatsoever. |
|
The PDF problem was happening before I applied the fixes you suggested. |
|
|
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. |
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. |
|
|
If you are copying that last bit of code from the forums, you’ll have to edit out the line numbers. Sorry about that. $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. |
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. |
|
|
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. |
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. |
|
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. |
|
|
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. |
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.