Home Forums Plugin Support Others Getting some error need help,..not able to create post on dokan page

This topic contains 3 replies, has 3 voices, and was last updated by  Anthony 3 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #51584

    gaurav singh
    Member
    Post count: 1

    hi , i want to make seller login redirect to their seller dashbaord..
    for that , i have found some existing forum, but not able to use that,
    thats why i am posting here.
    when i added the code – in fucntion.php…

    add_filter( ‘woocommerce_login_redirect', ‘ckc_login_redirect', 10, 2 );

    function ckc_login_redirect( $redirect_url, $user ) {
    // Change this to the url to Updates page

    if( $user->roles[0] == ‘seller' ) {
    return dokan_get_navigation_url(‘dashboard’);
    }

    return $redirect_url;
    }

    then after login it redirects me to a url that is :

    http://www.oppss.in/dashboard/‘dashboard'/

    thats producing 404 error

    #51585

    gaurav singh
    Member
    Post count: 1

    i am also posting here my full fucntion.php code,, i have tried this also in child theme's fucntion.php,,
    both places have the same error,

    < ?php /** * @package WordPress * @subpackage Oswad Market * @since WD_Responsive **/ $_template_path = get_template_directory(); require_once $_template_path."/theme/theme.php"; $theme = new Theme(array( 'theme_name' => “OswadMarket”,
    ‘theme_slug' => ‘oswadmarket'
    ));
    $theme->init();

    /**
    * Slightly Modified Options Framework
    */
    require_once (‘admin/index.php');

    add_filter( ‘woocommerce_login_redirect', ‘ckc_login_redirect', 10, 2 );

    function ckc_login_redirect( $redirect_url, $user ) {
    // Change this to the url to Updates page

    if( $user->roles[0] == ‘seller' ) {
    return dokan_get_navigation_url(‘dashboard’);
    }

    return $redirect_url;
    }
    ?>

    #51587

    towhid
    Participant
    Post count: 4505

    Please provide your login details by using this form: http://wedevs.com/provide-login-details/. I will have a look what is going wrong.

    Thank you 🙂

    #51836

    Anthony
    Member
    Post count: 6

    Hello Towid,

    I am having the same problem with the redirect. Should I also provide login details via the provided link? Please let me know.

    Regards,

    AG

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Getting some error need help,..not able to create post on dokan page’ is closed to new replies.