Title: Suborders
Last modified: May 30, 2018

---

# Suborders

 *  Resolved [kkjj](https://wordpress.org/support/users/kkjj/)
 * (@kkjj)
 * [8 years ago](https://wordpress.org/support/topic/suborders-2/)
 * Hi
 * I am using Dokan multivendor plugin. I need to output the orders, however when
   I do this if there is an order where someone has purchased products from multiple
   stores it creates orders and suborders. The order is everything in the purchase
   and the suborder is everything sorted based on the individual vendor. Basically,
   it ends up double counting. Is there any way of only getting the orders as opposed
   to suborders. Either that or I need a column which can tell me if it is an order
   or suborder.
 * I got this information from the developers of Dokan
 * If an order has no child, that means it is a single order and no sub order exists
   for that order.
    If any order has sub order then the sub order id is different
   than the parent order id. Navigate through WP content > Plugins > Dokan lite 
   > includes > class-order-manager.php, there is a function called on_sub_order
   change. Inside this function, you will see this on line number 80. $sub_orders
   = get_children( array( ‘post_parent’ => $parent_order_id, ‘post_type’ => ‘shop_order’));
   Then if you print that order, your will see the parent order id for each of the
   sub order.
 * Thanks a lot

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

 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [8 years ago](https://wordpress.org/support/topic/suborders-2/#post-10339130)
 * hi
 * Please, open section “Filter by order” and
    mark checkbox “Don’t export child
   orders”
 * thanks, Alex
 *  Thread Starter [kkjj](https://wordpress.org/support/users/kkjj/)
 * (@kkjj)
 * [8 years ago](https://wordpress.org/support/topic/suborders-2/#post-10343430)
 * perfect thanks
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [8 years ago](https://wordpress.org/support/topic/suborders-2/#post-10343717)
 * you’re welcome

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

The topic ‘Suborders’ is closed to new replies.

 * ![](https://ps.w.org/woo-order-export-lite/assets/icon-256x256.png?rev=1365554)
 * [Advanced Order Export For WooCommerce](https://wordpress.org/plugins/woo-order-export-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-order-export-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-order-export-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-order-export-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-order-export-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-order-export-lite/reviews/)

## Tags

 * [order](https://wordpress.org/support/topic-tag/order/)

 * 3 replies
 * 2 participants
 * Last reply from: [algol.plus](https://wordpress.org/support/users/algolplus/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/suborders-2/#post-10343717)
 * Status: resolved