Support

Home Forums Event Espresso Premium EE4 – Need to make a few changes on the Registration-Checkout page

EE4 – Need to make a few changes on the Registration-Checkout page

Posted: April 19, 2019 at 6:54 pm


mbeede@tracom.com

April 19, 2019 at 6:54 pm

Greetings – I am using EE4 (the latest). I need to make some changes on the Registration-Checkout page. I have tried using Chrome Dev Tools but for these the CSS doesn’t seem to be working. How can change (or get at) the following:

* The introductory text “In order to process your registration, we ask…”

* The word “Details” before the table.

* The details table: Need to rename the Name/Desc and Qty columns, and remove the Price and Total column.

* Remove the “click here to add a new state/province” link

* Change the “Proceed to Finalize Registration” button text.

* FINALLY: Then the user clicks the submit button I need to add more functionality to the submit action (I actually need to make some external web service calls after the submit), but I just need to know the preferred way to extend the submit functionality (hook, more php, etc.)

Thanks in advance! – Mark


Tony

  • Support Staff

April 22, 2019 at 7:33 am

Hi Mark,

You wouldn’t use CSS to change the text itself, you could style or hide it, but to change the text you’ll use a snippet of PHP.

I’ll break each question down:

* The introductory text “In order to process your registration, we ask…”

What do you want to do with this text?

If you want to style it or completely hide is you can use CSS:

p.spco-attendee_information-pg {
    display: none;
}

If you want to change the wording you’ll need to use a snippet of code, if you let me know what text you want there I can give you an example snippet that shows you how to make that change.

* The word “Details” before the table.

Same as above really, what do you want to do with it?

* The details table: Need to rename the Name/Desc and Qty columns, and remove the Price and Total column.

Which details table is this? At first I though you meant the details shown on the ticket selector under ‘show details’ but that doens’t include a Qty field.

Can you add a screenshot that highlights the section you mean?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots

* Remove the “click here to add a new state/province” link

We have a snippet to disable that feature here:

https://gist.github.com/joshfeck/7bf112ee2dc9e49f7e3f14b8c2b59611

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

* Change the “Proceed to Finalize Registration” button text.

You’ll find some details an example of how to change that text here:

https://eventespresso.com/wiki/customize-checkout-registration-button-text/

* FINALLY: Then the user clicks the submit button I need to add more functionality to the submit action (I actually need to make some external web service calls after the submit), but I just need to know the preferred way to extend the submit functionality (hook, more php, etc.)

We need more details to knwo which method to advise you to use but likely using a hook with some PHP.

You’ll need to provide more specific details on when you want this to happen, as ‘on submit’ is too vague for use to give you an example or hook to investigate further with. For example, what should happen on a paid vs free ticket, if it’s a paid ticket and they use an offline payment method to finalize and so on, most of the options will require you use a different hook within EE4 to add your custom functionality.


mbeede@tracom.com

April 22, 2019 at 10:03 am

Tony – Thank you for the quick reply. Sorry I was too vague on some of the changes that i need to make. Let me be more specific:

1. Change the introductory text to “To register for your session please complete the following information. Please note that fields mark with an asterisk (*) are required”

2. Change the word “Details” to “Session Information”.

3. In the ticket details table change the “Name and Description” column header text to “Session”. Remove the “Price” column and “Total” column completely. I have a screenshot of the table I am referring to in the _wpeprivate folder on the “tracomtraining” site (called “Details Table Screenshot.jpg”)

4. For the Submit button. We will not be charging for any of the events that we put into EE. So they are all free. No payment/s. So after EE stores all of the WordPress database information for the new registrant, that would be where i would like to add the new functionality next. So I figured it would be a hook, I’m just not sure which one.

And would you recommend just adding this new functionality to functions.php on our theme, or should I create a new plugin for it? The plugin seemed like overkill to me.

Thanks – Mark


Tony

  • Support Staff

April 23, 2019 at 5:19 am

1. Change the introductory text to “To register for your session please complete the following information. Please note that fields mark with an asterisk (*) are required”

Ok, you’ll need a function like this:

https://gist.github.com/Pebblo/8ca7e0ada54d6b615eff8b76ded48461

Only your $strings array will look something like:

$strings = array(
    'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.' => 'To register for your session please complete the following information. Please note that fields mark with an asterisk (%2$s) are required',
    // Add some more strings here
);

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

2. Change the word “Details” to “Session Information”.

Sorry, which section is this from?

3. In the ticket details table change the “Name and Description” column header text to “Session”. Remove the “Price” column and “Total” column completely. I have a screenshot of the table I am referring to in the _wpeprivate folder on the “tracomtraining” site (called “Details Table Screenshot.jpg”)

Can you please just add the link to the image directly to your post, I have no idea where the above is.

4. For the Submit button. We will not be charging for any of the events that we put into EE. So they are all free. No payment/s. So after EE stores all of the WordPress database information for the new registrant, that would be where i would like to add the new functionality next. So I figured it would be a hook, I’m just not sure which one.

I’m assuming you want to use the registration details, so you can use:

AHEE__EE_Single_Page_Checkout__process_attendee_information__end

And would you recommend just adding this new functionality to functions.php on our theme, or should I create a new plugin for it? The plugin seemed like overkill to me.

functions.php essentially is a plugin, which is loaded on every single request made to your site.

Imo the argument of functions.php vs a plugin comes down to the functionality of the function itself. If you add the code to functions.php and at some point in the future change themes, that functionality you added is lost because it’s tied to the theme. None of the functionality you’ve requested so far would be considered a part of the theme, so imo it should be placed in a custom functions plugin. You don’t need a plugin per function, but group you functionality functions into a single plugin and use that for custom functions.

The support post ‘EE4 – Need to make a few changes on the Registration-Checkout page’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 2 months, 3 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!