Adding Extra Menu on Vendor Dashboard of Dokan Multivendor

If you are a Dokan plugin user, this may turn out to be an important post for you! Today, we will try to show you something interesting yet helpful for your multivendor marketplace.

As a marketplace owner, you may receive tons of technical questions from your vendors. We think you are using a simple contact form or replying their query directly via e-mail which is really a time taking process.

You might be thinking about creating a help section for each vendor on their frontend vendor dashboard or any custom content which is necessary for them. For instance, your new vendors may need some help to know about your marketplace and you do not want them to waste time by sending an e-mail or making a phone call to you.

weDevs always care about you and that's why we thought to create a sample to show how easily you can create a dashboard menu. This post will help you a little bit to make your marketplace more functional and professional.

How Can You Add An Extra Menu

It's natural that you do not want to do the same thing over and over again. So, let us try to show you a good way to customize Dokan plugin which would not affect during the plugin update. Do you want to know the full process? Then Dive in with us.

Add & Edit Your Child Theme

Okay, we are going to add the extra menu through using your child theme. If you do not have a child theme then please install a child-theme on your website. A child theme is always safe to override template or function. So, please follow below steps –

  •  Install a child theme and activate it.
  •  Create a file called help.php and insert the file into your child-theme folder.

Now, open the functions.php file of your child-theme and then insert below code on the file –

If you are copying the file directly on your existing child theme's functions.php then please do not copy?php because your functions.php already have this tag started. After adding the code, now check your vendor dashboard page and you will get the new menu called “Help“.

Now, on the above screenshot, the help menu is showing already 🙂 You might be feeling sad because when you are clicking on the Help menu it is a showing blank page. Please hold on! we are not finished yet!

Adding Content to Your New Menu

If you have read the entire post correctly then you have already created a page called help.php into your child theme folder. Now, edit the help.php file through a text editor or with a code editor like Submile text.

On the help.php file, you can use the below code to show some content on the help page  –

After adding the above codes, you might get the content of Help page like below screenshot :

 

Before clicking on the help menu, you have to set the permalink settings. You can follow this doc to flush permalink structure.

Now, click on the help menu and you will see the dummy content like above. So, you are done with the new menu 😀

All of the above contents are simply dummy text. You may need to add your own contents on help.php file to make it a perfect fit for your requirements!

If you liked our post, please feel free to leave a comment below. We would love to reply to your queries.

29 Comments

  • niels.abadie

    niels.abadie

    Hello Nayem,

    Thank you for this article.
    I don’t know why but my “help.php” is not loaded –> error 404 / not found.
    help.php is located in my child theme near function.php.

    An idea ?

    Niels

  • Borima Chann

    Borima Chann

    hi,

    i already added the code to child theme’s function.php and saw the Help menu in vendor dashboard. But i don’t see help.php in the child theme folder. i used flatsome theme.

    what can i do with this?

    thanks

  • Borima Chann

    Borima Chann

    Hi,

    Thanks for instruction and i did exactly as instructed but when click on Help menu, it redirected me to one of the single product page 🙁 and not the help page itself.

    Should i open a ticket and give you the access to the website?

    thanks

    • Nayem

      Nayem

      Hello Borima,

      I am sure that you did not follow the instruction or insert the code properly which already mentioned on our blog. As it is a custom work for that reason, it is not possible to provide support for you. As you are an existing customer so, I can provide more instruction if you can create a ticket.

      Cheers!

      • Borima Chann

        Borima Chann

        Hi Nayem,

        Ticket created, thank you!!!

        Rgds

        • Nayem

          Nayem

          Hello Borima,

          I have solved your problem already 🙂

          • Borima Chann

            Borima Chann

            Hi Nayem,

            Yes, the problem solved!!! thank you for excellent and timely support!!!

            Never regret switching to Dokan!!!

            Rgds,

          • Nayem

            Nayem

            You are most welcome @Borima 🙂

  • it.majidi

    it.majidi

    These codes do not work and give an error
    Have you tested yourself?

    • Nayem

      Nayem

      Hello it.majidi,

      The code has been used by many users and you can check those above comments. Now, what kind of error you are getting? Also, this code was an example to show how it should be. So, if you are getting any error then you should debug. If you are a customer then you can send a support ticket. We will help you to solve 🙂

  • Balaji

    Balaji

    When I try this flow, I don’t get my footer loaded. I see the new content but the footers on the page don’t get loaded. Any ideas as to why that would be the case?

    • Balaji

      Balaji

      resolved by using get_footer() in the template file.

      • Nayem

        Nayem

        Hello Balaji,

        Great to hear that you got the fix 🙂

      • Kevin

        Kevin

        Balaji,

        I have tried adding the get_sidebar() and get_footer() code to the bottom of the help.php code expressed above, however the css seems to be now working correctly. The sidebar comes in below the dashboard, and the footer takes up the entire page. I have been comparing the html structure of the other dashboard pages to the html structure of the new help page and there quite a few inherent differences.

        I was just wondering how you figured it out. Thanks

      • Abhishek jain

        Abhishek jain

        Page template is called perfectly but still not load page properly , header admin navbar and other code is missing also missing footer code

  • Rajendra

    Rajendra

    Follow all steps but still page getting loading on click of Help menu . i am not getting solution please Help

  • rajendra.webdesky

    rajendra.webdesky

    Follow all steps but still page getting loading on click of Help menu . i am not getting solution please Help

    • Nayem

      Nayem

      Hello,

      If you check those above comments then you will see that many users could create the help menu. However, if you have inserted everything as per the blog then make sure that you have set the permalinks correctly – https://wedevs.com/docs/dokan/common-questions/404-page-not-found-error/.

      If still does not work then please debug and create a support ticket to us.

      Thanks!

  • sms_co1993

    sms_co1993

    Hello
    I want to add the WooCommerce download section as a section to the dokan
    What should I do?

    • Nayem

      Nayem

      Hello sms,

      You have to do some modification with the WooCommerce filter/hook to get the download section on the dashboard. We can only help you to understand this blog post through the comment section 🙂

      Thanks!

  • braulio.perdigao

    braulio.perdigao

    1- I think the FLOW for a NEW vendor is SO confusing. The first time they get into their dashboard it promotes adding a banner, BUT the banner adding menu is hidden insight of SETTINGS in the last menu item! How can I change dashboard menu items?

    2- Me as a site owner, I have NO control over what the vendor can include in his/her profile???? I don’t want them to put their phone# or Address or even their website or Social Media. How Do I control this?

    • Rounak Ahmed

      Rounak Ahmed

      Hi Braulio,

      We are concerned to hear about the difficulties you are facing. Please create a support ticket or contact us to get quick answers to your queries.

      We look forward to hear from you. 🙂

    • webgiantnz

      webgiantnz

      I have these exact same concerns. Did you manage to get a good resolution via support?

  • Kevin

    Kevin

    Helpful tip for others!
    If anyone wants to have a editable wordpress page instead of having to go in the template to change content, add a wordpress page called “Help” then add the following code in replace of the and tags above:

    have_posts() ) : $bottom_page_query->the_post();
    the_content();
    endwhile;

    // reset post data
    wp_reset_postdata();
    ?>

  • ebrahim

    ebrahim

    hi
    i create a menu in dokan but when open this menu site footer not working.
    my code:

    get_all_order_by_status();

    if(count($orders_ob)>0):

    ?>

    سفارش
    مجموع سفارش
    وضعیت
    مشتری
    تاریخ
    عمل

    #

    <span class="dokan-label dokan-label-“>

    <abbr title="”>

    <a href="?fid=” class=”dokan-btn dokan-btn-info dokan-btn-sm”>ویرایش <?php }else{
    $the_order=wc_get_order($ord['order_id']);
    echo ' dokan_get_prop( $the_order, ‘id’ ) ), dokan_get_navigation_url( ‘orders’ ) ), ‘dokan_view_order’ ) . ‘”> ‘ ;
    if(get_post_meta($ord[‘order_id’],’_bstf_save_final_code_verify’,1)!=’yes’):
    ?>
    <a class="dokan-btn dokan-btn-default dokan-btn-sm" href="?fid=&verify=true”>تائید فاکتور

  • Kevin

    Kevin

    To get this to work fully with header and footer use the following code in your help.php file. You will also need to add a “Help” page in wordpress:

    have_posts() ) : $bottom_page_query->the_post();
    the_content();
    endwhile;

    // reset post data
    wp_reset_postdata();

    ?>

  • Cyran

    Cyran

    Hi, for my first tab everything worked fine but now I need to add another custom tab. When try to add this code above I got a fatal error!

    Any help would be appreciated

    Thanks Cyran

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.