This topic contains 3 reply and 3 voices, and was last updated by Anthony 4 years, 2 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
June 9, 2015 at 4:41 pm 51584
Anthony 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 : www.oppss.in/dashboard/'dashboard'/ thats producing 404 error
June 9, 2015 at 4:43 pm 51585
gaurav singh gaurav singh

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;
}
?>

June 9, 2015 at 4:49 pm 51587
towhid towhid

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 🙂

June 11, 2015 at 10:28 pm 51836
Anthony Anthony

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 3 Posts - 1 through 3 (of 3 total)