• I am familiar with your plugin from years ago, I look for some specific things:

    1. disable your page generation , because we will use the woocommerce registration pages
    2. we want to restrict documents/downloads to customers who have purchased training or products
    3. we want to restrict some documents/downloads to a reseller or distributor
    4. we want to restrict distributor pricing to only a type of customer i.e. reseller or distributor or partner

    Can you please explain if these are possible and give me a little guidence ?

    I think #2 and #3 is based on their role, but how does their role change once they make a purchase, for distributors we can do this manually

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @startechmarketing

    You can find more details regarding your question on the documentation page https://docs.ultimatemember.com/

    It’s possible to make the restrictions through Ultimate Member plugin and restriction settings.

    Let me know if you have other questions,
    Best Regards!

    Thread Starter startechmarketing

    (@startechmarketing)

    Thanks

    I am familiar with your plugin from years ago, I look for some specific things:

    1. How do I disable your page generation , because we will use the woocommerce registration pages I don’t want extra pages
    2. we want to restrict distributor pricing to only a type of customer i.e. reseller or distributor or partner

    Can you please explain if these are possible and give me a little guidence ?

    I think #2 and #3 is based on their role, but how does their role change once they make a purchase, for distributors we can do this manually

    Thank you

    Thread Starter startechmarketing

    (@startechmarketing)

    I don’t want this how to disable it when activated ?

    When you install and activate Ultimate Member, 7 pages will be added to your pages list.

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @startechmarketing

    1. As soon as you activate Ultimate Member first time there is an admin notice that asks about pages creation. Please click on “No thanks”. https://imgur.com/CIsONIj

      We don’t make auto-creation of the predefined pages.
    2. Please clarify does the “distributor pricing” is a page, if doesn’t then what entity is it?
    3. See the “Extensions” section in our docs for getting details about role changing. I cannot share the details here based on Forum Guidelines. You can also see this pinned topic.

    Let me know if you have other questions,
    Best Regards!

    Thread Starter startechmarketing

    (@startechmarketing)

    1. ok thanks
    2. i found a plugin for woocommerce for distributor pricing so this works now without your plugin
    3. thanks I found a way to do it with php I share below for others, it works perfect only after their payment is complete
    add_action( 'woocommerce_order_status_processing', 'change_role_on_purchase', 10, 2 );
    add_action( 'woocommerce_order_status_completed', 'change_role_on_purchase', 10, 2 );
    function change_role_on_purchase( $order_id, $order ) {
        $user = $order->get_user(); // Get the WP_User Object
    
        // Check for "customer" user roles only
        if( is_a( $user, 'WP_User' ) && in_array( 'subscriber', (array) $user->roles ) ) {
            // Remove WooCommerce "customer" role
            $user->remove_role( 'subscriber' ); 
    
            // Add new role
            $user->add_role( 'customer' );
        }
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Restriction based – Pre-Support Questions’ is closed to new replies.