Home Forums Theme Support Dokan Dashboard menu not visible

This topic is: resolved

This topic contains 22 replies, has 2 voices, and was last updated by  Nayem 4 years, 2 months ago.

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #38882

    Anurag
    Member
    Post count: 38

    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

    #38981

    Nayem
    Moderator
    Post count: 6480

    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 🙂

    #39048

    Anurag
    Member
    Post count: 38

    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

    #39056

    Anurag
    Member
    Post count: 38

    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.

    #39106

    Nayem
    Moderator
    Post count: 6480

    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.

    #39107

    Anurag
    Member
    Post count: 38

    Hi Nayem,

    Where do I add it? In which file.

    #39108

    Nayem
    Moderator
    Post count: 6480

    In your child theme's function.php file.

    #39109

    Anurag
    Member
    Post count: 38
    This reply has been marked as private.
    #39110

    Nayem
    Moderator
    Post count: 6480

    Hello Anurag,

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

    #39112

    Anurag
    Member
    Post count: 38

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

    #39114

    Nayem
    Moderator
    Post count: 6480

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

    #39115

    Anurag
    Member
    Post count: 38

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

    #39116

    Nayem
    Moderator
    Post count: 6480

    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 🙂

    #39117

    Anurag
    Member
    Post count: 38
    This reply has been marked as private.
    #39119

    Nayem
    Moderator
    Post count: 6480

    Hello Anurag,

    I need admin and ftp details both.

Viewing 15 posts - 1 through 15 (of 23 total)

The topic ‘Dashboard menu not visible’ is closed to new replies.