Show only membership levels of the course

Home Forums Legacy Support Support queries How-to & Troubleshooting Show only membership levels of the course

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #281655
    medvelasquez_232
    Spectator
    Hi, I'm starting to use membership pro, and I'm not sure if it is because I'm a newbie, but this is my current issue: I have several courses and I want to sell them on 4 membership levels, 3 for each course (3 months, 6 months, 12 months), and one VIP global level with 12-month access to all courses. So far I have created the global VIP level (with access to al courses) and the 3 membership levels for 2 of the courses registered (I mean one 3-months level for course A, one 3-months level for course B, one 6-month level for course A, and so on...) My problem is that when I press the Take this course button on the course page, the system goes to a membership area where all existing memberships are shown, even the ones not related to the course I'm taking. I need that only the ones related to the course are shows, I mean the global VIP, and the 3 related to the course (for 3, 6, and 12 months). Is this possible?
    #281823
    Diana
    Participant
    First tell me which theme version you are using so I will share the solution according to that
    #281988
    medvelasquez_232
    Spectator
    Hi Diana, WPLM version 3.9.3.3, however, I can update to the new version 4, as the site is not live yet. However, we want to launch the site on Monday the 17th, so we don't want to disrupt things too much. Please advice. Also, my WP version is 5.4.2, and PMPro version is 2.4. Best, Medardo  
    #282190
    Diana
    Participant
    PMPRO is not yet integrated. You can check the wplms update log to know about which addons are compatible and which are still under development and decide according to that whether you want to update the version or not :)
    #282375
    medvelasquez_232
    Spectator
    In that case, let's just get with the 3.9.3.3 version. 😅 How do I solve my current issue in this version? 🖖
    #283744
    Diana
    Participant
    This is how the setup should be done: https://www.youtube.com/watch?v=eFAaUjHtNNU Now let me know if you have further queries regarding this
    #284856
    medvelasquez_232
    Spectator
    I´m sorry Diana, but what you shared is a very basic procedure. Let me explain again mye predicament:
    1. I have several courses -6 so far- and I want to sell them on 4 membership levels, 3 for each course (3 months, 6 months, 12 months), and one VIP global level with 12-month access to all courses. I already installed the plugin and set up a few levels to test it, you can see the levels create in this link https://bit.ly/2E3Q4U4
    2. Then to one of the courses -HÁBITOS DE HIGIENE-, I assigned 4 of the levels: access for 3, 6, and 12 months for that course only, and 12 months access to all courses -the VIP option- You can see the setup in this linkhttps://bit.ly/30RtDKw
    3. However, when I click the "TAKE THIS COURSE" button, WPLMS goes to a membership area where all existing memberships are shown, even the ones not related to the course I'm taking, look https://bit.ly/2PPbwyv. In this case, 3 levels create for another course -MONITOREO DE SÍNTOMAS- are shown.
    4. I need that only the membership levels related to the course HÁBITOS DE HIGIENE are shown on this membership page. I mean the global VIP, and the 3 related to the course for 3, 6, and 12 months.
    Hope you can shine some light on it, we are supposed to go live on Monday the 17th and I'm still stuck with this membership problem. Best regards, Medardo.
    #288149
    Diana
    Participant
    The thing is you want to show only that membership level on the course which is connected with that course But yes, the page where all levels showing, I can't control that because that is something falls under paid customization Please add this code in wp-admin > plugins > editor > select wplms customizer plugin > wplms-customizer.php add_filter('wplms_course_credits_array','customwplms_course_credits_array',10,2); function customwplms_course_credits_array($credits,$id){ if ( in_array( 'paid-memberships-pro/paid-memberships-pro.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { $membership_ids = vibe_sanitize(get_post_meta($id,'vibe_pmpro_membership',false)); $match = array(); if(isset($membership_ids) && is_Array($membership_ids) && count($membership_ids) && function_exists('pmpro_getAllLevels')){ $link=get_option('pmpro_levels_page_id'); $link=get_permalink($link); foreach($membership_ids as $membership_id){ unset($credits[$link.'#'.$membership_id]); } } } return $credits; } This will work on single course page
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Show only membership levels of the course’ is closed to new replies.