Support

Home Forums Event Espresso Premium New attendee registration – approval pending Email Notification

New attendee registration – approval pending Email Notification

Posted: March 3, 2015 at 9:45 am

Viewing 9 reply threads


Renee deVilliers

March 3, 2015 at 9:45 am

Hi, I am testing using the “Pre-Approval” requirement on events. I notice that I receive a notification email with subject: New attendee registration approval pending when someone first registers.

This subject is ok, but ideally it should include event title in subject.

The email content is so vague that it is almost useless.

Here is what I received:

Event title: Advanced Agility
Attendee name: Romelda Morson
Thank You.

———

This for our purposes is not at all helpful.

I can’t link to anything from the email. I have no idea WHICH Advanced Agility class it is (by start date) – essentially a notification like this should be a snapshot of the person, and the event.

What I would like to have is the event details (date and start time) and all the answers to the registration form sent to us in THIS email, so that we can review. I would also like a LINK that we could click straight from email that would approve the registrant. Is that possible? As opposed to having to login to the admin of the website and going to that event, and going to attendees list and clicking approved.

How can I change this notification email content?

Please advise. Thanks


Lorenzo Orlando Caum

  • Support Staff

March 3, 2015 at 10:08 am

Hi,

Please see this support post for information on how to edit the contents of an email notification:

https://eventespresso.com/topic/modifyng-the-pre-approval-confirmation-email/#post-71817


Lorenzo


Renee deVilliers

March 4, 2015 at 9:33 am

Lorenzo,

Specifically, I do not want to edit an email that goes to the REGISTRANT, I want to edit the notification WE RECEIVE that someone has registered using the pre-approval function. I already edited the emails USERS get, but what we receive is not helpful to us. I tried to explain EXACTLY what I require in the email that comes to US, to include their responses to the registration form and a link for us to approve the registration from within the email. That link you provided for editing the emails looks like it is instructions on editing the pre-approval email the REGISTRANT gets sent. That is not what I need. I need the email WE GET SENT edited, and to know if we can include a “approve” link, and how to do all that. I am using the custom files plugin.

Please advise, quickly if possible, since my events are live.


Lorenzo Orlando Caum

  • Support Staff

March 4, 2015 at 3:43 pm

Hi Renee,

You should see the admin email coding right above the attendee/registrant coding:

http://cl.ly/image/2g2S001C321C

The same steps for changing the messaging will apply. They are wrapped in a text domain so you can use a gettext filter to change them.


Lorenzo


Renee deVilliers

March 6, 2015 at 10:02 am

Lorenzo,

I was able to modify my custom_functions.php file. However, I am no php expert, and I am not sure if it is possible to include a LINK TO APPROVE the attendee right in the email. Is that possible and how would I do that in the file exactly?

Also, How do I add to that email the answers to the custom questions? I need to add them so that they have a snapshot of the registration information in that email.

I am no php whiz, and I sort of need more direct help to successfully get this email right.

Please help.

Thanks


Lorenzo Orlando Caum

  • Support Staff

March 9, 2015 at 12:01 pm

Hi, here is additional feedback:

I was able to modify my custom_functions.php file. However, I am no php expert, and I am not sure if it is possible to include a LINK TO APPROVE the attendee right in the email. Is that possible and how would I do that in the file exactly?

Attendees would currently need to be approved through the WP dashboard. If this functionality is critical to your project, then please check with an Event Espresso professional:

https://eventespresso.com/developers/event-espresso-pros/

These email tags are available:

https://eventespresso.com/wiki/custom-email-tags/

One of the email tags is [custom_questions] so you could do something like this:

function ee_event_admin_preapproval_messaging( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Attendee name: %1$s %2$s' => 'Attendee name: %1$s %2$s -- Here are the custom questions for this attendee: [custom_questions]',
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'ee_event_admin_preapproval_messaging', 10, 3 );


Lorenzo


Renee deVilliers

March 10, 2015 at 12:53 pm

OH dear – So MUCH is going wrong all at once. I added what you gave me to my custom_functions.php file.

Did a test registration and some problems are happening in the email:

1. While I am able to have it insert most of the email content correctly. It is erring on the Event Start Date. In both the Registrants email, and the admin pre-approval email. It is inserting the DATE OF REGISTRATION (today’s date for example) where it should be putting in the Event Date – big problem. I need help to fix this.

2. Also, the code above you gave me does not output any content is simply repeats Attendee Name (it correctly inserts the data here) and the rest of the “Here are the custom questions for this attendee: [custom_questions]” But does not insert any custom question data at all. Big problem.

So, in the end, the attendee received the following content in the email:

Class/Event: ? Advanced Agility
Start Date: Tuesday, March 10, 2015
Start Time: 7:30 pm
Attendee name: Romelda Morson — Here are the custom questions for this attendee: [custom_questions]

Your registration is being reviewed and is pending approval from All About Dogs. You will receive an email with a payment link once we approve your registration.

Thank You.
The All About Dogs Team

AND the ADMIN pre-approval email that went to the admin received this:

Event/Class: ? Advanced Agility
Class Start Date: Tuesday, March 10, 2015
Class Start Time: 7:30 pm
Attendee name: Romelda Morson — Here are the custom questions for this attendee: [custom_questions]
In order to finalize this registration, you will need to login and approve the registration.

+++++++++++++++++++++

It could simply be my lack of expertise in php. Perhaps one could actually view the custom_functions.php file I have loaded, and help me fix this without wasting days of time and back and forth postings. My calendar is live, and to be honest, I really need to make sure these emails are correct.

I’m ok with not having the link to approve attendee, but I’d really like the Event date to be correct in both emails, and the answers to the custom questions to be in each email, in a display that is legible and makes sense.

Can we expedite the fixing of this so it is more direct, please?

Thank you.


Lorenzo Orlando Caum

  • Support Staff

March 12, 2015 at 10:18 am

Hi, I ran some testing on an install of Event Espresso 3 and the custom_questions email tag isn’t available in the function that handles the pre-approval messaging.

However, I fixed the other issues.

This custom_functions.php file is ready to go. Deactivate any gettext filters that you may be using for the existing messaging.

Then upload this one to the location below:

/wp-content/uploads/espresso/uploads/custom_functions.php

http://cl.ly/code/0A2Q211x223q/download/custom_functions.php


Lorenzo


Renee deVilliers

March 12, 2015 at 5:26 pm

Lorenzo,

Thank you. So there is no way to include the form data from the registration form they complete into this email that goes to admin for approval?

I take it that is what you mean about the email tag not being available. Is this something we can implement in future?


Renee deVilliers

March 12, 2015 at 5:55 pm

Thanks by the way for the new file. Works great, I edited a bit and it’s good now, but would ROCK with the custom_questions to be put in the email, and a email link that would approve the attendee right from the email. One less step for the admin in order to approve. Two suggests for future.

Viewing 9 reply threads

The support post ‘New attendee registration – approval pending Email Notification’ 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