Support

Home Forums Event Espresso Premium Changing Button text on Registration Page

Changing Button text on Registration Page

Posted: May 21, 2019 at 7:36 am

Viewing 11 reply threads


Street Cop Training

May 21, 2019 at 7:36 am

Hi there, can you please advice how to change the text “Proceed to Payment Options” on the Registration page as per screenshot (link): https://i.imgur.com/IRqvmIl.jpg

Also, what file in the plugin files does this button located? We would like to tag the event for tracking and analytics purposes. Thanks in advance!


Tony

  • Support Staff

May 21, 2019 at 8:29 am

Hi there,

You can find examples of how to change the checkout button text here:

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

Also, what file in the plugin files does this button located? We would like to tag the event for tracking and analytics purposes.

Please do not modify the core plugin files, there is usually no need when EE has over 1600 filter hooks (search for FHEE_) and over 900 action hooks (search for AHEE_) within the core plugin alone. Then there are WordPress default hooks etc.

May I ask, what is it you’d like to add and in which location?


Street Cop Training

May 22, 2019 at 8:53 pm

Hi Tony, thanks for the quick response, we want to tag customers clicking the button as an Event with Google Analytics Event. Any idea how we can do this?


Street Cop Training

May 22, 2019 at 10:05 pm

By the way Tony, not sure if I should open another topic but would also want to ask regarding this issue about duplicate State fields on our registration form page: https://i.imgur.com/Kk9LUbw.jpg

To view this page, you can just follow this link to our Events Schedule page and just register to any events: https://bit.ly/2wnLf0N


Tony

  • Support Staff

May 23, 2019 at 7:23 am

we want to tag customers clicking the button as an Event with Google Analytics Event. Any idea how we can do this?

You could hook into the single_page_checkout JS output using wp_add_inline_script() to add your own Javascript to the page when that file is enqueued.

Here is a couple of examples of how you can use the above (none of which do what you want, but give you an example of how to use the above function):

https://gist.github.com/Pebblo/e67cc5f8fae20e5ae08380f43f5c3b93
https://gist.github.com/Pebblo/dcafaf00741fcfab5b162ca2edd15700
https://gist.github.com/Pebblo/19b04ccefc13e109ad52bdd73002907a

not sure if I should open another topic but would also want to ask regarding this issue about duplicate State fields on our registration form page: https://i.imgur.com/Kk9LUbw.jpg

Hmmm, I see.

If you go to Event Espresso -> General Settings -> Countries.

Select United States in the dropdown if it doesn’t load automatically, do you see 2 of every state listed there?


Street Cop Training

May 23, 2019 at 7:55 am

Regarding duplicate States, yes we see 2 for all the states

As for the example links you gave, will check that out and will let you know if I have any questions 😉


Tony

  • Support Staff

May 23, 2019 at 8:25 am

Do you already have registrations on this site or it is new?


Street Cop Training

May 24, 2019 at 9:20 pm

Yes we already have registrations, the only issue anyways was that the STATE field has duplicates on the Drop down list as per screenshot: https://i.imgur.com/YBFOJEf.jpg


Street Cop Training

May 24, 2019 at 9:48 pm

Regarding the hook into the single_page_checkout JS output, not really sure about this as we aren’t really JS programmers. Any idea how we can use that code to tag the clicking of the Proceed to Payment Options button event?


Tony

  • Support Staff

May 25, 2019 at 9:31 am

Yes we already have registrations, the only issue anyways was that the STATE field has duplicates on the Drop down list as per screenshot: https://i.imgur.com/YBFOJEf.jpg

Yeah, I understand the problem but if didn’t have registration you could have fixed this a different way that you’ll now need to (registration have a relationship to the states, so you can’t remove the states as you’ll cause errors when EE tries to pull them).

You’ll need to go back to the Countries tab I mentioned earlier, set the US and then for each of the states listed, set the duplicate to not show in the dropdown by setting the ‘State Appears in Dropdown Select Lists’ option to no. So you’l have one state with that option enabled and the other with it disabled.

Regarding the hook into the single_page_checkout JS output, not really sure about this as we aren’t really JS programmers.

I’m curious how else you would tag this button for tracking?

You wanted to modify core to add tracking, may I ask how would you have done that without JS?


Street Cop Training

June 9, 2019 at 9:04 am

Tony, we just want to tag the event when customers click on the button. Is there a way we can just edit the text to something different? Right now its an input field (Submit) and we can’t tag any HTML text.


Tony

  • Support Staff

June 10, 2019 at 7:08 am

Tony, we just want to tag the event when customers click on the button.

I understand that, but unless you meaning something different than how most users track button clicks you’ll need to use JavaScript to do it. EE doesn’t provide tracking by default but you can use some custom code to add it with the examples provided above.

If you mean you don’t know how to create the function to do so using Javascript you’ll need the help of a developer, we recommend the folks at codeable.

Is there a way we can just edit the text to something different?

Yes, but that’s separate from what you would do for tracking and analytics purposes. The link I provided in my first reply shows you how to do this:

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

Right now its an input field (Submit) and we can’t tag any HTML text.

I’m sorry, but I don’t understand what this means.

Can you add more details?

Viewing 11 reply threads

The support post ‘Changing Button text on Registration 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.

Event Espresso