• Resolved Ward

    (@yward)


    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

    (@jahidulhassan)

    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!

    Tanjir Al Mamun

    (@tanjiralmamun)

    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Wrong Order Count’ is closed to new replies.