Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rahy

    (@rahy)

    I tried this to do what I want:

    Copy the my-course.php and name it my-completed-course.php.
    Add the template to my-account.php
    Change the code in my-completed-course.php line 15:
    if ( 'Enrolled' == $course_item->meta_value && get_percent_complete() == '100%' )

    or something like that, because this one doesn’t work ??

    @rahy,

    You’re almost there… get_percent_complete() isn’t a function in LifterLMS so you’ll want to do the following:

    $course = new LLMS_Course( $course_item->post_id );
      if ( 'Enrolled' == $course_item->meta_value && 100 == $course->get_percent_complete() ) {

    Hope that helps!

    Thread Starter rahy

    (@rahy)

    @thomasplevy,

    Thanks. That works.
    I also change the my_courses.php to include ‘100 > $course…’ .
    And I remove the javascript as suggested (it hide all completed courses).
    So now I have separated course-in-progress and course completed sections.
    Great!

    I think this should be standar in the next version ??

    @rahy,

    Great, if you need anything further just reopen this ticket.

    Take care,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Course/s Complete… Now What? (part 2)’ is closed to new replies.