• Resolved code222

    (@code222)


    Hi, I’m having a problem configuring Tutor LMS with payments via WooCommerce.

    Basically, the problem is simple: if you order the course from the course page, the user is granted access correctly. But if you purchase the WooCommerce product linked to the course directly from the WooCommerce default page, no access to the course is granted.

    I’d like to understand how to set it up. On the product page, I set the virtual product and the “for tutor” option. On the course page, I set the product correctly.

    When WordPress debugging is enabled, this error appears: “not tutor order” and I believe it comes from the code in the “wp-content/plugins/tutor/classes/WooCommerce.php” file on line 667.

    Following the conditions, it seems that when ordering from the woo product page, the “_is_tutor_order_for_course” customer field isn’t created, even though the “monetize_by” field is set to “wc.”

    Can you tell me if this is a bug or if it’s configured this way, and if so, if there’s a filter to fix ?

    Thanks. 

Viewing 1 replies (of 1 total)
  • Hey @code222 ,

    Thank you for reaching out.

    If purchasing the course directly from the course page grants access correctly, then the system is functioning as intended. When you purchase a WooCommerce product directly (instead of through the Tutor LMS course page), it is treated as a regular WooCommerce product, not a Tutor LMS course purchase. This behavior is by design, only orders placed through the course page are linked with Tutor LMS and trigger course enrollment.

    Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Bug with woocommerce’ is closed to new replies.