Support

Home Forums Event Espresso Premium Returning to Event Registration Page after Login or Account Registration

Returning to Event Registration Page after Login or Account Registration

Posted: February 25, 2020 at 3:24 pm

Viewing 9 reply threads


surfersforautism

February 25, 2020 at 3:24 pm

How do we automatically send users who need to create an account during registration back to registration after creating the user account?

We’re using the WP Users Integration to force users to register an account or login before registering for an event. The problem is, when they click on register for an account here, and register a new account, they’re not returned to the Registration Checkout or better yet, the Attendee Information page?


Tony

  • Support Staff

February 26, 2020 at 2:16 am

Hi there,

EE already sets this up by default so what may be happening is another plugin is hooking into the new user registration process and overriding the redirect_url value EE sets.

Are you using a plugin to manage ‘members’ on the site? If so, which plugin?

Is there a test event I can register onto to view this?


surfersforautism

February 26, 2020 at 4:13 am

You are correct, the default registration does bring the new user back to the registration. Having said that, it was a bit confusing (most of our members are not tech savvy) because our new members thought they had to go to their email inbox then come back to the registration. In any case, we wanted to provide them with a more user friendly registration as well as collect their home address and mobile phone in the process.

We’re testing the free versions of Ultimate Member and Profile Builder, but open to suggestions.

Thanks, Glenn


Tony

  • Support Staff

February 26, 2020 at 8:34 am

You are correct, the default registration does bring the new user back to the registration. Having said that, it was a bit confusing (most of our members are not tech savvy) because our new members thought they had to go to their email inbox then come back to the registration.

Sorry but I dont follow this.

The default registration flow would have been:

1. Click to register onto an event.
2. User showing the login/register requirement clicks to register onto site.
3. Adds a username and email address and click register.
4. User is automatically logged in and redirected back to the checkout page at that point where they can continue to register onto the event.

In any case, we wanted to provide them with a more user friendly registration as well as collect their home address and mobile phone in the process.

That’s fine, but still doesn’t sound like the ‘default’ WP registration process. You can use a custom registration page but if you are using a plugin to create a different User registration flow (not EE registrations) then it may be ignoring the redirect_to value EE sends to the page.

I assume you are directing the user to a different registration page than the default WP one? Meaning you’ve set a new URL in Event Espresso -> Registration Form -> User intergration settings -> Registration Page URL?

We’re testing the free versions of Ultimate Member and Profile Builder, but open to suggestions.

You’re using both currently?

Which one are you using to create WP user from the EE event registration process?


surfersforautism

February 26, 2020 at 12:40 pm

At the moment, we are using Profile Builder. It uses a standard page /register that simply contains it register short code [wppb-register].


Tony

  • Support Staff

February 26, 2020 at 4:24 pm

Ok so I checked into profile builder and whilst it is possible to set up redirect url after a user is registered through it, profile builder needs to automatically log the newly registered user in before you get to that point and I can’t see a way to do it.

I can see how you can set a static url which can then be changed via a custom function, the value that shows to auto login doesn’t seem to work.

I’m assuming you are using the free version with no support?


surfersforautism

February 26, 2020 at 5:32 pm

Yes, I’m currently using the free version of Profile Builder but I’m not tied to that solution. Ultimate Member has the ability to redirect after registration. Is there a way to capture the referring page and use that.

I’m assuming you are using the free version with no support?


Tony

  • Support Staff

February 27, 2020 at 5:05 am

Sure, but you don’t need the referrer for this.

You want to check if you have an activate EE_Checkout and if you do then you can use that for the redirect url.

Something like this:

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

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

(Note whilst I’m not making any specific members plugin recommendation here, I’m not familiar with either plugins codebase at all but with Ultimate Member it took about 10 minutes to find the correct location/hook to do this within their code… Profile builder took a lot longer to decipher and even then not easily done. Just my 2 cents.)


surfersforautism

February 27, 2020 at 1:09 pm

Worked perfect, Thank You.

Now I just need to figure out how to sync the mobile phone and address in the event registration with the users profile so they don’t have to enter the information everytime.


Tony

  • Support Staff

February 27, 2020 at 1:15 pm

Here is an example of how you can autofill those details using previously answer questions:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/jf_filter_address_answer_for_wpuser.php

You could alter that to pull the details from the WP user account if needed.

Viewing 9 reply threads

The support post ‘Returning to Event Registration Page after Login or Account Registration’ 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