• Resolved fidelisr

    (@fidelisr)


    I was able to sync courses from moodle LMS website. On successful payment (test and real time) the user is not enrolled to the course.

    Post payment I have set the order status to complete .

    Please advise.

    Thanks,
    Fidelis

    • This topic was modified 7 years ago by fidelisr.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • I too would like help on this. I’m running into exactly the same issue: it’s able to pull courses from Moodle, puts them into WooCommerce. However, once people buy the course, nothing happens on the Moodle-end. No enrolment into the course or anything.

    Other than that it’s a great, great plugin and exactly what I’m looking for.

    • This reply was modified 6 years, 12 months ago by hobbesjaap.
    Ambyomoron

    (@josiah-s-carberry)

    It seems to me I once had a problem like that and I think it was resolved by creating a new token in Moodle and updating WordPress with it. I don’t know what the real cause of the problem was, though, and that solution might have been coincidental.

    Thread Starter fidelisr

    (@fidelisr)

    Hello Guys,

    The issue was solved.For me It was more of a configuration issue.

    I had missed to set the product as Virtual and Downloadable. After i did this it works.
    Hope this helps

    Thanks,
    Fidelis

    Great to hear it’s resolved for you that way!

    I’m curious to know what versions you’re running. I’ve just changed my courses/products to Virtual & Downloadable as well. Did you choose a URL/file or leave that empty? For me it’s not working yet.

    I’m running Moodle 3.4 and WordPress 4.9.1 so I’m wondering if maybe the MooWoodle plugin isn’t yet compatible for Moodle 3.4?

    Thread Starter fidelisr

    (@fidelisr)

    Hello,

    I had let it blank.

    WP Version 4.8.3 and Moodle 3.2.2

    Probably it could be a version issue.

    I am sure you have the Custom Services(Site administration->Plugins->Web services->External services) and the required functions added . Particularly enrol_manual_enrol_users

    Ambyomoron

    (@josiah-s-carberry)

    I am running Moodle 3.4+ (Build: 20171116) and WordPress 4.9.1 and have not noticed and incompatibility issues.

    Dear all,

    Thank you so much for your help so far.

    I’ve checked that the web service is created (it is). I can sync my courses into WordPress and have created products that are Virtual & Downloadable.

    If I then test it by ordering a course, the user account in WordPress is created. Once I approve the fictional order, nothing happens. No creation of the user account in Moodle, no registration in the course in Moodle.

    Now. If I manually create an account in Moodle with the same email address as the WordPress account and then purchase a course, this user is registered into the course.

    So it would appear that MooWoodle is able to register upon WooCommerce course purchase, but it doesn’t create the user.

    In overview:

    I’ve followed all the steps in the manual. Created the web service, generated the token, put in the correct URL, enabled the web service. Syncing works (so the core_course_get_courses and core_course_get_categories are working).

    The enrol_manual_enrol_users also works (since it does enrol a user if they’re already existing in Moodle).

    The only ones that seem to create problems are the core_user_create_users, core_user_get_users & core_user_update_users. All functions are enabled within the web service and the token is also working.

    I’m really at a loss here. Any further help would be greatly appreciated.

    I’m running MooWoodle 1.2.1 and as stated before, Moodle 3.4 and WordPress 4.9.1.

    Thread Starter fidelisr

    (@fidelisr)

    Hi,

    Hope you have unchecked the Password policy in Site administration ->Security ->Site policies

    When the web service tries to create a User account in moodle, might be the policy does not match.

    Hi,

    Per the installation instructions I’ve disabled the password policy, so any passwords should go. I’m really at a loss as to why it isn’t working. The only thing I can think of now is that some strings in the plugin are language-specific and only work on English-speaking sites. Since I’ve set up my WordPress & Moodle in Dutch (it’s for a Dutch audience) perhaps something is getting mixed up there?

    Any other ideas would be greatly appreciated, since I’m stumped as to what’s going on here.

    Ambyomoron

    (@josiah-s-carberry)

    There are two things I can suggest – both of which are very tedious:
    1) Start again from scratch (i.e., installing the plugin), but this time make sure that debugging and showing errors is enabled for both the wordpress and Moodle are enabled. If you see any messages at all, make sure you understand them before continuing. You might have all sorts of issues, such as not enough memory, a php function disabled that is needed by the plugin, a database timeout. You should check your web server error and access logs, too.
    (As I mentioned above, the mere fact of redoing things might resolve the problem, but who knows?)
    2) If you still cannot figure out what is going wrong, you might need to look at the packets of data communicating between your two sites. I doubt this is an issue, as the communication seems to be working otherwise.

    Interesting!

    I’ve just switched my Moodle & WordPress sites into English.

    And now it works.

    I’m guessing it’s a language string somewhere in the WooMoodle plugin that is specific to English, because when it was in Dutch, nothing was happening. But now it’s creating users and signing them up to the courses they purchase.

    Could be the user role on the WooMoodle settings page? The standard is set to “student” but when working in a different language, in this example Dutch, it’s called “leerling”. It’s still the default role for a student, but with a different name. I’ll keep investigating to make sure that’s what it is.

    I seem to have fixed it. By renaming things to “student” on the internal level on Moodle, the token-account combination is now exchanging the correct information.

    I’ve run into the next issue (that I fixed for now as well). This issue is that all new users are defaulted to the English language.

    By editing class-dc-woodle-enrollment.php and changing the lang=en string to lang=nl, I’ve fixed it for now. But when MooWoodle updates, I assume I’ll have to go in there again… unless the developers make it a standard function in the settings that you can set the default language for new Moodle users.

    I’d like to thank Josiah & fidelisr for all their help along the way: I seem to be up-and-running now. Thanks a lot!

    I am also with this problem my moodle only accepts the registration coming from the English language, I am Brazilian, is that if I make this configuration that the friend hobbesjaap did, will solve my problem?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Users not enrolled to course post payment’ is closed to new replies.