• michaelwellnerwp

    (@michaelwellnerwp)


    When a user purchases a course via PayPal it takes up to 1 minute AFTER paying until the user is enrolled into the course. When the user comes back to the single course page after purchase he still sees the “Enroll” button.

    My goal:
    Displaying to the logged-in user on the single course page that his order related to the displayed course is still in progress. I want to show the user a message like “Your order is still pending, we will send you an email once it has been completed”.

    I know about the following lines in the template (for example in single-course/progress.php):
    $course = LP_Global::course();
    $user = LP_Global::user();

    Based on these variables how can I retrieve the order status?
    IF I CANNOT: Is there another variable I can use?

    Thank you very much for your support!

  • The topic ‘Display order status on single course page to user?’ is closed to new replies.