Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Show only membership levels of the course
Tagged: membership pro
- This topic has 7 replies, 2 voices, and was last updated 4 years, 4 months ago by Diana.
Viewing 8 posts - 1 through 8 (of 8 total)
-
AuthorPosts
-
August 10, 2020 at 4:09 pm #281655medvelasquez_232SpectatorHi, 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?August 11, 2020 at 7:49 am #281823DianaParticipantFirst tell me which theme version you are using so I will share the solution according to thatAugust 11, 2020 at 3:01 pm #281988medvelasquez_232SpectatorHi 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, MedardoAugust 12, 2020 at 6:29 am #282190DianaParticipantPMPRO 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 :)August 12, 2020 at 3:25 pm #282375medvelasquez_232SpectatorIn that case, let's just get with the 3.9.3.3 version. đ How do I solve my current issue in this version? đAugust 13, 2020 at 11:18 am #283744DianaParticipantThis is how the setup should be done: https://www.youtube.com/watch?v=eFAaUjHtNNU Now let me know if you have further queries regarding thisAugust 13, 2020 at 5:34 pm #284856medvelasquez_232SpectatorI´m sorry Diana, but what you shared is a very basic procedure. Let me explain again mye predicament:
- 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
- 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
- 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.
- 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.
August 14, 2020 at 11:34 am #288149DianaParticipantThe 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 -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
- The topic ‘Show only membership levels of the course’ is closed to new replies.