Skip to content

Instantly share code, notes, and snippets.

@lorenzocaum
Last active August 29, 2015 14:10
Show Gist options
  • Save lorenzocaum/eca9e34274c4710c8361 to your computer and use it in GitHub Desktop.
Save lorenzocaum/eca9e34274c4710c8361 to your computer and use it in GitHub Desktop.
Parent + Child registration idea for Event Espresso 4

Event Espresso 4 requires a name and an email to complete a registration. This is the minimum amount of information that is needed to successfully process a registration.

This also means that an email will be needed when registering a child. This requirement can't be removed.

However, we can setup some help text by making some adjustments on the registration checkout page. Note: we assume that each registration will have at least a parent and a single child.

Conditions of the event:

  1. There is a parent ticket and then a separate ticket for the child or children. The parent ticket is set to required via the advanced options (gear icon) in the ticket editor:

http://cl.ly/image/3b0r0Z0G373k

  1. Question groups for additional registrants is enabled in the event editor (bottom right area of screen)

Here is what the event looks like on the single event page:

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

When we add a single child and begin registration checkout, then we are brought here:

http://cl.ly/image/3q3m2o470P2n

Repurpose the copy attendee/registrant feature

The copy attendee feature in Event Espresso can be repurposed to add some help text.

The following CSS will hide the copy toggle and text:

#spco-copy-attendee-dv .spco-copy-all-attendee-pg {
	display:none;
}

These leaves the following text remaining:

http://cl.ly/image/1P0Q0N3e3510

Now use this CSS to hide the advanced options link:

#display-more-attendee-copy-options {display: none;}

We can then use a filter to change out that messaging:

add_filter( 'FHEE__registration_page_attendee_information__copy_attendee_pg', 'ee_remind_parent_about_email' );
function ee_remind_parent_about_email() {
 
 return '<strong>Notice</strong>: Please use <em>your own email</em> for the child\'s email in the next section.';
 }

Here is the result: http://cl.ly/image/0L0M042N1P2b

This is the first help text that we are adding to let the parent or guardian know to use their own email for their child's registration.

We can also add an additional reminder.

Create a new question group to act as an additional nudge or reminder

Go to WP-admin --> Event Espresso --> Registration Form.

Now create a new question group similar to this:

http://cl.ly/image/1c320g1M0O1q

Note the description and the toggle to show the description on the registration form. Then set the priority for question group order to 1 and save changes.

Now go to the Personal Question Group and change the question group order priority to a value higher than 1 such as 2. Then save changes.

Now create a simple multiple choice question such as "Are you ready to register your child?" and save changes. This question should then be assigned to the new question group (otherwise the new question group will be appear during registration checkout).

The last step is to enable this new question group through our event.

Go to the event editor and scroll down and look for the question groups for additional registrants widget. Now enable the new question group that you created and save changes.

You can then go to your single event page and try a registration out.

Here is a quick demo of before our changes:

http://cl.ly/image/0u0V3Y29332G

And here is after:

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

This does not remove the requirement for the email for each attendee but it does provide some options for remind parents/guardians to use their email.

Using this idea will show the child as the registrant in the registrations screen and on registration details emails and it will work for a parent + a single child or a parent + multiple children.