Support

Home Forums WP User Integration Will WP Users Integration work with multiple registrations per order?

Will WP Users Integration work with multiple registrations per order?

Posted: December 16, 2015 at 2:29 am


BCPTA

December 16, 2015 at 2:29 am

Hi,

We are wondering if the WP user integration will work with the ability to register multiple people on one transaction per order?

https://eventespresso.com/wiki/wp-user-integration/#ee4installation

What we need to happen is:

One person is registering multiple people for an event, or is doing a bundle purchase of tickets

That person enters Name, email, etc. to register each individual person.

Those e-mails get associated with a WP User

Upon registrations and payment being complete, those users get bulk-enrolled in a LearnDash course (we have the LearnDash add-on installed as well).

Is this possible?

More references in case anyone else is searching about this:
https://eventespresso.com/features/multiple-attendee-registration/
https://eventespresso.com/features/multiple-ticket-pricing-options/


Lorenzo Orlando Caum

  • Support Staff

December 16, 2015 at 6:30 am

Hi Johanna,

In the scenario that you described, the information would be associated with the primary registrant. This applies if there is a single ticket or multiple tickets.


Lorenzo


BCPTA

December 16, 2015 at 5:47 pm

Is there a way to get all registrants for an event to become users in WP, or enrolled in the classes?

Would all those registrants be included in our batch message send, or Contact list, or would the message only be sent to the one person who bought multiple tickets?

Is there a way to accomplish this?

Is this on any planned releases of the plugin?


Josh

  • Support Staff

December 21, 2015 at 9:45 am

Is there a way to get all registrants for an event to become users in WP, or enrolled in the classes?

Yes. You can make this happen by setting the ticket limit per order to 1.

Would all those registrants be included in our batch message send, or Contact list, or would the message only be sent to the one person who bought multiple tickets?

If you allow more than one registration per order, then they will be included in your batch message send/contact list, as long as they input a unique email address for each registrant.


BCPTA

December 21, 2015 at 9:32 pm

Yes. You can make this happen by setting the ticket limit per order to 1.

Yes, but then can we still register multiple people per order, if the ticket limit is 1?

We want to be able to register multiple people per order, have all of those people become WP Users, and thus all enrolled individually into LearnDash courses, with their own logins.


Josh

  • Support Staff

December 22, 2015 at 8:18 am

No the software does not register multiple people per order and at the same time creates a user account for each ticket/registrant. Instead what it does is check before it creates a user account, it checks to see if the registration is the Primary Registrant, and if it’s the primary registrant, it creates a user account for them.

If you have a PHP developer on your team or contract with a third party developer we can point out where in the code it adds this check and with that info they should be able to write an extension method or function that make additional user accounts for all registrations in one order.


BCPTA

December 22, 2015 at 4:18 pm

Thanks Josh, Lorenzo actually already told me this earlier in the thread.

there is one outstanding question:

Is this on any planned releases of the plugin?


Josh

  • Support Staff

December 23, 2015 at 8:08 am

Hi Johanna,

We are not planning on adding this into the plugin. The reason we did not build it into the plugin in the first place is because we went with the decision to only create the user account for the primary registrant. This decision is based on the user experience of Event Espresso 3 and is what fits the majority of use cases.

One reason we are not going to add it is the hooks are in place to make this sort of modification possible. Another related reason why we don’t add this is because if a feature like this one were to be added, there would either need to be a decision made to make this the new default, or add an option. Then, the following additional decisions would need to be made on the behalf of users, or they be given more options in order to handle scenarios that include:

  • What if the person doing the registration is logged in? Do new user accounts still get created for any additional registrations?
  • What happens if there is already a user account matching the email address for one of the registrations? How should this be handled?
  • Related to the above, validation will have to be done on the provided info for each registration as related to WordPress user accounts (and appropriate error response handling if it doesn’t validate)?
  • What happens if the registration form is setup to allow the copying of info to multiple registrations?

One of the more powerful, yet hidden, features of Event Espresso is its extensive hooks/API system that allows for developers to extend the default functionality. This then allows for you to contract with a developer, then you tell them your decisions for the above scenarios. Then they can build out an extension that meets your specifications without doing any edits to the plugin.


BCPTA

December 24, 2015 at 7:17 pm

Hi Josh,

The thing that I don’t get is that in these support threads what I’m hearing from you guys is that you don’t know how to make a decision about something, so you’re just not making it. I don’t think these are insurmountable issues that can’t be solved, or at least given to the control and choice of a user.

There are also other systems out there that can handle these questions fine.

So for example:

What if the person doing the registration is logged in? Do new user accounts still get created for any additional registrations?

Yes, why would this not be the case? We are trying to make new users on a single order with bulk registrations for an event.

What happens if there is already a user account matching the email address for one of the registrations? How should this be handled?

A popup that says “this email already exists, do you want to add this registration to that account? If not, please use another email” Then user selects yes or no. Simple.

Related to the above, validation will have to be done on the provided info for each registration as related to WordPress user accounts (and appropriate error response handling if it doesn’t validate)?

Yes, why is that a setback? Why can’t they just get an email that says “you have an account on this website now, because so-and-so registered you for an event.” Why would this be a prevention to moving forward with a desired user feature?

What happens if the registration form is setup to allow the copying of info to multiple registrations?

Then it copies. Is that problematic? If it can’t create new user accounts with duplicate data (username and email), then a pop up says “sorry, you can’t proceed without unique usernames and emails. These already exist.”

I know I may be giving you answers that you feel are over simplified, but this just doesn’t seem like a reason to not move forward on something, only because you can’t make a decision about what will happen. And I’m getting this answer on other posts as well. I don’t think it’s right to say “we don’t know what to do, so we’re not going to do anything, go pay someone to do it.” I do feel you should be more proactive as a company in responding to user requests like this. It’s not like we’re asking you to put time, money and resources into creating a brand new integration just for us. These are things that have applicable use cases for your already-advertised features.

I understand people can pay developers to customize this plugin to their needs, but what we’re bringing up here is not really so specific that it wouldn’t be applicable or useful to others. If someone buys the WP User Integration, which is a hefty price for what it does, by the way, that person would then expect that users will be integrated with registrations. This is why they buy it. This is why we bought it. So it’s not unreasonable to expect these controls to be in place, with simple solutions as outlined above.

The problem with an organization like ours to pay a developer to customize this is, what happens when there are updates? We pay again, and again for this feature? Just to be able to use two features that are advertised, that we paid for, but that won’t ‘link’ together? We are a non-profit run by volunteers. We chose your plugin above others because it met our needs the most with LearnDash and PaidMemberships Pro integrations (using WP Users Integration). So we are happy about that. But this is unexpected.

We don’t mean to be difficult with you, but as you can tell, this is a frustration that we are facing a dead end here with this.


Josh

  • Support Staff

December 28, 2015 at 3:09 pm

Hi Johanna,

I’m sorry you’re frustrated, this is not what we wanted to happen. I am also sorry that you have concluded at this point you are at a dead end.

I can give you some background information about our decision making process, and with that I hope you can understand that the reason we haven’t added the feature that you’ve requested here is not because we’re avoiding decisions. It turns out the decision was made to build the WP User integration to only create a new user account for the Primary attendee. This decision was in part influenced by the user surveys, feedback from customers, and also influenced by the philosophy outlined here.

For those that want features like a user account for every attendee in a transaction, we’ve made sure to include the hooks so the plugin can be extended. The hooks can be used to override specific parts of the plugin and the customizations that use the hooks can continue to function even after there are updates to the main WP Users Integration plugin.

Here’s an example of a plugin that includes your desired functionality. You can download it for free by clicking on the download ZIP button. After you download it, you can install it onto your WordPress site just like any other WordPress plugin.


BCPTA

January 8, 2016 at 1:11 am

Hello Josh, first of all thank you very much for your effort put into this. It is not unnoticed and we super appreciate your kindness in helping us.

However, I tested your plugin but it was not successful:

It did not create a user for the second attendee (I tried to buy 2 tickets)

It did not notify or stop me from using an existing email for the original registrant (perhaps that was intended though)

I also got an endless ‘spinning’ of the gear icon that just wouldn’t stop until I hit refresh. Hitting refresh on my browser took me to the page to finalize payment by clicking to go to paypal. But it loads and takes me to the footer directly, where I have to scroll up to click the button to finalize registration.

I’m not sure if that’s related. I’ll start another thread if need be about the endless spinning.

Payment works and the invoice shows the two registrants.

Thanks


BCPTA

January 8, 2016 at 1:24 am

Actually I need to correct the above response:

The payment was made in paypal and we got back to the confirmation page on the site, which says:

CONGRATULATIONS
Your registration has been successfully processed.
Check your email for your registration confirmation or click the button below to view / download / print a full description of your purchases and registration information.

But this is very misleading wording because below that it says that payment is pending and also allows the downloading of an invoice. This is not right – is this something you’ll be fixing in your plugin? If a registration is pending payment it should not have a success message, right?

I manually approved payments (which is strange to have to happen), but it still did not create a new user account.


BCPTA

January 8, 2016 at 1:25 am

More info:

I did get this message with another endless spinning gear icon, which continues to spin even after refreshing the page to view that payment had been “approved” (because I did it manually):

https://cloudup.com/cBU9tF59Bua


BCPTA

January 8, 2016 at 1:48 am

I think it was a plugin conflict, sorry.
I looked in the forum to figure out how to solve the endless spinning gear icon. When I turned on debugging I saw errors related to Import Users from CSV plugin. When I deactivated it, I tested this all again and it worked:

User is created
Endless spinning wheel is gone
payment shows as approved when returning from Paypal

I wish I could edit or delete these posts so you don’t have to read through them all when no longer needed. Sorry for the confusion.


BCPTA

January 8, 2016 at 2:02 am

Ugh, ok, sorry Josh, but this time I think I found a real bug, and I tested first before writing this out.

Hi there,
I’m testing manual registrations on EE4 Version 4.8.29.p

When your sample plugin is activated:

The strange thing is that when I enter a registrant’s first name and last name, it is updating the first name and last name of the admin account that is used to make the manual registration.

This is not right since admin should have their own first name and last name, especially if it is going to appear throughout the site on published posts.

I tried this twice, and both times it just changes the name of the administrator account that created the manual registration.

Do you know of a fix for this?

For others reading this we also have:

WP User Integration Version 2.0.8.p

WP Version 4.4.1–en_CA

EE User extension made by Josh on Github here

Deactivating the EE user extension made by Josh removes this issue.

Thanks!


BCPTA

January 8, 2016 at 2:55 am

I also discovered this plugin add-on won’t work if a registration is manually approved. Meaning, a user account won’t be created if a registration needs to be manually approved.

This is problematic because we are getting the “Pending Payment” again after returning from a Paypal purchase.

Is this fixable? Or is it entirely dependent on information data being sent by Paypal? I heard that is the ‘trigger’ for enrolling in courses with LearnDash from EE4, which we ultimately need it to do when creating a user account.

BUT you know what I think it is?

When you are paying on paypal, you can see a link that says “return to….” after your payment is complete

After that you get taken to a page that says if you’re not redirected within 10 seconds to “click here” on a link.

When you click on that link before the 10 seconds is up, the payment on the EE success page seems to be instant and the “approved” shows up.

But if you wait for the 10 seconds to automatically direct you back, that’s when “pending payment” appears.

I’m pretty sure. This happened twice and that’s the only thing I can think of that would cause “pending payment.”

I tested again by clicking and NOT waiting for the 10 seconds to be up before being redirected, and the payments show “complete” and registrations “Approved” right away.

Can you help? Is this a topic for another thread related to EE4 core?

BUT also…

If, while waiting on “pending payment” (which a user wouldn’t know to wait for), you click to “view payment options” and repeat your Paypal payment, you then come back to an “approved” registration status (after NOT waiting for the 10 seconds explained above), the success page says “Incomplete” on the transaction. See here:

https://cloudup.com/cTxNXnoFDXm

The invoice link also says “incomplete” but the registration codes say “approved.”

ANOTHER ISSUE:

The plugin you’ve created, I can confirm, is only registering the SECOND attendee into the course that is associated with the LearnDash course tied to an event. It doesn’t register the initial attendee.

I’ve only tried it with 2 so far.

Do you know why this is?


Josh

  • Support Staff

January 8, 2016 at 7:49 am

Hi Johanna,

You have reported a lot of issues here. I’m going to help point you in the right direction starting with the one on the bottom, we’ll focus on them one at a time and work our way up through the list.

You reported:

The plugin you’ve created, I can confirm, is only registering the SECOND attendee into the course that is associated with the LearnDash course tied to an event. It doesn’t register the initial attendee.

It turns out that Event Espresso does not register any of the users into Learndash course. That’s the function of the Learndash plugin. So with that in mind, with the the extension that I built for you deactivated, does Learndash register both attendees or just the first one?


BCPTA

January 10, 2016 at 2:18 am

Hello Josh,

I tested this twice.

The second time answers your question:

with the the extension that you built for us deactivated, ONLY the FIRST attendee gets enrolled in the course, and becomes a user on the site under “Users”.

That means the SECOND attendee does not get enrolled and does not become a user on the site as a result of becoming enrolled.


I know this is not your initial question here that you’re trying to go through one by one, but I thought to mention this:

The first test had the same problem mentioned above where:

When clicking in Paypal to “return to _____” and then waiting 10 seconds, the “pending payment’ problem never goes away and the transaction is never “complete” in EventEspresso – even though I logged in and clicked to pay in Paypal.

BUT in this initial test, the ‘FIRST’ attendee became a user under WP Users, but was not enrolled in any course. The ‘second’ attendee never became a ‘user’ in WP and therefore could not be enrolled in a course.

I am pretty sure there is an IPN problem here.

On the second test I clicked to NOT wait the 10 seconds, and initially I had “pending payment” but it got “approved” soon after, but only when I refreshed the page (a user may not know to do this).

I couldn’t replicate this “pending payment” problem when checking out to buy 1 ticket. It works fine and shows “approved” when waiting, or not waiting the 10 seconds on Paypal to return to the site. I can’t isolate what it is exactly, but something is up.


Josh

  • Support Staff

January 11, 2016 at 10:50 am

Hi Johanna,

If you have any issues with Learndash enrollments not working as expected, please contact Learndash support.


BCPTA

January 12, 2016 at 1:01 am

Hello Josh,
Thanks, I can do that.

I’m curious if you will be able to answer the other questions in this thread?

Here is one:

https://eventespresso.com/topic/will-wp-users-integration-work-with-multiple-registrations-per-order/#post-187066

Also this one:
I also discovered this plugin add-on won’t work if a registration is manually approved. Meaning, a user account won’t be created if a registration needs to be manually approved.
This is problematic because we are getting the “Pending Payment” again after returning from a Paypal purchase.

And the question of the possible IPN issue and ’10 second’ issue?

Thanks again for your help.


Josh

  • Support Staff

January 12, 2016 at 8:57 am

So for this one:

The strange thing is that when I enter a registrant’s first name and last name, it is updating the first name and last name of the admin account that is used to make the manual registration.
This is not right since admin should have their own first name and last name, especially if it is going to appear throughout the site on published posts.
I tried this twice, and both times it just changes the name of the administrator account that created the manual registration.
Do you know of a fix for this?

What this sounds like is when the admin is creating the manual registration, they’re inputting their own email address instead of the email address that belongs to the person they are registering for. Which email address are they filling out on the form? Their own or someone else’s?

Then for this one:

I also discovered this plugin add-on won’t work if a registration is manually approved. Meaning, a user account won’t be created if a registration needs to be manually approved.
This is problematic because we are getting the “Pending Payment” again after returning from a Paypal purchase.

Can you check to see what you have set for Default Registration Status in the event editor? Generally that should be set to pending payment.

And the question of the possible IPN issue and ’10 second’ issue?

I mentioned this earlier, but it might have gotten lost with other things. Did you try this without the LearnDash integration activated?


BCPTA

January 12, 2016 at 10:05 am

Hello Josh,

I’ll reply below to this one, then the others:

So for this one:
The strange thing is that when I enter a registrant’s first name and last name, it is updating the first name and last name of the admin account that is used to make the manual registration.
This is not right since admin should have their own first name and last name, especially if it is going to appear throughout the site on published posts.
I tried this twice, and both times it just changes the name of the administrator account that created the manual registration.
Do you know of a fix for this?

Josh’s reply: What this sounds like is when the admin is creating the manual registration, they’re inputting their own email address instead of the email address that belongs to the person they are registering for. Which email address are they filling out on the form? Their own or someone else’s?

This is definitely happening only when the “enhanced users” plugin is activated. I just tested it again. Here is a screenshot of what I entered as an Admin: https://cloudup.com/ckb0QZv4ZOh And then it for sure did this to my Admin user’s name: https://cloudup.com/caA30nIQ-js

I tested without that plugin activated and it did not perform this way.


BCPTA

January 12, 2016 at 10:09 am

Then for this one:
I also discovered this plugin add-on won’t work if a registration is manually approved. Meaning, a user account won’t be created if a registration needs to be manually approved.
This is problematic because we are getting the “Pending Payment” again after returning from a Paypal purchase.

Josh’s reply: Can you check to see what you have set for Default Registration Status in the event editor? Generally that should be set to pending payment.

I haven’t been changing these – they are set to “Pending Payment.”

But I don’t want to set it to “approved” in case their payment doesn’t go through because of any potential IPN issues or declined credit card, or what not.

Is that what you’re suggesting?


Josh

  • Support Staff

January 12, 2016 at 12:21 pm

This is definitely happening only when the “enhanced users” plugin is activated. I just tested it again. Here is a screenshot of what I entered as an Admin: https://cloudup.com/ckb0QZv4ZOh And then it for sure did this to my Admin user’s name: https://cloudup.com/caA30nIQ-js

I’m not seeing this happen on my test sites. We may not be on the same page here though. So I will ask some questions and your answers are important:

1) Are these registrations being made on the front end of the site? Yes or No. If Yes, then you really should not be logged in if you also want a new user account created. It seems to work that way anyway with the extension plugin, but it’s really not intended because the form autofills the existing user’s information. If No, then you’re adding the registrations from the back end, which shouldn’t create or update user accounts.

2) Can you try the test with only these 3 plugins activated? Event Espresso core, WP Users, and the extension add-on that I built for you?

But I don’t want to set it to “approved” in case their payment doesn’t go through because of any potential IPN issues or declined credit card, or what not.
Is that what you’re suggesting?

No, this is what I said earlier and I really do mean it! “Generally that should be set to pending payment.”

This is also not something I’m seeing while testing. If the reg status is set to Pending Payment, they finalize the registration, and the event is set to create a new user, they will get a user account. You can activate one of the off-line payment methods like Invoice and Check, make a registration on the front end, then after you Finalize a registration there will be a new user account created from their registration information.


BCPTA

January 13, 2016 at 8:08 am

Hello Josh,

For this one:

original: This is definitely happening only when the “enhanced users” plugin is activated. I just tested it again. Here is a screenshot of what I entered as an Admin: https://cloudup.com/ckb0QZv4ZOh And then it for sure did this to my Admin user’s name: https://cloudup.com/caA30nIQ-js

JOSH’S REPLY: I’m not seeing this happen on my test sites. We may not be on the same page here though. So I will ask some questions and your answers are important:

1) Are these registrations being made on the front end of the site? Yes or No.

No.

If Yes, then you really should not be logged in if you also want a new user account created. It seems to work that way anyway with the extension plugin, but it’s really not intended because the form autofills the existing user’s information. If No, then you’re adding the registrations from the back end, which shouldn’t create or update user accounts.

It is updating user accounts when manually registering them in the back end.

2) Can you try the test with only these 3 plugins activated? Event Espresso core, WP Users, and the extension add-on that I built for you?

Yes, I had only these activated: https://cloudup.com/cfyLCnjjTdS

I used this info to add a registrant to an event in the back end: https://cloudup.com/cC95o0Z_P-O

And it turned my Admin account name to this: https://cloudup.com/cXVYUGnLeiW


BCPTA

January 13, 2016 at 8:29 am

For this one:

But I don’t want to set it to “approved” in case their payment doesn’t go through because of any potential IPN issues or declined credit card, or what not.
Is that what you’re suggesting?

JOSH’S REPLY: No, this is what I said earlier and I really do mean it! “Generally that should be set to pending payment.”
This is also not something I’m seeing while testing. If the reg status is set to Pending Payment, they finalize the registration, and the event is set to create a new user, they will get a user account. You can activate one of the off-line payment methods like Invoice and Check, make a registration on the front end, then after you Finalize a registration there will be a new user account created from their registration information.

This is ok now with only these plugins activated: https://cloudup.com/cfyLCnjjTdS

It might be a plugin conflict, not sure.


Josh

  • Support Staff

January 13, 2016 at 11:49 am

Can you verify whether or not the code in the plugin that I shared with you has been altered in any way? I’ve asked my co-workers to test the plugin because I’m not able to get it to do what you’ve reported here. They’ve also found that the admin’s details do not get changed. The code should not even run when you are adding an attendee through the admin.


BCPTA

January 14, 2016 at 5:38 am

No we did not at all modify your plugin. To be honest, I wouldn’t even know how to if I wanted to. So I wouldn’t touch it.

Would you like access to a staging copy of the site? Or a complete backup copy? I am happy to send access if I can do so privately.

I’m not sure how to check if it could be something in the theme causing it, if it’s not happening for your colleagues.


Josh

  • Support Staff

January 14, 2016 at 9:31 am

It’s definitely not happening for my colleagues. You can send the details for the staging site by completely filling out the form on this page and someone from support staff can take a look:

https://eventespresso.com/send-login-details/


BCPTA

January 14, 2016 at 11:04 am

Ok I sent it


Josh

  • Support Staff

January 14, 2016 at 3:10 pm

Thanks for sending. I may never find out why it was changing the user account names on your site and not on our testing sites, but I was able to add an additional sanity check ( one further ! is_admin() check in the little plugin that I made for you ) and that fixes the issue you were seeing.

You can copy over the plugin to your live site and it should just work now.


BCPTA

January 15, 2016 at 11:08 am

Thanks it appears to be fixed.

I think there is one outstanding issue in this long thread and I will work on that next and get back to you.

The support post ‘Will WP Users Integration work with multiple registrations per order?’ 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