Support

Home Forums Event Espresso Premium EE4 Template Customization (2)

EE4 Template Customization (2)

Posted: April 22, 2015 at 1:15 pm

Viewing 9 reply threads


Caitlyn Fagan

April 22, 2015 at 1:15 pm

I have been trying to find a way to customize templates in EE4, specifically I am wanting to customize the attendee_info_main.template.php. All I have been able to find is documentation for EE3 (https://eventespresso.com/wiki/put-custom-templates/) and what it suggest does not seem to work for EE4. (Or perhaps these templates come in pairs?) Do you have documentation for EE4 template customization?


Lorenzo Orlando Caum

  • Support Staff

April 22, 2015 at 3:34 pm

Hi Caitlyn,

What changes are you trying to make to that template?


Lorenzo


Caitlyn Fagan

April 22, 2015 at 4:32 pm

Hi Lorenzo,

I need the event date associated with the ticket that is being purchased to display.


Caitlyn Fagan

April 27, 2015 at 10:25 am

Just wanted to follow up and see if there is a way for me to customize templates for EE4 in a way that I am not changing core files (so they don’t get overwritten when I update the plugin), or if there is a way for me to add the event date associated with a ticket to the registration-checkout pages in a different way.

Thanks so much!


Lorenzo Orlando Caum

  • Support Staff

April 27, 2015 at 10:27 am

Hi, we found a problem in the template locate option that handles that and we have reported it to the developers. This is specific to the first page of registration checkout.

You can change the information that is shown on the payment page (step 2) by using this filter which can be added to your child theme’s functions.php file or a site specific plugin.

https://gist.github.com/mnelson4/5f800aaffedc9c794b3f


Lorenzo


Caitlyn Fagan

April 27, 2015 at 3:51 pm

Are you certain that this is targeting the correct filter? I tried adding it to my functions.php and it does nothing. I then tried:


function ee_revise_registration_checkout_line_item_desc(  $original_description, $line_item, $options ) {
    return 'Anything';
}
add_filter ('FHEE__EE_SPCO_Line_Item_Display_Strategy__item_row__desc', 'ee_revise_registration_checkout_line_item_desc', 10, 3);

and that did nothing.


Lorenzo Orlando Caum

  • Support Staff

April 27, 2015 at 4:08 pm

Hi, that sample coding won’t do anything but the sample coding in the link below works and should be added to your child theme’s functions.php file or via a site specific plugin:

https://gist.github.com/mnelson4/5f800aaffedc9c794b3f#file-functions-php

Again, it will only apply to the payment options page which is step 2 of registration checkout.

It does not affect step 1 where the attendee information is collected.

If it still does not work, then ensure your software is up to date:

https://eventespresso.com/wiki/ee4-changelog/


Lorenzo


Caitlyn Fagan

April 27, 2015 at 4:17 pm

It must be that I don’t have the most up to date version. I am using 4.6.18, but it is currently in development, so it is on my local machine that I push to a development server. It says for me not to add the support license key if this is a development site. So, how do I get the most up to date version?


Lorenzo Orlando Caum

  • Support Staff

April 27, 2015 at 4:35 pm

Alright, try manually updating:

https://eventespresso.com/wiki/updating-event-espresso/#update_manually

It was introduced as an enhancement in a recent maintenance release so manually updating should make it available for you.

Thanks for letting us know.


Lorenzo


Caitlyn Fagan

April 27, 2015 at 4:59 pm

That worked!

Thank you so much!

Viewing 9 reply threads

The support post ‘EE4 Template Customization (2)’ 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