• Hello there.
    First, thank you for the awesome plugin.

    I have this Scenario:

    • Site A – WooCommerce based site
    • Site B – Learndash based site
    • Desired outcome: When user purchases a product in Site A it only syncs to Site B if order status is Complete and on Site B it creates the user with all data acquired on Site A and auto enroll it on a LearnDash group on Site B.

      Ps.1: A LearnDash group is a set of courses in a group. It’s similar to membership where you can have bundles courses based on the membership level.

      Ps.2: What a meta paying_customer means?
      Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alexandre Froger

    (@frogerme)

    Hi @arbex5 !

    I am familiar with LearnDash – had to spar with it on a couple of projects – not as much as WooCommerce, but I understand what you’re looking for entails, at least in the big picture.

    Basically, you’d need some specific development there, in a dedicated plugin. Using a custom User action as described in the documentation, the bird’s eye view of the algorithm of the custom plugin may look like this (warning, there are many assumptions below):

    • if the custom outgoing user action is active, when an order is complete, the system searches for products with a IDs for the courses to enroll (this value is set somewhere on the product somehow – there are several ways to go about it, for example if it’s 1 product 1 course at product creation vs. user-selected at purchase)
    • the system collects all the IDs for the courses to enroll, as well as the username, and bundles that in the payload to be sent to the remote site
    • when the incoming user action is active, the remote site, upon payload’s reception, scans the the IDs for the courses to enroll and enrolls the user corresponding to the provided username in the corresponding courses.

    What I can say within the scope of this forum is that it’s possible, it needs an extra custom plugin, and it needs to leverage both WooCommerce and LearnDash functions, actions, and filters.

    Oh, and paying_customer is a user meta value indicating the user has bought something at least once on the site (unrelated to WP Remote Users Sync to be fair).

    I’ll mark this topic as resolved because what you need is development and consulting, not support ;-D.

    Thread Starter Fernando Arbex

    (@arbex5)

    Hey Alexandre,
    Thank you very much for your explanation.

    As you explained it’s achievable, which is awesome.
    If I understand it well it, should be a plugin that interacts with yours, correct?

    I saw Adam Preiser’s video and lots of comments with people wanting this exact scenario.

    To be honest, I’m not a developer and don’t know one that could do it and not even aware of how much would it cost, but I’m pretty sure if you make it a premium addon (read paid), I would certainly purchase it and pretty sure many other people too.

    Right now I found out a way to achieve it through external integration (zapier, WpFusion and possibly Uncanny Automator), but of course, nothing would beat a native integration with your plugin where the sync is secure and instantly.

    If anyone else, show a interest on this custom development, we may join forces to develop it.

    Thanks again Alexandre.

    Plugin Author Alexandre Froger

    (@frogerme)

    Hi @arbex5

    You are correct: it would be an extra plugin that depends on and extends the behavior of WPRUS.

    There is already some documentation for how to start building a custom action on Github, which opens the door to so much potential. Virtually, any data can be transferred from site to site.

    Feel free to get in touch with a developer by other means than this forum for that (me or anyone else); establishing a more refined scope would be the first step, that would make for an interesting discussion.

    I think you should look at wpfusion for example to help with it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Auto enroll in courses’ is closed to new replies.