Hi all,
I have 1 Event with 2 tickets.
I have WP User Integration and also MemberPress. I have WP User Integration turned on for the Event to create a User when ticket is purchased and I have assigned a default role for that User. I also have some code that when a new USer has this role then it is automatically assigned a certain MemberPress Membership.
My questions is can I ONLY have a User created when someone purchases Ticket 1 and not if they purchase Ticket 2 in the Event?
If so, can you share the code or point me in the direction ?
We don’t have the option to selectively create WP_User accounts based on the ticket currently, by default, EE will create a WP_User account for the primary registrant regardless of which ticket they register onto.
However, if you are comfortable with PHP, as the WP User integration add-on hooks into the single-page checkout process what you can do is remove the current hook and replace it with your own function which then gives you full control of what happens during the checkout.
For example, here is an example of doing just that so that the WP User integration add-on can process WP Users for all of the registrations created in a group:
That’s effectively replacing the current add-on’s function with a custom one.
—
I assume this is a ticket which includes membership and another that does not?
How are you identifying the two tickets?
Viewing 1 reply thread
The support post ‘1 Event 2 Tickets – 1 Ticket a user is created. Other ticket user is not’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.