Support

Home Forums Multiple Event Registration Add-on Multi-Event Primary and additional attendee information confusing

Multi-Event Primary and additional attendee information confusing

Posted: March 7, 2016 at 1:24 pm


TLH Senior Center

March 7, 2016 at 1:24 pm

Hi there,
As I am mentioned before all of our attendees are 60 years and older and can get confused very easily. We have had several complaints for our attendees that the attendee “Person Information” gets confusing when registering for multiple events.

https://www.tallahasseeseniorfoundation.org/wp-content/uploads/2016/03/attendee-info.jpg <- In this example it appears as if there are 7 attendees, but really there is only one attendee for 7 unique events.

Ideally, could these be labeled “Primary Attendee”


Josh

  • Support Staff

March 8, 2016 at 12:33 pm

Hi there,

The exact text string you’re looking to change is

Attendee #%s

You can change that string to read as:

Primary Attendee

or alternatively:

Registration #%s

As mentioned earlier, a custom function can be used to make text string changes like this one. If you prefer that someone from Event Espresso support staff make this alteration on your site, we’ll require FTP access and a support token.


TLH Senior Center

March 9, 2016 at 11:55 am

Lorenzo got me started. This is what I have but it’s not working. I think I am really close. I will pay the $70 if needed. I just want it all to be in one site plugin.

<?php
/*
Plugin Name: Site plugin for tallahasseeseniorfoundation
Description: Site specific code for tallahasseeseniorfoundation

*/
/* Begin Adding Functions Below This Line; Do not include an opening PHP tag as this sample code already includes one!

*/

//* Change proceed to finalize registration button text in registration checkout
function

ee_custom_messaging_registration_checkout( $translated, $original, $domain ) {

$strings = array(

‘The event you have selected requires logging in before you can register. You can %sregister for an account here%s

if you don\’t have a login.’ => ‘The event you have selected requires logging in before you can register. New Users you can %sregister for an account here%s if you don\’t have a login. <h3>Returning Users</h3>’,

‘Attendee #%s’ => ‘Attendee Details’,

‘return to %s’ => ‘Return to %s’,
);
if ( isset( $strings[$original] ) ) {

$translations = get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );

}
return $translated;
}
add_filter( ‘gettext’, ‘ee_custom_messaging_registration_checkout’, 10, 3 );

/* Stop Adding Functions */


Lorenzo Orlando Caum

  • Support Staff

March 9, 2016 at 1:48 pm

Hello,

This works:

https://gist.github.com/anonymous/9527424b786c153b1842

Screenshot: http://cl.ly/161J1Q0r0D0K

Thanks


Lorenzo


TLH Senior Center

March 9, 2016 at 2:49 pm

Thanks Lorenzo for jumping in. I guess I thought that would address the “Attendee 1” label above the Personal Information heading. See screenshot.

https://www.tallahasseeseniorfoundation.org/wp-content/uploads/2016/03/attendee-1.jpg

Is it the same string? Or different?


Tony

  • Support Staff

March 10, 2016 at 12:47 am

Hi there,

That’s a different string, you need:

'Attendee %d' => 'Primary Attendee',

Add that to the list of strings to translate and retest.

Note you may also need to cancel the current registration by visiting the /registration-cancelled/ page and then re-register for the changes to show.


TLH Senior Center

March 10, 2016 at 11:13 am

Thank you. That;s perfect. Close ticket. Resolved.

The support post ‘Multi-Event Primary and additional attendee information confusing’ 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