This topic has 4 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #206346
     nikb
    Participant

    Hi there

    I’m trying to implement Paid Memberships Pro in conjunction with Buddypress and can’t work out how to make the registration form work as I would expect.

    What I would LIKE to happen –

    New user selects a membership level (actually there’s only one so if they could be taken straight to the registration page even better!) and is then presented with a screen where they can fill in the relevant Buddypress info (including extra fields) then click on a submit button to make their payment.

    Unfortunately no matter I what I try, PMP continues to show its own registration fields not the Buddypress form.

    I’ve even tried installing the PMP – BuddyPress Add On which has a setting to select the PMP Levels page or the BuddyPress Registration page but that doesn’t seem to making any difference either.

    Am I approaching this the wrong way, have I missed a setting somewhere or am I expecting something that’s going to take more work to achieve?

    With many thanks in advance.

    #206418
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #206472
     Radu
    Moderator

    Hi,

    Any user to can chose a membership they should have a wp account first from what i know so after that choosing a package will be possible.

    So the flow shuold be

    1. Create wp account and completing buddypress fields from default register page /register

    2. Redirect all users to buy a package after that in member levels page from pmrpo

    COPY CODE
    
    
    add_action( 'template_redirect', 'my_membersip_restrict' );
     
    function my_membersip_restrict() {
        global $pmpro_pages, $post;
     
        if ( is_user_logged_in() && !pmpro_hasMembershipLevel() ) {
            if (isset($post->ID) && !in_array($post->ID, $pmpro_pages)) {
                wp_redirect( pmpro_url() );
            }
        }
    }
    
    
    

    The snippet will be pasted in wp-content/themes/kleo-child/functions.php

    NOTE : The Kleo Child Theme needs to be installed and activated.

    3. All non paying users will be trapped in membership levels page.

    So this it’s a flow that can be modified for your needs.

    Not very familiar how pmpro addon interwork with buddypress you can ask them.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #206493
     nikb
    Participant

    Hi Radu

    Thank you for your suggestion. Unfortunately that would seem to mean that sign-up would become a two-part process ie. users sign-up for Buddypress but are only prompted for payment when they try to log in which is definitely not ideal and quite frankly rather confusing.

    I think/hope I may have found a better solution by using the PMPro sign-up page with the Register Helper to gather additional information which is then synced with the Buddypress profile fields. It’s still not ideal and I’m quite surprised that BP and PMPro don’t work better together but appreciate that’s not necessarily a “theme issue”.

    I do appreciate your input which has at least proved that I’m probably not overlooking another simpler solution.

    Regards
    Nik

    #206681
     Radu
    Moderator

    Hi,

    No problem but from what i know pmpro register helper may do what you need , you can ask the plug dev if may do exactly what you need https://wordpress.org/plugins/pmpro-register-helper/

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Plugins questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?