Title: Vendor commission error
Last modified: August 27, 2020

---

# Vendor commission error

 *  Resolved [niikk](https://wordpress.org/support/users/niikk/)
 * (@niikk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/)
 * Hello Dokan Support
 * We just noticed a strange vendor & admin commission error.
 * **Our settings:**
    – Admin Commission: Flat $1.5 – Commissionper Product: individual
   per product
 * Now, if we set on a product 2.5$ as a commission for this product then the vendor
   would see (if a product costs 10$ a earning of 7.5$). But now, if the vendor 
   updates a product info like name or something and submitt for review, then the
   earning shows 8.5$.
 * Means, after every product update from vendor, the commission per product is 
   deleted. When we look into the product in the backend, the value for the admin
   commission for that product is empty.
 * How is this possible? We have the understanding that product base commission 
   is the first commission which dokan check. But why its been deleted after a vendor
   product update?
 * [https://wedevs.com/docs/dokan/tutorials/how-to-setup-dokan-vendor-commission/](https://wedevs.com/docs/dokan/tutorials/how-to-setup-dokan-vendor-commission/)
 * Thanks & Cheers

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * (@rur165)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13325838)
 * Hello [@niikk](https://wordpress.org/support/users/niikk/) ,
 * I just tested this thoroughly as you explained and I did not face such issues.
   The product-based commission was saved and it did not go blank after updating
   the product name.
 * Can you please check with the latest version removing any modified code and deactivating
   other plugins and using a default theme?
 * Let me know the update.
 * Thank you.
 *  Thread Starter [niikk](https://wordpress.org/support/users/niikk/)
 * (@niikk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13328563)
 * hi [@rur165](https://wordpress.org/support/users/rur165/)
 * I did all steps which you mentoined.
 * – Deactivate all plugin and theme
    – delete all plugins – no custom code
 * NO success…
 * But.. I setup a new system and there it works as expectet. So then I just moved
   the Database for testing. And then id worked also on the other site. Means, the
   error is somewhere in the Database.
 * But I have no idea which table is wrong. 🙁
 * UPDATE:
    We found out, that if a vendor use the “Quick edit” function and change
   something and press the update button on dokan dashboard to modify a product.
   The commission per product works. So Its only been deleted if a vendor “edit”
   a product and klick on the “Save Product”.
 * The DB row _per_product_admin_commission for a product is empty after a product
   edit.
 * _per_product_admin_commission_type,flat
    _per_product_admin_commission,
    -  This reply was modified 5 years, 9 months ago by [niikk](https://wordpress.org/support/users/niikk/).
    -  This reply was modified 5 years, 9 months ago by [niikk](https://wordpress.org/support/users/niikk/).
 *  [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * (@rur165)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13333529)
 * Hello [@niikk](https://wordpress.org/support/users/niikk/) ,
 * I just tried with different vendors and some of my other colleagues also tested.
 * I found that the problem you are mentioning does not happen for vendors. But 
   if I try from the admin store only then it happens. Is it the same in your case?
 * Looking forward to your response.
 * Thank you.
 *  Thread Starter [niikk](https://wordpress.org/support/users/niikk/)
 * (@niikk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13338026)
 * Hi [@rur165](https://wordpress.org/support/users/rur165/)
 * We have the problems also on vendors.
 * Repro steps:
    – Set global admin commission to 2$ – Login to a vendor account(
   Not user switch) – Product price is 5$ and commission is 4$. => Earning is 1$
   for vendor – Vendor change now the product name or something – Check Commision
   per product
 * In our case the commission per product is empty and the earnings for the vendor
   is 3$.
 * But, as I already mentoined.. If we made the same with the “Quick Edit” function
   on vendor product dashboard page, then it works. So whats is the different between
   the button “update” on product quick edit and “save product” on product edit 
   page?
 * May I can send you a backup from my Dev System? Or you can check this directly
   on our dev System? Also maybe I can show some of dokan support guys in a screensharing
   session the problem.
 * Cheers
    -  This reply was modified 5 years, 9 months ago by [niikk](https://wordpress.org/support/users/niikk/).
    -  This reply was modified 5 years, 9 months ago by [niikk](https://wordpress.org/support/users/niikk/).
 *  Thread Starter [niikk](https://wordpress.org/support/users/niikk/)
 * (@niikk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13347325)
 * Hi [@rur165](https://wordpress.org/support/users/rur165/)
 * Is there something what I can check in the DB? I mean, on a fresh install it 
   works. So it seems this issue is System related. But even if we deactivate all
   plugins and themes (except dokan lite, dokan pro, woocommerce), it does not work.
   Also reinstall dokan-lite and dokan pro change something.
 * This issue is really ugly and the “Commission per product” is not usable with
   this error 🙁
 * But, with the quick edit option in vendor dashboard product overview it works.
   So I guess this has something to do with DB values or the update button process.
 * Looking forward to your response.
 * Cheers 🙂
    -  This reply was modified 5 years, 9 months ago by [niikk](https://wordpress.org/support/users/niikk/).
 *  [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * (@rur165)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13347455)
 * Hello [@niikk](https://wordpress.org/support/users/niikk/) ,
 * I understand the situation.
 * Our technical support is only for the paid users hence it might not be possible
   for us to debug the issue with your live site. As the problem is not in the plugin
   we are also unable to reproduce it for further testing.
 * Thank you.
 *  Thread Starter [niikk](https://wordpress.org/support/users/niikk/)
 * (@niikk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13348514)
 * Hi [@rur165](https://wordpress.org/support/users/rur165/)
 * Thanks but…
 * We are a paying customer! We can reproduce this issue on our DEV system. So maybe
   you can check there? 🙂
 * Furthermore, it is something in Dokan DB. So it is acuatlly a plugin problem 
   because DB count also I guess 🙂
 * Cheers
 *  Thread Starter [niikk](https://wordpress.org/support/users/niikk/)
 * (@niikk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13349701)
 * Hello [@rur165](https://wordpress.org/support/users/rur165/)
 * Now we know that the problem is in a row in wp_options table.
    When we import
   the wp_options table from a fresh WP, WooComm, Dokan lite and Dokan pro installation
   it works. So the error is somewhere in wp_options.
 * Is there a specific row, which is relevant for commission? So the we can check
   both tables and row on both system.
 * Cheers
 *  [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * (@rur165)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13350075)
 * Hello [@niikk](https://wordpress.org/support/users/niikk/) ,
 * First of all, I am sorry I did not realize earlier that the product-wise commission
   is also a pro only feature. We are not supposed to discuss paid features in this
   forum and this might be harmful for us as this is a violation of WordPress.org
   forum rules.
 * Let’s take this conversation to our support ticket, share your site details so
   that I can assign one of our developers to check the problem on your site.
 * Also, please use the support ticket for any issues related to paid features. 
   You have paid for the support as well so why not use that 🙂
 * You can mention me and this conversation so it will be easier for other support
   engineers to track the issue fast.
 * Thank you.
 *  Thread Starter [niikk](https://wordpress.org/support/users/niikk/)
 * (@niikk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13350965)
 * Hello [@rur165](https://wordpress.org/support/users/rur165/)
 * Thanks! 🙂
 * We are able to solve this issue. But we still need some support to check the 
   solution.
    We create a new support case: #424045 – Vendor Commission Error – #
   150146
 * Thanks for making sure, that we get here a speedy feedback 🙂
 * Cheers
 *  [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * (@rur165)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13364135)
 * Hello [@niikk](https://wordpress.org/support/users/niikk/) ,
 * I have already replied to the tickets. Please follow up on my updates there.
 * Thank you.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Vendor commission error’ is closed to new replies.

 * ![](https://ps.w.org/dokan-lite/assets/icon-256x256.gif?rev=3239229)
 * [Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy](https://wordpress.org/plugins/dokan-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dokan-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dokan-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/dokan-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dokan-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dokan-lite/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Rashed Ripon (a11n)](https://wordpress.org/support/users/rur165/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/vendor-commission-error/#post-13364135)
 * Status: resolved