Title: Wrong Order Count
Last modified: October 8, 2021

---

# Wrong Order Count

 *  Resolved [Ward](https://wordpress.org/support/users/yward/)
 * (@yward)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/wrong-order-count/)
 * In the dashboard widget and the orders link in wordpress dashboard as well as
   in the orders page, it shows a wrong order count for the processing orders.
 * I have 2 orders as follows:
    -One order with one vendor only which shows as one
   order. -Another order with 2 vendors in it which shows as 3 different orders.
 * The intended behavior is that only the parent order should count or should, in
   the number of orders pending processing, however for some reason it is still 
   counting the child/sub orders as well which is not accurate as they are not separate
   orders to process.

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

 *  Plugin Support [Jahidul Hassan Mojumder](https://wordpress.org/support/users/jahidulhassan/)
 * (@jahidulhassan)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/wrong-order-count/#post-14956510)
 * Hi [@yward](https://wordpress.org/support/users/yward/)
 * I believe you are referring to your wp-admin panel’s `WooCommerce > Orders` section.
   That section is coming from WooCommerce. Dokan is only using that part with a
   bit of customization with implementing the concept of suborders.
 * A suborder is very similar to order. If an ordinary order has got a parent order,
   only then it is considered as a suborder by the Dokan system. So, we can say 
   suborders are orders with a flag that it has got a parent order.
 * This is why WooCommerce counts suborder as order also. Every child order is a
   separate order because that is to be handled as an individual order by a single
   vendor.
 * I hope that clarifies the whole picture. Let me know if I misunderstood your 
   query so that I can provide further clarification if needed.
 *  Thread Starter [Ward](https://wordpress.org/support/users/yward/)
 * (@yward)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/wrong-order-count/#post-14959738)
 * Hello Jahidul,
    Thank you for your response but you have indeed misunderstood
   the issue. I’m a developer myself and I’m aware of the concept of child orders
   and why dokan uses it this is why I mentioned it in the original post. Dokan 
   used to have a function to filter the analytics of woocommerce and the order 
   to show correct info and not show duplicate orders. The concept is using the 
   query post_parent=0 to only take into account main orders not child orders.
 * This is not working with the latest version and it’s displaying both child orders
   and main orders which is causing duplicate analytics beside the in accurate number
   of orders in the dashboard/orders screen
 *  [Tanjir Al Mamun](https://wordpress.org/support/users/tanjiralmamun/)
 * (@tanjiralmamun)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/wrong-order-count/#post-15005589)
 * Hi [@yward](https://wordpress.org/support/users/yward/),
 * I’ve seen both of your replies, and I can see that **Jahidul** has already explained
   it to you well. If you still have any confusion, you can read the explanation
   of the [Sub-order](https://wedevs.com/docs/dokan/common-questions/sub-order/).
 * Thank you!
 *  [Tanjir Al Mamun](https://wordpress.org/support/users/tanjiralmamun/)
 * (@tanjiralmamun)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wrong-order-count/#post-15034811)
 * Hi [@yward](https://wordpress.org/support/users/yward/),
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.
 * Thank you!

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

The topic ‘Wrong Order Count’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [Tanjir Al Mamun](https://wordpress.org/support/users/tanjiralmamun/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/wrong-order-count/#post-15034811)
 * Status: resolved