How to Add Extra Field on Vendor Settings Page

As a marketplace owner, you may always try to provide the best service to your vendor with the proper functionality. If you are trying to work out of the box to make your marketplace more resourceful, then you should try to expand your default functionality. You may already know – a plugin would not complete your 100% requirement because we believe you are a good thinker and idea generator.

Continue reading “How to Add Extra Field on Vendor Settings Page”

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 –

add_filter( 'dokan_query_var_filter', 'dokan_load_document_menu' );
function dokan_load_document_menu( $query_vars ) {
    $query_vars['help'] = 'help';
    return $query_vars;
add_filter( 'dokan_get_dashboard_nav', 'dokan_add_help_menu' );
function dokan_add_help_menu( $urls ) {
    $urls['help'] = array(
        'title' => __( 'Help', 'dokan'),
        'icon'  => '<i class="fa fa-user"></i>',
        'url'   => dokan_get_navigation_url( 'help' ),
        'pos'   => 51
    return $urls;
add_action( 'dokan_load_custom_template', 'dokan_load_template' );
function dokan_load_template( $query_vars ) {
    if ( isset( $query_vars['help'] ) ) {
        require_once dirname( __FILE__ ). '/help.php';
 *  Dokan Dashboard Template
 *  Dokan Main Dahsboard template for Fron-end
 *  @since 2.4
 *  @package dokan
<div class="dokan-dashboard-wrap">
         *  dokan_dashboard_content_before hook
         *  @hooked get_dashboard_side_navigation
         *  @since 2.4
        do_action( 'dokan_dashboard_content_before' );

    <div class="dokan-dashboard-content">

             *  dokan_dashboard_content_before hook
             *  @hooked show_seller_dashboard_notice
             *  @since 2.4
            do_action( 'dokan_help_content_inside_before' );

        <article class="help-content-area">
        	<h1>Add Your Content</h1>
          	<p>Lorem ipsum dolor sit amet</p>

        </article><!-- .dashboard-content-area -->

             *  dokan_dashboard_content_inside_after hook
             *  @since 2.4
            do_action( 'dokan_dashboard_content_inside_after' );

    </div><!-- .dokan-dashboard-content -->

         *  dokan_dashboard_content_after hook
         *  @since 2.4
        do_action( 'dokan_dashboard_content_after' );

</div><!-- .dokan-dashboard-wrap -->

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.

How to Earn with Dokan Plugin Using Different Vendor Commissions

Revenue and earning is the main target of any business. If you are a business owner, you may always think how can I increase my earning! Similarly, marketplace owners also have the same goal to earn money through their marketplace. There are many different ways to earn money from a marketplace.

In Dokan multivendor marketplace solution, we have added multiple ways to earn money. Dokan will allow the admin/site owner to set commission for all the orders, products, store or product category. Dokan plugin can be used to start earning without investing a lot.

The base of earning in Dokan is the commission on sales. Now, the commission can be different in types. Dokan plugin allows some commission system like below :

  • Global Commission
  • Store base commission
  • Product base commission
  • Category base commission

Global Commission

The site owner can set Global commission rate which will be applicable for all the store of his marketplace. If he sets vendor commission 10% on Dokan → Settings → Selling options area then the site owner will get 90% from each sale of his website. This global rate will be same for all the store. Like as the marketplace has 3 stores which are STORE A, STORE B, STORE C. The commission will look like –

Store Vendor Commission Admin Commission
Store A 10% 90%
Store B 10% 90%
Store C 10% 90%

From the above table, you can see that if you set global commission for the vendors as 10% then each store will get 10% commission from each sale and admin will receive 90%.

This global commission will affect for each store if any store does not have any specific commission. That means if you did not set any store base commission then the global commission will affect for the store. You will get clear description after reading the full post.

Store Base Commission

In Dokan plugin, you can set global commission as we mentioned on the first point. Now, let us think that one of your vendors is selling a very high quality product with a higher price. So, you may think about increasing the commission rate for that specific store.

Dokan plugin always thinks about the customer usability. On that purpose, we have added the option to set different commission rate for specific user/store.

The site admin can insert different commission rate from wp-admin → Users. Now, he needs to edit the user profile of the vendor for whom the commission rate needs to be changed. On the bottom of the profile edit page, you will get the option to set commission –

Now, you are thinking that how the global commission and store base commission will perform together. Please check the below calculation:

Store Global Store Base Vendor Earning Admin Earning
Store A 50% 50% 50%
Store B 50% 90% 90% 10%
Store C 10% 10% 90%

From the above table, you will get a clear idea. Store base commission is overriding the global commission rate for the user.

Product Base Commission

In Dokan plugin, we have the option to set unique commission rate for each product or any specific product. If admin thinks that a product is selling with high price and need to earn more from the product that time he can set commission only for that product.

To set product base commission, the admin will edit the product from wp-admin → Products area. On the edit product page, you have to click on the “Advanced” tab to set commission.

Now, this product base commission will override all the global and store base commission rate. That means if you set commission for a product then the system will calculate the commission from that product.

If the store has 90% predefined commission rate then only for this product vendor will get 80%.

You can read our documentation to know more about our commission functionality.

Category Base Commission

Dokan Multivendor Plugin will help you to earn money from each category. You might be thinking how it can be possible!

Yes, now you can set category base commission for the vendor. You can set different commission for each category. After inserting a different rate for the commission, all other commission rate will be overridden by the category commission.

If a product category has 90% commission then all of the product under that category will be calculated for 90% commission (Category commission rate would not be applied if a single product has commission)

Dokan Product commission works like a chained system. Our plugin searches in the product area and if it does not get any commission then it keeps searching on the product category. Like that it search till the global settings.

dokan plugin commission system

Do you have any other way to earn money rather than commission?

If you think that commission based earning is not your target then we have a good news for you.

Dokan Multivendor Plugin will help you to earn from monthly/yearly subscription package. That means, the vendor need to purchase subscription package to upload product on your website.

So, you will get money from each sale of your subscription package. You can also use commission rate while the vendor purchase a subscription package.

You can read the full documentation about Dokan Subscription extension.

The multiple commission feature is included from Dokan Starter package.

Upgrade to Dokan Pro Now

Upcoming Features of Dokan Multivendor in the Next Update

Every day we are getting many feature requests from our valuable customers. Our Dokan team always try their best to add a useful and unique feature for their customer. It can boost up their marketplace functionalities. On that purpose, we were working on some interesting feature and our next update for Dokan Pro v2.6.6 and also we have the plan to implement some extensions.

What's new in the next update?

Dokan Pro v2.6.6 will bring important features and lots of improvements. We believe our customers will like these new additions as they will make things easier for them.

Category wise commission

Right now the admin can set “commission” for the entire marketplace, per-vendor and per-product. We have decided to allow them something special. From the next update, the admin will be able to set commission for each product category.

If the product category has a commission set up, Dokan will calculate the vendor commission from the category. The system will check first in the product area. If the product has commission then it will calculate from the product. Now, if you do not have any commission on the product then Dokan will check if the admin set commission for the category.

If you have set up different types of vendor commission, you might become confused about the workflow. This means you may not figure out which type of commission will work in different situations. Here is the explanation.

You can check the documentation for more details.

Social sharing option for vendor store 

From the next release, a vendor store can be shared on the social network. You would be able to share the store on below platforms-

  1. Facebook
  2. Twitter
  3. Google Plus
  4. LinkedIn
  5. Pinterest
  6. E-mail

You can read the documentation to know how it will work on Dokan plugin.

Export Earning Reports from backend

The admin can check vendor earning reports from wp-admin → Dokan → Earning Reports → All Logs. We have added the feature to export all logs to a CSV file.

HTML e-mail template

Right now Dokan plugin is sending email notification in text format. We are converting them to HTML as like WooCommerce e-mail template. On the next version of Dokan Pro and Dokan-lite, all the email templates will be converted to HTML format.

You will be happy to know that we will also add some features for Dokan-lite version 2.6.8. We have added a new column in the withdraw area of the vendor dashboard to view his “Cancelled” withdraw request.  The admin will be able to add a note to describe the reason behind his cancellation and that note can be visible on the frontend.

Upcoming extensions for Dokan

We are working on some mind-blowing extensions. If you are using Dokan plugin with a third party theme, then you may need to change the dashboard color of vendor dashboard. To do that you have to do lots of custom CSS which is not easy for everyone.

As our team always care about our customer, they made an exciting extension for Dokan users called “Dokan Color Scheme” which will be released very soon.

How can Dokan color scheme help you?

When you are using Dokan plugin with a third party theme that time vendor dashboard color looks different from the theme color. For good user interface color combination is a must need on the website.

Dokan Color Scheme extension will help you to change the color for the vendor dashboard background, hover color and the button color. You will be able to control the color panel from Dokan → Settings → Colors tab. To know more in details, you can have a look at the documentation.

We always appreciate our users when they request for new features. We would love to hear from you regarding what you want next in Dokan. If you have any other extension requests, please comment bellow and let us know.

Best WordPress Readme Generator Tool by weDevs

If you are a WordPress plugin developer, then you already know about the readme file. You may love to write code so, writing a readme.txt file for the plugin in “WordPress” repository might be a painful task for you. You may always think – why should I spend much time to write the plugin description when I have written bunch of lovely codes.

Now, do you really hate to write a good readme.txt file for your plugin? If yes, then you should know why a readme.txt file is very important for your plugin.

If yes, then you should know why it is very important for your plugin.

Why you need to write a good readme.txt file

When a user tries to use a plugin, he/she always check the description of the plugin to understand the functionality/features. If he/she gets the clear instruction about the features of the plugin through description, he/she clicks on the download button to use it on their website.

Now, if your plugin has a single line description without any resourceful information then you are unlucky. On the other hand, a plugin with a good description can win the championship like a boss. No user will address that you have written a very good readme.txt. However, when it is really poor, every user will notice that point. So, you should write the readme.txt file with the correct markup and necessary information.

Do not think your readme.txt file as homework that you’ve got to do after all the fun you’ve had with coding. A readme benefits you. Here’s how:

  • It allows you to share why your plugin is good
  • Shows off your plugin’s features
  • Makes it easy for users to install and use the plugin
  • Answer support questions with a thorough FAQ
  • Links to your website and other products or donation link

You are thinking that – how can I reduce my time to write a readme.txt file with the perfect markup and details. If you are really worried about writing a long description or with formation then please do not think much. Because weDevs care about all WordPress users and that's why we made an automated tool “WP Readme Generator” to generate readme.txt with the exact format. The WP Readme Generator will help you to generate the readme.txt with real time result. It will show the preview of your readme.txt file with the exact result which you get on the WordPress repository.

How WP Readme Generator works :

This is the most advance readme.txt generator in the history. You can ask what is special in it!

  • You can get a real-time preview on WP Readme Generator which will help you to view the exact result how it will appear for the user.
  • Add the plugin banner and icon
  • Write the short/long description
  • Insert your license information
  • Add contributors for the plugin
  • Define stable tag
  • Provide the license URI
  • Create FAQ for the plugin within a second
  • Insert your donation/website link
  • Add screenshots for the plugin with a caption.
  • Write the installation Guide and upgrade notice
  • Import your existing readme.txt file
  • Export the readme.txt file uses what Mark Jacquith describes as quasi-markdown. It basically works like markdown, and much of the syntax is the same, but there are a few important differences, particularly in the headers. But in our generator, everything can be done from a single page without writing any markdown.

You have to insert your desired information and our tool with do the rest for you. Isn't it amazing?

We believe that this tool will save your time and help you to write a good readme file for your plugin. After filling all the available fields for the readme, you can export the readme.txt file and use it the way you want. 🙂

Here is a short video to show how WP Readme Generator works :