Dashboard menu not visible

This topic contains 22 reply and 2 voices, and was last updated by Nayem 9 years, 1 month ago
Viewing 15 Posts - 1 through 15 (of 22 total)
Author Posts
March 11, 2015 at 7:01 pm 38882
Nayem Hi, After integrating the dokan plugin with my nectar salient theme, I have faced the following issue. 1) My theme's menu overrides the default menu from the plugin. Using the default dokan Theme we can see the options of mycart, dashboard, login on the top menu in the header. How do i get the same menu options in my nectar theme? 2) I want to change the styling of the dokan plugin. Example: change the default button colour from orange to green on the left menu dashboard. Can we have those options in the plugin. 3) After logging in, I would like to redirect the page to seller dashboard. I have used a few plugins such as "peter's redirect plugin", "redirect after login" but they do not seem to work. These redirect plugins often cause login logout issues. Please let me know about it. Thanks
March 12, 2015 at 4:14 pm 38981
Nayem Nayem

Hello Anurag Basu,

1. By default there is no option to automatically get those menu from plugin. But you can insert this code your theme header-<?php echo dokan_header_user_menu(); ?>.

2. If you are talking about seller dashboard menu style then you have to customize the style of that page. You can customize the style of the page. But there is no default way to change them with the other theme style or something.

3. If you wan to redirect your user after login to their dashbaord then insert those code in your child theme’s function.php file-

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_navigaiton_url(‘dashboard’);   
    }

return $redirect_url;

Thank you 🙂

March 13, 2015 at 3:47 pm 39048
Anurag Anurag

Hi Nayem,

The above solution for dashboard redirection did not work.

Let me know on how to proceed further. Also please check if the spelling of navigation is correct.

return dokan_get_navigaiton_url(‘dashboard’);

I have used both the spellings (navigation and navigaiton).

Also I am facing a unique problem.

Once I start a browser session, I am able to log in to the dashboard section. If I log out and try to log back in I am unable to log back into the dashboard section. the my-account page resets to itself.

Let me know on how to proceed further.

Cheers,
Anurag

March 13, 2015 at 5:54 pm 39056
Anurag Anurag

Hi Guys,

I have a very important issue to discuss with you. The plugin needs to work with different themes. The advantage of Dokan being a plugin allows for ease of customization. When using with nectar theme the styling for the pages just goes out of whack. It is unacceptable.

Ex: The dashboard page needs to easily integrate with the theme. For example, when I add a product as a seller to the website, my theme styling is completely disturbed and distorted. It clashes with the ease by which different customers can upload their products. It will be difficult for customers to accept the website. I know that as independent plugin developers, you are not responsible for theme styling but please do try to test it with different themes.

A good job on the plugin feature, but you guys can do better!

I am still awaiting a reply on the previous question of mine. Let me know as soon as possible!

Appreciate your help.

March 14, 2015 at 12:14 pm 39106
Nayem Nayem

Hello David,

Please try this code again.

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

I have checked and it is working fine. It is redirect me after login.

March 14, 2015 at 12:25 pm 39107
Anurag Anurag

Hi Nayem,

Where do I add it? In which file.

March 14, 2015 at 12:25 pm 39108
Nayem Nayem

In your child theme’s function.php file.

March 14, 2015 at 12:28 pm 39109
Anurag Anurag This reply has been marked as private.
March 14, 2015 at 12:48 pm 39110
Nayem Nayem

Hello Anurag,

Did you insert those code into function.php file of your child theme?. What is happening after inserting those code?

March 14, 2015 at 12:53 pm 39112
Anurag Anurag

After inserting the code, it still remains onto the same page. after login, user is not redirected to dashboard.

March 14, 2015 at 12:55 pm 39114
Nayem Nayem

Did you try with the seller?. So the account should be a seller account.

March 14, 2015 at 12:55 pm 39115
Anurag Anurag

yes, of course. The account i am using to log in is a seller account.

March 14, 2015 at 12:56 pm 39116
Nayem Nayem

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 🙂

March 14, 2015 at 12:58 pm 39117
Anurag Anurag This reply has been marked as private.
March 14, 2015 at 1:00 pm 39119
Nayem Nayem

Hello Anurag,

I need admin and ftp details both.

March 14, 2015 at 1:11 pm 39121
Anurag Anurag

I have sent them. Please let me know of any more required details

Viewing 15 Posts - 1 through 15 (of 22 total)