• Hello,

    I have a separate checkout process on different site and I wanted to programmatically enroll users to a course once they purchase.

    It will be handy if there is a way to enroll a user without adding an order, especially the orders are stored in a posts table, and in our experience, this table get bigger in time and it will slow down the site.

    What I am experimenting with is enrolling the student without orders but doesn’t work and when I tried to dig to the code, some queries are attached to the orders like for example this part inc/user/abstract-lp-user.php @get_status_course_of_user, this is fine as long as there is a filter that we can use to change the SQL. I managed to rephrase the query by using “learn-press/course-access-level” filter for the course page unfortunately when students go to the profile->courses there are other SQL dependent on the orders and there is no way to change.

    I hope someone can guide me on how to deal with or what are the areas/filter I can use to bypass/change the orders if there is anyway.

    I really like how you wrote the plugin and many thanks in advance

Viewing 1 replies (of 1 total)
  • Plugin Author ThimPress

    (@thimpress)

    Hi

    If you need custom code, please create a topic on our forums support, our development team will check and support to you

Viewing 1 replies (of 1 total)
  • The topic ‘Detaching order from enrollment’ is closed to new replies.