Support

Home Forums Event Espresso Premium Overriding attendee_information templates

Overriding attendee_information templates

Posted: April 22, 2015 at 6:54 am

Viewing 4 reply threads


Biznetaucoeur

April 22, 2015 at 6:54 am

Hello !
I would like to know if there is a way to override the modules/single_page_checkout/templates/attendee_information template files please ?
I tried to put the files in my theme, with and without their attendee_information directory, as well as in uploads/espresso templates, but it seems like those aren’t taken into account.

Thank you already !


Lorenzo Orlando Caum

  • Support Staff

April 22, 2015 at 2:37 pm

Hi, could you tell us about the changes that you are trying to make?

I believe that template handles the top part of the registration checkout page where the attendee information is collected.


Lorenzo


Biznetaucoeur

April 24, 2015 at 2:55 am

Hello, there are a few fields which aren’t translated, so I try to override the templates to force it into french (I only need a mono-language website atm).
On the registration page, it is the term “Attendee” found in the <legend class=”spco-attendee-lgnd”> which I would like to override.


Dean

April 24, 2015 at 5:32 am

Hi,

The closest I can find to what you mentioned is:

\event-espresso-core-reg\modules\single_page_checkout\inc\EE_SPCO_Reg_Step_Attendee_Information.class.php:
'layout_strategy' => new EE_Fieldset_Section_Layout(
array(
'legend_class' 	=> 'spco-attendee-lgnd smaller-text lt-grey-text',
'legend_text' 	=> sprintf( __( 'Attendee %d', 'event_espresso' ), $attendee_nmbr )
)

This should be translatable though it’s possible the string hasn’t been added to the language files yet.

You could add it to the PO file (and recreate the MO file) or use a gettext function to target it. The actual string to translate would be “Attendee %d”. The %d is important and needs to remain in any translation as it will display the attendee number.


Biznetaucoeur

April 24, 2015 at 5:53 am

Thank you !

it indeed didn’t appear in the .po, and after adding it, it is now translated.

Viewing 4 reply threads

The support post ‘Overriding attendee_information templates’ 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