Support

Home Forums Event Espresso Premium Primary Registrant – wrong names Reply To: Primary Registrant – wrong names

Reply To: Primary Registrant – wrong names

Author Replies
Josh # Posted on 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()
    ),
));
Do NOT follow this link or you will be banned from the site!