Support

Home Forums Event Espresso Premium Additional Event Registration Name Issue

Additional Event Registration Name Issue

Posted: May 15, 2017 at 3:50 pm

Viewing 4 reply threads


killerkonceptz

May 15, 2017 at 3:50 pm

When somebody registers for an event on http://progolfplanners.com (any of the events) and purchases more than 1 ticket, I have it setup for them to type in the additional attendee(s)’ name(s). However, if they merely just put the same name in each time (i.e. Ken Smith for all tickets), my detail page (using the shortcode ESPRESSO_EVENT_ATTENDEES ticket_id=__] will not tell us when there are duplicates. So, is there a way to do any of the following:

1. Place a number behind the name when there are duplicates so we know to reach out to them to update the name.
Example:
Ken Smith (4)

2. Merely allow their name to appear multiple times.
Example:
Ken Smith
Ken Smith
Ken Smith
Ken Smith

or

3. Force them to put unique names in the registration fields.

I know that I can export and then look for dups in Excel or just scan the transactions, etc., but I was hoping for more options so those less technical on the staff can know the true count and names of people registered, etc.

Thank you


Josh

  • Support Staff

May 15, 2017 at 7:16 pm

Hi there,

The following steps show how you can add a number when there’s a group of registrations in one transaction:

Step 1: You add a copy of the espresso_event_attendees.php template to your theme by following this information:
https://eventespresso.com/wiki/ee4-shortcodes-template-variables/#event-attendees

Step 2: In your copy, find this code:

<li><?php echo $gravatar . '&nbsp;' . $contact->full_name(); ?></li>

and replace with this:

<?php 
$group_size = $contact->get_most_recent_registration_for_event( $event->get('EVT_ID') )->get( 'REG_group_size' );
$group_size = ( $group_size > 1 ? ' (' . $group_size . ')' : '' ); 
?>
<li><?php echo $gravatar . '&nbsp;' . $contact->full_name() . $group_size; ?></li>


killerkonceptz

May 15, 2017 at 7:31 pm

Will that output group total ONLY when duplicated or always when people buy in quantities greater than 1?


Josh

  • Support Staff

May 15, 2017 at 8:26 pm

It displays the number of registrations for the group when greater than 1.


killerkonceptz

May 16, 2017 at 11:54 pm

I will give it a try… thank you for the clarification!

Viewing 4 reply threads

The support post ‘Additional Event Registration Name Issue’ 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