Support

Home Forums WP User Integration WP User Registration After Ticket Purchased

WP User Registration After Ticket Purchased

Posted: May 9, 2017 at 9:17 am


ucancervive

May 9, 2017 at 9:17 am

We did not add WP User Registration until mid way through ticket sales. Creating a UN for them with a Subscriber role still does not show the tickets they purchased before registration. I am using the correct email.

Is there an adjustment I can make in their DB record or somewhere so there tickets will be associated with the login?

We want them to be able to access their account.

thank you.


Josh

  • Support Staff

May 11, 2017 at 1:39 pm

Hi there,

I’m sorry for the delay. It took some time to put together some documentation for how to do this, which you can find here:

https://gist.github.com/joshfeck/2165ff295c968f861cef8775fc8b1dc9


ucancervive

May 15, 2017 at 4:30 am

I tried this and there are a couple of things. When I click Run it does not work or look like it is working.
Also, for each ticket there are different attendee ids. so not sure which one to use. I was under the impression when someone purchased more than 1 ticket with their email they would have access to all tickets. I just checked and that is not working, they are ONLY showing the 1st ticket they purchased and not the second attendee, under the same purchase and email. Please help. thanks.


Tony

  • Support Staff

May 15, 2017 at 5:27 am

I tried this and there are a couple of things. When I click Run it does not work or look like it is working.

There won’t be any output, it just adds the value to user meta.

Also, for each ticket there are different attendee ids. so not sure which one to use. I was under the impression when someone purchased more than 1 ticket with their email they would have access to all tickets. I just checked and that is not working, they are ONLY showing the 1st ticket they purchased and not the second attendee, under the same purchase and email.

It’s not registrations made using the same email, its registrations assigned to the user’s contact, which means its registrations that matched the first name, last name and email address when the registration was placed.

Based on the above your users are purchasing multiple tickets and providing different details for each set of personal information questions but using the same email address for all, is that correct?


ucancervive

May 15, 2017 at 8:05 am

The first registration was made, then we added 11 free tickets under one registration. The email is the same and first name, for last name we changed so it says “last name – guest”.

But since we created the WordPress user registration after, I still do not see ANY tickets associated with the email address. How do I add the ticket to the WordPress User?


Tony

  • Support Staff

May 15, 2017 at 5:10 pm

The first registration was made, then we added 11 free tickets under one registration. The email is the same and first name, for last name we changed so it says “last name – guest”.

So those additional registrations with a different last name will not be assigned to the same ‘EE Contact’ as the first. The WP User Integration add-on will only show registrations that match the EE Contact by default, I have a different template for the add-on that may work in your use case, please don’t try to hack something together with user meta values to get this to work (You not be planning to but just incase).

Lets at least get the current expected behaviour to work for now.

But since we created the WordPress user registration after, I still do not see ANY tickets associated with the email address. How do I add the ticket to the WordPress User?

Hmm, so the user whose ID you used in the code Josh provided still has no ticket shown in their account?

In the Debug console try this code:


<?php
global $wpdb;
$user_id = XXX;
$meta_value = YYY;
update_user_option( $user_id, 'EE_Attendee_ID', $meta_value );
?>

It works slightly differently than Josh’s.

Be sure to update XXX with the user ID that should have the ticket assigned to it and YYY to the EE Contact ID as shown in the docs Josh provided.


ucancervive

May 15, 2017 at 6:54 pm

okay. so the second half with the new debug code worked. Awesome!

Then I tried to change the First Name, Last Name with the same email with the additional records and it did not show up under her WordPress user profile.

Also, ? – We had a spouse purchase two dinner tickets under his email, but he put his wife’s name down for the additional ticket. He should be able to see both tickets since her purchased them and the email is the same. Is there any way we can just use the WP User Profile to recognize the same email address for instances of people registering other people…and those other people there are not registrations created for them, only the primary registrant?
Thanks.


Tony

  • Support Staff

May 17, 2017 at 8:23 am

Then I tried to change the First Name, Last Name with the same email with the additional records and it did not show up under her WordPress user profile.

The registration won’t show up if you edit the details to match after the registration was made as each of the registrations will now have their own EE contact.

The First Name, Last Name and Email address must match when the registration is made in order for the registration to be assigned to the ‘main’ users contact.

Also, ? – We had a spouse purchase two dinner tickets under his email, but he put his wife’s name down for the additional ticket. He should be able to see both tickets since her purchased them and the email is the same. Is there any way we can just use the WP User Profile to recognize the same email address for instances of people registering other people…and those other people there are not registrations created for them, only the primary registrant?

This is the same as the above, the My Events does not pull the registrations using the Email address.

It looks for the EE Contact assigned to the current user and then pulls all registrations that are assigned to that contact.

To pull the registrations based on the email address you would basically need to build your own my events section as it’s not something EE currently uses.

Are you using the front end My Events section or just the admin one?

The support post ‘WP User Registration After Ticket Purchased’ 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  Tony 2 years, 6 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!