Support

Home Forums Event Espresso Premium Customising text on 3 stages of registration process

Customising text on 3 stages of registration process

Posted: October 23, 2012 at 7:39 am

Viewing 9 reply threads


Nick Putman

October 23, 2012 at 7:39 am

Hi,

I would like to customize the text on the three ‘pages’/stages of the registration process, i.e. the Cart page (Multi Event Registration), the Attendee Details page and the Payment page. It would seem that all three pages are built on the Registration page, with the shortcode [ESPRESSO_EVENTS], and so whatever text I add here shows up on all three ‘pages’. I’d he happy to set up 3 divs which I could hide on pages that I didn’t want it to show on, but I can’t find any distinct css class to apply this to.

Is there a way of doing this?

Thanks,

Nick

  • This topic was modified 12 years, 2 months ago by Nick Putman.


Jonathan Wilson

October 23, 2012 at 11:03 am

Hello Nick,

What text are you wanting to modify?

The 3 files you will need to edit are:
1. shopping_cart.php (for the cart page).
2. confirmation_display.php (for the confirmation page).
3. payment_overview.php (for the payment page).


Nick Putman

October 23, 2012 at 11:40 am

Hi Jonathan,

I am just wanting to have different text above the cart, above the registration form where attendees enter their personal details, and above the payment overview, instructions as to what the stage/page is about. I was hoping that I could just add three DIVs to my Event Registration page, each with their own unique ID, and then hide the DIVs I don’t need on the different stages of the registration process. To do this of course I would need to have a unique parent class or id generated by the three templates, but I couldn’t see any unique divs.

If the only way to do this is adjust the templates themselves I will do this.

Nick


Jonathan Wilson

October 23, 2012 at 12:33 pm

Hello Nick,

Yes, modifying the templates will be the best way to go about it. Just be sure to move those template files into the /wp-content/uploads/espresso/templates/ directory to prevent your changes from being overwritten during an update of Event Espresso.


Chris Reynolds

  • Support Staff

October 23, 2012 at 12:37 pm

The ESPRESSO_EVENTS page is a “page” as much as a WordPress theme’s template file is a “page” (e.g. page.php). The shortcode basically triggers the entire process, from event list through payment, and calls different template files along the way based on where you are in the process. So, to make an analogy to WordPress, this would be like trying to add specific content that displays on various pages by editing a single page’s content OR trying to do the same with php by editing the page.php and doing a lot of is_page('some-page') checks to determine which message to display. You’d need to hack a lot of code to get it to work the way it sounds like you’re trying to get it to work.

On the other hand, this is why the template files in Event Espresso are template files, and why they are customizable — so these exact sorts of changes and modifications can be made. We fully realize that the checkout process may not be what everyone wants, and so have built a system that allows people to customize their user experience based on the overall design/experience of the site.


Nick Putman

October 23, 2012 at 12:38 pm

Thanks Jonathan. I will do just that.

Nick


Nick Putman

October 23, 2012 at 12:40 pm

And thanks for the info Chris. I am comfortable editing PHP files, so no problem, but it may be that offering an admin setting for additional text for these stages of the registration process would be a welcome added feature.

Nick


Jonathan Wilson

October 23, 2012 at 12:50 pm

You’re welcome, Nick. 🙂

I will also add your suggestion to our feature request so our developers will be aware of it.


Nick Putman

October 23, 2012 at 1:42 pm

It turned out that I needed to edit different files than those you suggested Jonathan, at least as far as I could tell from some experimentation.

shopping_cart.php was correct for the cart page.

but i needed to edit:

includes/process-registration/add_attendees_to_db.php

and

functions/cart.php for the final payment page

Am I right in thinking that these files can’t be moved to the uploads folder to preserve them during updates?

Nick


Dean

October 24, 2012 at 1:01 am

Hi Nick,

Generally it is just the templates and gateway files that can be copied (not moved) to the uploads folder.

Viewing 9 reply threads

The support post ‘Customising text on 3 stages of registration process’ 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