Posted: 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 |
|
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:
Would changing the appearance of that text work for you at all? |
|
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 |
|
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 – The second is a closing a tag – So set your text and then add the button at the end, then use some CSS to style it to suit. |
|
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 |
|
Nicely done 🙂
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. |
|
Hi Tony I only wanted to change the text of the link, not where it goes to. So, in this case I have got it set to “Login and go to Attendee Information step”. It doesn’t seem that a logged in user sees this step. If that’s right I can remove my test for whether the user is logged in. Kind regards, Anita |
|
Sorry, I don’t follow. I didn’t mention changing where the button directs the user to so not sure what this is in relation to?
Correct, a logged-in user will skip the login reg step and so would go straight to step 2, at which point the checkout test will use ‘Proceed to Payment Options’ by default. |
|
Hi, It was just meant as confirmation that I didn’t want to change the function of the steps; being as you said that changing the text may be confusing. I have removed the test. Thanks for your help. Kind regards, Anita |
|
Ah, sorry, I understand now and you’re most welcome. Any further questions just let us know. |
|
The support post ‘How can I change the ESPRESSO_CHECKOUT pages?’ 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.