Posted: May 9, 2016 at 6:46 am
|
Hi, I’ve got the plugin WP User Integration and there is a slight problem. First time users can buy an event ticket nicely, but returning customers there’s no option to login from the events checkout pages. I’m wondering if there is a solution similar to WooCommerce where on the entering of their information there is a little notification to ask them to login if they have an account or continue normally below. |
|
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? |
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. |
|
|
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. |
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. |
|
|
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. Thanks |
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: https://gist.github.com/joshfeck/c68d410fcd53cf2c65b60c93f04b1d9e 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. |
|
|
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.