Support

Home Forums Event Espresso Premium Integration with LearnDash

Integration with LearnDash

Posted: September 25, 2015 at 1:25 am


Anonymous

September 25, 2015 at 1:25 am

Hi!

One of your blogs says that you have now integration with learnDash.
https://eventespresso.com/2014/05/learndash-now-integrated-event-espresso-4/

In the instructions you say that all you need to do is to download add-on from Learndash site and install it.

But in fact this is not true . Since no WordPress user is created in EE when purchasing the ticket no enrolment to the Learndash course is possible.

It looks like that your User Add-on is also necessary but you do not mention it. And after you moved user creation to the separate add-on I am not sure if the integration will work at all.

Could you pleas test it and confirm that if I buy your user addon https://eventespresso.com/product/eea-wp-user-integration/ I will get the integration as described.

It would also be a good idea to update the info about the integration so that not to mislead the customers.

Thank you.


Tony

  • Support Staff

September 25, 2015 at 8:37 am

Hi there,

I’m sorry for the confusion, the intention was not to mislead our customers but provide a wider range of options for you to user.

The EE4 User Intergration Add-on is not required to use the LearnDash integration.

However it is expected that to use the integration your registrants will either already have a user account on your site (and be logged into that account when registering onto the event) or a user account created when they register so the course can be assigned to that account.

Event Espresso core has never automatically created user accounts itself so we haven’t moved the account creation into an add-on, however the WP User Integration add-on does offer that functionality.

So you have the choice of either requiring your users to first create an account on your site before registering onto the events (for this you can use any membership plugin you prefer), or if you prefer for the account to be created as they register onto the our EE4 User Intergration Add-on can be used to do that.

I have tested this to ensure that registering onto an event and using the WP User Add-on to automatically create a user account, does automatically assign the LearnDash course to the user once that user’s registration has been Approved. That can be either by paying through one of the online gateways or if the ticket is free as soon as they finalize the registration.


Anonymous

September 28, 2015 at 1:20 am

Hi,
Thanks for your reply. Can you please further clarify one thing. You said that for integration to work a user should already have account and be logged in.

But when a logged in user registers for the event he is still offered to enter his name and email. And even when I enter the same e-mail as of the registered user I just have a new registration that is not linked to the user account.

So how I can register for the event as a logged in user rather than just a new registration?


Anonymous

September 29, 2015 at 5:09 am

Hi,
Can you please have a look at my question. I really do not see any difference when I register for the event as logged in user or as logged out. I have exactly the same forms to fill in.


Tony

  • Support Staff

September 29, 2015 at 5:39 am

That’s different from the LearnDash course enrolement and you will need the EE4 User Integration add-on for that functionality.

It all depends on how you want the integration to work. LearnDash built their integration add-on before our EE4 Users Integration add-on had been released with the intention that users would manage the sites users themselves. When they released the add-on it was expected that if the logged in user registered onto an event, that user account should be enroled onto the course assigned to the ticket, that is currently how the LearnDash Add-on works.

If you register onto an event and your registration is approved (be it paid or free) the LearnDash integration pulls the current user_id and assigns the course to that user.

If you want the registration to be assigned to the User account and/or you want to automatically fill the registration form with the logged in users details, you will need the EE4 Users integration add-on.

This provides a ‘My Events’ section within the user profile which shows the event registrations made with that user account, that looks something like this – http://take.ms/92XjR

With the LearnDash integration the user will also find the LearnDash course enrollment within their user profile (regardless of using the User integration add-on) – http://take.ms/e3AH9


Anonymous

September 30, 2015 at 7:39 am

Hello,

I think we are getting to the point.

Your say: “If you register onto an event and your registration is approved (be it paid or free) the LearnDash integration pulls the current user_id and assigns the course to that user”. And as I understand this should work without add-on.

My issue is that it does not.
I have a registered user logged in to the site.
I have an event with free ticket that in advanced option is linked to the course.
I have Default Registration Status in Event set to Approved.
I register to the event with one ticket, fill in some name, e-mail and click Register now
I have a new registration but a logged in user is not enrolled. I can manually enroll and unenroll user but integration does not work.

If this should work how can we check?


Tony

  • Support Staff

September 30, 2015 at 1:21 pm

Firstly I do apologize, there’s a couple of features I misunderstood within the LeashDash add-on. The course’s were being assigned to the user accounts on my site due to the course being setup as ‘open’ and not due to the users registering onto the event.

So I setup a new site to test this and found that the LearnDash Add-on does appear to be broken as it does not seem to assign a course to a users account.

On looking at their code I also found that the add-on will actually attempt to create a new user from the registrations details provided if the user doesn’t exists (based on the email address) it will create a new user.

However as mentioned it appears the add-on currently needs to be updated. We (Event Espresso) did not write the LearnDash Add-on so we can’t provide support for this kind of breakage. However on investigating this issue I found the cause and added a quick fix which seems to be working correctly on my test site.

This isn’t a permanent fix and LearnDash will need to update their add-on to work with the latest version of EE but you are welcome to try it if you prefer:

http://take.ms/4i4Yt

Download that add-on and use it in place of the current LearnDash EE integration add-on. (If you currently have it installed on the site you’ll need to remove it before installing the above)

Does it then work as you initially expected?


Anonymous

October 1, 2015 at 2:16 am

Hello,
Thanks for that fix!

It now works for me as you described earlier.

So now to your user add-on. There are two questions just to make sure.
First question. If I buy your plugin, will I get the extra functionality, i.e:

a) If a not logged in user registers for the event, he will
1. Be created as a wordpress user
2. Get enrolled for the course at the same time.
b) If logged in user clicks “Register Now” button his name and e-mail fields are pre-filled in with his user info.

I would appreciate if you test it and confirm before I buy a plugin.

Second question. You mentioned that learnDash plugin tries to create a user as well. Can there be a problem if two plugins try to create user at the same time?
Can you work with LearnDash folks or somehow make sure only one plugin creates a user?


Tony

  • Support Staff

October 2, 2015 at 3:02 pm

Hi there,

I tested the above and did find a problem when both EE4 Users and LearnDash were used. Basically LearnDash would create the user first which would prevent the EE4 User Integration Add-on from creating a user and assigning the registration to that user, the fix was simply to run the LearnDash user creation check later than EE4 Users did.

This then allows for all of the points from above:

a) If a not logged in user registers for the event, he will
1. Be created as a wordpress user
2. Get enrolled for the course at the same time.
b) If logged in user clicks “Register Now” button his name and e-mail fields are pre-filled in with his user info.

To work as expected.

Here is a copy of the LearnDash Add-on with the additional fix – http://take.ms/3F9su

I have also emailed LearnDash with details of the changes made and requested they include these changes within their add-on, if they find further issue with the LearnDash add-on they will need to work through those.


Anonymous

October 8, 2015 at 1:38 am

Hi,

I have tested EE user plugin with LD-EE integration one. In now works OK for me but there is one possible issue and one recommendation.

Issue. If you set Auto Create users with registrations to No in the EE User plugin, the user is still created since LD plugin creates it. I am not sure there is any technical way you can block it from your plugin but it might be an issue for some customers. Since I plan to require user login I am OK with it. Creating users upon registration without any check would lead sooner or later to a SPAM attack.

The second thing is that when logged in user registers for the event it gets his names and e-mail shown in form text area which can be edited. I do not think that anyone ever might want to change his user profile upon registration to some event. They should go in Profile area. It would be a good idea to show name and e-mail as just text without form areas. It would look much nicer.


Tony

  • Support Staff

October 8, 2015 at 2:47 am

Issue. If you set Auto Create users with registrations to No in the EE User plugin, the user is still created since LD plugin creates it. I am not sure there is any technical way you can block it from your plugin but it might be an issue for some customers. Since I plan to require user login I am OK with it. Creating users upon registration without any check would lead sooner or later to a SPAM attack.

We will not add any add-on specific code to Event Espresso core, such as providing the option for Event Espresso to disable if the LearnDash add-on creates users on registration or not. This would need to be from within the LearnDash add-on so I would recommend issuing a ticket with them for this.

You can enable reCaptcha within Event Espresso which will help reduce spam registrations as the hook LearnDash is using will not be fired if the reCaptcha is incorrect.

The second thing is that when logged in user registers for the event it gets his names and e-mail shown in form text area which can be edited. I do not think that anyone ever might want to change his user profile upon registration to some event. They should go in Profile area. It would be a good idea to show name and e-mail as just text without form areas. It would look much nicer.

Can you provide further details on this please? Possibly include a screenshot to show where you are referring to.


Anonymous

October 8, 2015 at 8:46 am

Hi

What I mean is this screen http://cl.ly/image/2K2H3u0t103X

If I register as logged in user I don’t need to edit my profile from registration form. So instead of editable form fields It would be better to show info (name and e-mail) in plain text and leave the form fields for phone and other customs fields only.


Tony

  • Support Staff

October 8, 2015 at 11:42 am

Thank you, I understand what your are referring to now.

Currently with EE4 Members there is a one-to-one relationship between your Profile data and your EE ‘contact’ data. Inputting different details within the registration updates your Profile with that data and we provide the most compatible output to suit the most use cases (not only for the current functionality but future functionality that we have planned)

So having said that I will create a ticket to open up this feature for discussion with the possibility of it being included within a future version. This would basically be to ‘lock’ the registration fields to only allow you to use the details saved within your profile.


Anonymous

October 9, 2015 at 2:45 am

Thanks. I believe it would be a good feature.

The support post ‘Integration with LearnDash’ 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