Home Forums WP User Integration Login/Register before Purchase

Login/Register before Purchase

Posted: May 9, 2016 at 6:46 am


May 9, 2016 at 6:48 am

I’m aware if they try and complete the purchase with an email that is already registered then it asks them to login using a popup… if there’s no solution maybe I can re-use that?


  • Support Staff

May 10, 2016 at 3:10 am

Hi there,

Currently it is not possible to setup EE to work similar to WooCommerce.

With the EE4 User Integration add-on you can require login for all registrations or EE will check if the details entered already have a user assigned to the EE contact saved within the database, if so then EE will require that user to log in. You can not skip that login without altering the registration details.


May 10, 2016 at 3:57 am

Thanks Tony,

What file/template is generating the event checkout page?

So I can try and add a line of text or a bordered box in, letting users know they should sign in before attempting to purchase a ticket.


  • Support Staff

May 10, 2016 at 8:05 am

Where exactly would you like to add the output?

Rather than editing the template there are multiple hooks available within EE which should allow you to add any output you need, it just depends on where you want it to place it.


May 10, 2016 at 8:24 am


Some pre-warning that they need to be logged in like: A bold bit of text in the blue marker from the attached image, saying ‘If you already have an account, please login before continuing.’

and an extra to make the fix perfect: show the login button that brings up the modal that you would receive if you had tried to continue with a current account.



  • Support Staff

May 10, 2016 at 11:56 am

This can be done using EE’s hooks. For example, the following is a code example that will add a log in message + button before the ticket selector and before the registration form:

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

You’ll note that the last line of code adds the message to the top of the ticket selector. This is recommended because if they log in before hitting the registration form page, their form will be auto-filled for them.


May 11, 2016 at 2:44 am

Thanks Josh,

That has done the job! 🙂 I would recommend that to be part of the User integration addon as standard. I’m sure other people would find it as useful as I did.

The support post ‘Login/Register before Purchase’ 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