Support

Home Forums WP User Integration Login/Register before Purchase

Login/Register before Purchase

Posted: May 9, 2016 at 6:46 am


robbstcs

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?


Tony

  • 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.


robbstcs

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.


Tony

  • 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.


robbstcs

May 10, 2016 at 8:24 am

checkoutpage

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


Josh

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

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.


robbstcs

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.

Status: closed

Updated by  robbstcs 3 years, 6 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.