>> Account type and infos

Maybe complex question I still dont find the way to finalize it :
A. ACTIVE TEMPLATE :
a.1 - kleo buddypress website
a.2 - wpmudev plugins
a.3 - woocommerce
a.4 - gravityform
a.5 - xfield buddypress

B - SITUATION
Everybody can create a profil its ok but everyone have the same question. I need different data for each kind.
I EXPLAIN :
I would like Visitor to create a profil and in this way be able to do different things
B1 : Level 1 member is a peaple
B2 : Level 2 is a pro and show a specific profil with specific data
B3 : Level 3 is a pro and can sell product

C - QUESTION
How can I have different field and members capabilities ?
C1 - If I select B1, its personal info and data (its like that today)
C2 - If visitor select B2, its personal and business info and data. At this time I can create another business field with xfield buddypress but I can't Hide it for C1
C3 - if visitor select B3, its personal and business info and data. At this time I can create another business field with xfield buddypress but I can't Hide it for C1. C3 offer a personal shop and a website. How can I allow this with membership pro 2 and have specific rôles ?

D - Fields, rôles and capabilities, How can I do ?

Thank you Very Much

  • Predrag Dubajic

    Hey @Laurent_C,

    Hope you're doing well today :slight_smile:

    If I understand this correctly, basically you want different profile fields for different memberships and enable one membership level to sell products.

    For the second part of your question there is Capabilities add-on included in the Membership 2 which you can use to assign certain capabilities to different memberships, that should the trick for you :slight_smile:

    As for hiding certain fields, you will need a bit of coding skills here.
    You can use CSS code to hide certain fields and then with php use if to say what will be shown for which membership, it will look something like this:

    $member = MS_Plugin::$api->get_current_member();
    if ( $member->has_membership( 1 ) ) {
    	//add code here
    } elseif( $member->has_membership( 2 ) ) {
    	//add second code here
    }

    Hope this helps :slight_smile:

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.