Support

Home Forums Event Espresso Premium Customizing the User Registration Form and Emails

Customizing the User Registration Form and Emails

Posted: March 28, 2016 at 2:48 pm


eddy@mibeachclub.com

March 28, 2016 at 2:48 pm

Hi there,

Want to thank you, first off, for always being so responsive and helping really customize this plugin. I few more questions have come up with my client and I’m hoping you can help.

We are using the User Integration add-on to require people to log in to register for events. However, many of the events will be parents registering for their kids. So I want them to put Attendee 1 as their child’s name. Is there a way to turn off the Auto Fill feature here? That way the ticket would show the child’s name instead of the Parent’s name which is confusing them.

Ideally, I could have the auto-fill feature moved to a new Parent First/Last/Email field but that seems like it might be more difficult to do?

Then on the email notifications, I’d like for the email to show the Parent’s name like

Hello [Parent Name],

and also on the admin notifications, I’d want the parent’s first/last/email listed.

Is there a way to capture the user’s info for the email notifications? If not, I can set up separate fields and have the parent’s fill in their info, but they were hoping for this all to be auto-filled for them.

Thanks so much.


Lorenzo Orlando Caum

  • Support Staff

March 29, 2016 at 11:17 am

Hello,

One of the key features of the WP user integration is to be able to quickly register for future events and see events that you have registered for.

What is the goal behind forcing a login before allowing a registration? Is this related to something like members-only pricing?


Lorenzo


eddy@mibeachclub.com

March 29, 2016 at 12:29 pm

Hi there,

Thanks for the reply.

We want to make sure that only logged in users are able to register, this is a website for a private, members-only club, that’s why we are forcing the login. But, for many of the events, the users are signing up for their children. So they’d like to have “Attendee 1” as the child’s name instead of theirs, so that it shows correctly on the ticket. This is why I’d like to remove the auto-fill feature.

We still need to collect the user info (parent’s name) so that their accounting department can look up the correct member id in their separate database (these are listed by the parent’s name).

Does that make sense?


Josh

  • Support Staff

March 29, 2016 at 4:25 pm

Hi Eddy,

You can disable the Auto Fill feature by adding this code to your site:

add_action( 'AHEE__Single_Page_Checkout___initialize_reg_step__attendee_information', 'plugin_ee_wpuser_for_attendee_no_autofill', 10 );

function plugin_ee_wpuser_for_attendee_no_autofill(){
    if (  EE_FRONT_AJAX ) {
        remove_filter( 'FHEE__EEM_Answer__get_attendee_question_answer_value__answer_value', array( 'EED_WP_Users_SPCO', 'filter_answer_for_wpuser' ), 10, 4 );
    }
    remove_filter( 'FHEE__EEM_Answer__get_attendee_question_answer_value__answer_value', array( 'EED_WP_Users_SPCO', 'filter_answer_for_wpuser' ), 10, 4 );
}

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

I can also recommend to set the Always sync contact information with WP user profile? option to No in Event Espresso > Registration Form > User Integration Settings. This way, the contact information will not be re-synced with and replaced with their child’s name.


eddy@mibeachclub.com

March 30, 2016 at 2:45 pm

Thank you Josh!! Works perfectly.


Josh

  • Support Staff

March 30, 2016 at 3:19 pm

You’re welcome.


eddy@mibeachclub.com

March 31, 2016 at 11:05 am

Hey Josh,

I had implemented this change, which worked great, except that now when I enter the child’s name under Attendee 1 and turn off “Always sync contact info”, the event registration no longer shows up under the user account when using [ESPRESSO_MY_EVENTS].

What can I do to resolve this?


Josh

  • Support Staff

March 31, 2016 at 2:28 pm

You can turn on “Always sync contact info”.

The support post ‘Customizing the User Registration Form and Emails’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 3 years, 9 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!