Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Nazmul Hassan

    (@nazmulhassann20)

    Hello,

    Are you using any marketplace plugin with WooCommerce? I have checked and it is working fine with the WooCommerce.

    Thread Starter erostad

    (@erostad)

    Hi – what do you mean by a marketplace plugin? What are some examples?

    Thanks – Erik

    Plugin Author Nazmul Hassan

    (@nazmulhassann20)

    I meant something like WC Vendor, Dokan etc. If still you are facing issue then contact me here- https://nayemdevs.com/contact/.

    Thanks.

    hi nayemDevs.. actually i’m using dokan market place for my website https://orsango.com/ but after registration redirect to the home page pls give me solution.

    Plugin Author Nazmul Hassan

    (@nazmulhassann20)

    @riyaz As Dokan has seller role so you have to check the role first. If seller then it will redirect to a specific page. You can get idea from this code-

    add_filter(‘woocommerce_registration_redirect’, ‘ps_wc_registration_redirect’);
    function ps_wc_registration_redirect( $redirect_to ) {
    if ( is_user_logged_in() ){
    $current_user = wp_get_current_user();
    if( $current_user->roles[0] == ‘seller’ ) {
    $redirect_to = dokan_get_navigation_url( ‘dashboard’ );
    return $redirect_to;
    }
    }
    return $redirect_to;
    }

    Now, you can deactivate my plugin and just paste these code into your theme’s function.php file.

    Dear nayemDevs
    Thank you so much!!

    Plugin Author Nazmul Hassan

    (@nazmulhassann20)

    You are most welcome ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not Working’ is closed to new replies.