• Resolved menni50

    (@menni50)


    I’m trying to build a shoppers community website, based on WooComerece. The website admin approves a community registration form, created and submitted by a community manager. The community manager has a billing and shipping addresses and payments method. Every new user/customer registration form includes a mandatory “Community” field to choose a community membership from a dropdown single choice list field of all approved communities list. The user/customer registration is subject to the community manager, and the new user/customer profile inherits automatically the community manager billing and shipping addresses and payments method. Can your plugin help me achieve this goals by adding custom fields to the users database?
    Thank you very much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @menni50

    You can achieve this only after some custom coding. You can try these steps:

    1. Create a registration form and add and “community membership” dropdown. You can use a custom callback to generate dropdown options dynamically. You can look at this documentation for options callback.

    2. Copy the Community manager’s billing & shipping address once the user account is approved. Here is an example code to give you an idea:

    add_action( 'um_after_user_is_approved', function( $user_id  ){
     $community_manager = get_user_meta( $user_id, 'community_manager',true); // get community manager user id
    update_user_meta($user_id,'billing_address',$community_manager_billing_address);
    
    }, 10, 1 );

    The above code is just an example and you will have to modify it as per your requirement and setup.

    I hope this helps.

    Thread Starter menni50

    (@menni50)

    Thank you very much it’s the first step. wish me luck.
    Sincerely Menni

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hey there!

    Has this issue been resolved?

    This thread has been inactive for a while, so we will go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂

    Regards,

    Thread Starter menni50

    (@menni50)

    Yes Thank you very much I’m working on it.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Thanks for letting us know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shoppers communities’ is closed to new replies.