Support

Home Forums Event Espresso Premium How can I change the ESPRESSO_CHECKOUT pages?

How can I change the ESPRESSO_CHECKOUT pages?

Posted: January 9, 2020 at 5:32 am


codingforsail

January 9, 2020 at 5:32 am

Hi,

Our workflow is that a user can select their events and then select Add to Event Cart. The user is shown the modal window and from there they can select Proceed to Registration. The page they are then shown is to tell them that they must log in or register.

We would like to change that page so that the requirement to register is more obvious, as users try to Proceed to Attendee Information even if they are not registered.

One idea is to display the login and register forms on that same page.

How would I go about achieving either of those things?

Kind regards,

Anita


Tony

  • Support Staff

January 9, 2020 at 6:07 am

Hi Anita,

May I ask how you’d like to make the login requirement more obvious?

Changing the login prompt on checkout to allow user registrations will require custom development to include the registration fields and to actually register the user with those details, login them into the site in the background and process to the next step in checkout. It’s doable but you’ll need someone familiar with PHP, WordPress and EE to create something custom for you.

Note that one of the reasons we link the user to a registration page rather than including it within the checkout is to allow for custom user registration pages for various other plugins without custom development. For example, you can use any of the membership plugins to create a ‘nice’ registration page with various fields and link them directly to that, it can still require some custom code to function as intended but much less than doing the above.

Something that can be done fairly easily and may help a fair amount is to change the text/styling of the default login text shown there, this text:

The event you have selected requires logging in before you can register. You can register for an account here if you don’t have a login.

Would changing the appearance of that text work for you at all?


codingforsail

January 10, 2020 at 12:34 am

Hi Tony,

I’d like to minimise the amount of custom development required; we do use Ultimate Member to create the registration form.

I guess at a minimum I could add some CSS to underline the register link.

Is it possible to change the actual text, or display the register link as a button separate from the text?

I have created a site-specific plugin so that I can add customisations there.

Kind regards,

Anita


Tony

  • Support Staff

January 10, 2020 at 5:06 am

Sure, you can change the text using a function like this:

https://gist.github.com/Pebblo/e0b88c12988f1d12c16692e4d4554bf0

Set your custom text on line 10. My example just adds ‘Custom’ to the beginning of the string but you can change whatever you prefer the test to have.

The first %s is a place holder for – '<a href="' . $registration_url . '">'

The second is a closing a tag – </a>

So set your text and then add the button at the end, then use some CSS to style it to suit.


codingforsail

January 17, 2020 at 4:01 am

Thanks for that Tony. The string now reads, “To purchase the event(s) you have selected, you need to be logged in to your account. Please enter your account username and password to log in. If you don\’t already have an account, please click “Create an account”.<br /> <button>%sCreate an account%s</button><br />”.

Is it possible to also change the text of the button on that page, that reads, “Proceed to Attendee Information”?

I have looked and found how to customise other buttons but not this one.

Kind regards,

Anita


Tony

  • Support Staff

January 17, 2020 at 6:17 am

The string now reads

Nicely done 🙂

Is it possible to also change the text of the button on that page, that reads, “Proceed to Attendee Information”?

It is, but may I ask what you are changing it to? Only reason being is the button uses the ‘steps’ within the checkout process so it can be a little confusing when changing them.

We have some details on how to change the text here:

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

But I can help further if needed.

You must be logged in to reply to this support post. Sign In or Register for an Account

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: publish

Updated by  Tony 3 days, 18 hours ago ago

Topic Tags

Notifications

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