Hi @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
(@yward)
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
Hi @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.
Thank you!
Hi @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!