Support

Home Forums Event Espresso Premium Primary Registrant – wrong names

Primary Registrant – wrong names

Posted: March 5, 2018 at 10:15 am

Viewing 10 reply threads


Allen

March 5, 2018 at 10:15 am

Hi, i am having a probelm with the way names are showing. The primary registrant name is not showing when I view under “Registrations” – but when I click the name that IS showing, the next page shows the proper name – so I cannot edit it.

Registration # 1279

it is 1/3 registrations – but the names are showing up all wrong. There is no “Add new contact” option showing up, and if I change the name in any one locaton – it changes on all registrations.

Hrd to explain. PLEASE PLEASE start to offer phone suport, even if it costs money – this is such a damn hassle.


Josh

  • Support Staff

March 5, 2018 at 11:41 am

Hi Allen,

Were these from before you switched the registration form to require information for additional attendees or after? If you can post a screenshot of an example we’ll be able to see exactly what you’re trying to communicate as well.


Allen

March 5, 2018 at 2:19 pm

Ok, here is another example of the weirdness. This entry came in today (after I’ve updated the form) … Christina paid, and I can see it in paypal – yet, it is not on the list.

However, Lai Li is on the list twice – yet one of her entries was cancelled on back-end (it was Pending prior to being Cancelled – I Cancelled it thinking that would solve the double problem. It did not)

Screenshots


Allen

March 5, 2018 at 2:20 pm

Not sure why the quality of that image is so bad – I can email you a PDF if you give me address


Josh

  • Support Staff

March 5, 2018 at 2:49 pm

Hi Allen,

Christina’s registration status is Pending Payment so PayPal may not have sent the “Instant” payment notification back to your site. In which case you can go to Event Espresso > Registrations and manually set Christina’s registration to Registration Approved status.


Allen

March 5, 2018 at 2:55 pm

Is that maybe why soooo many of my Registrants have a “Pending” listing and then shortly later an “Approved” listing?

Both show up in my list, and then both get published on Front end website. This is both confusing and a hassle to fix.

Would be much better if the “Pending” listing updated itself to “Approved” rather than remain as two separate listings … can I make that happen some how?

And any idea why Lai Li (and many others) remain displayed twice?


Josh

  • Support Staff

March 5, 2018 at 3:20 pm

You might ask some of the folks registering on your site why they’re signing up more than once. That’s what’s causing two separate listings there.


Allen

March 5, 2018 at 3:45 pm

Maybe some people start the process and come back later? I dunno..

But why does it show up on the list after I mark it cancelled? You can see it says Cancelled in screenshot above.


Josh

  • Support Staff

March 5, 2018 at 3:50 pm

Usually this can be resolved by adding a parameter to the attendee list shortcode. e.g.

[ESPRESSO_EVENT_ATTENDEES status=RAP]

If that doesn’t resolve this then there may be something in your custom templates that’s overriding the status check and making so cancelled registrations also show up there.


Allen

March 5, 2018 at 5:33 pm

by custom templates, do you mean the content-espresso_event_attendees.php file?

I tried adding your parameter to one of the pages – didn’t fix the issue.

<?php
/**
 * Content Template for the [ESPRESSO_EVENT_ATTENDEES] shortcode
 *
 * @package Event Espresso
 * @subpackage templates
 * @since 4.6.29
 * @author Darren Ethier
 *
 * Template Args that are available in this template
 * @type EE_Attendee $contact
 * @type bool       $show_gravatar  whether to show gravatar or not.
 */

if ( $show_gravatar ) {
	$gravatar = get_avatar( $contact->email(),
		(int) apply_filters( 'FHEE__loop-espresso_attendees-shortcode__template__avatar_size', 32 )
		);
} else {
	$gravatar = '';
}

$states = EEM_State::instance()->get_all_states();
$state = isset( $states[ $contact->state_ID() ] ) ? $states[ $contact->state_ID() ]->get( 'STA_name' ) : $contact->state_ID();
$state = ! is_numeric( $state ) ? ', ' . $state : '';
$countries = EEM_Country::instance()->get_all_countries();
$country = isset( $countries[ $contact->country_ID() ] ) ? $countries[ $contact->country_ID() ]->get( 'CNT_name' ) : $contact->country_ID();
$country = ! empty( $country ) ? ', ' . $country : '';

$registrations = array();
if ($contact instanceof EE_Attendee) {
    $registrations = EEM_Registration::instance()->get_all(array(
        array(
            'ATT_ID' => $contact->ID(),
            'EVT_ID' => $event->ID()
        ),
    ));
}
foreach($registrations as $registration ){
  if($registration instanceof EE_Registration){
    echo '<li>' . $gravatar . '&nbsp;' .  $contact->full_name() . ' ' 
    . ' &ndash; ' 
    . '<span style="color:#C0C0C0;">'
    . $contact->city()
    . $state 
    . '</span>'
    . '</li>';
    
  }
}
    
do_action( 'AHEE__content-espresso_event_attendees__after', $contact, $show_gravatar );

Thats what I have on the custom page. Not sure what else you’re alluding to.

So why do pending and cancelled registrations show up?


Josh

  • Support Staff

March 5, 2018 at 6:31 pm

The pending and cancelled registrations show up because your custom template code doesn’t filter out pending payment status or cancelled status registrations. You can add a check for “Approved” only registrations by adding to your query:

$registrations = EEM_Registration::instance()->get_all(array(
    array(
        'ATT_ID' => $contact->ID(),
        'EVT_ID' => $event->ID()
    ),
));

change to this:

$registrations = EEM_Registration::instance()->get_all(array(
    array(
    	'STS_ID' => 'RAP',
        'ATT_ID' => $contact->ID(),
        'EVT_ID' => $event->ID()
    ),
));
Viewing 10 reply threads

The support post ‘Primary Registrant – wrong names’ 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