Error in course counting on registration

Home Forums Legacy Support Support queries Other issues Error in course counting on registration

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #255858
    witslk
    Spectator
    Hi, wish to inform you that we got an error in students course register. We faced the issue that the existing student who registered for course is automatically removed   if a new  student has taken the same course.  We noticed that the above issue occurred if reached 100 students and for additional one student replaced by existing student course. We compare the manual course taken students  and online registered student, then it shows not tally by one student. So please take this matter at your earliest convenience. Thank you for your positive response.
    #256099
    Anshuman Sahu
    Keymaster
    There is no such code written in wplms. however if user's order gets cancelled or refunded then we remove access from course . This can happen if user creates two orders . One got cancelled due to incomplete payment and other is approved . Then for the cancelled order system removes access to course . for this to stop please add this code in your wplms-customizer.php file wplms customizer plugin :     add_action('init','remove_cancel_order_course_check'); function remove_cancel_order_course_check(){   $obj = BP_Course_Action::init();  remove_action('woocommerce_order_status_cancelled',array($obj,'bp_course_disable_access'),10,1); }   Please note that it will not fix the students who is removed ,you will need to add those students back again to course from course admin : https://www.youtube.com/watch?v=GW_5rKKn1Us It will work for future studnets creating orders .
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Error in course counting on registration’ is closed to new replies.