Title: Get suborder ID programmatically
Last modified: October 27, 2023

---

# Get suborder ID programmatically

 *  Resolved [chtoma27587](https://wordpress.org/support/users/chtoma27587/)
 * (@chtoma27587)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/get-suborder-id-programmatically/)
 * Hi,
 * ist it possible to retrieve the id of suborders whenever someone completes an
   order?
 * I added a snippet for the woocommerce_thankyou hook to automatically set the 
   status ‘completed’ for the order. When Dokan builds suborders out of the products
   in the main order, they won’t get updated. Therefore I need to get the id of 
   all suborders. Is this possible?
 * Additionally, in the dashboard of a customer he only sees the main order under
   the tab “orders”. He has to click on the main order to get to the suborders. 
   Is it possible to move the suborders directly to the “orders” overview? In general
   it would be nice to have a hook or something like that so that I can retrieve
   data of suborders.
 * Many thanks in advance!
 * Best regards

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

 *  [Tanvir Hasan](https://wordpress.org/support/users/tanvirh/)
 * (@tanvirh)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/get-suborder-id-programmatically/#post-17171233)
 * Hi [@chtoma27587](https://wordpress.org/support/users/chtoma27587/),
 * Thank you for your inquiry regarding the retrieval of suborder IDs and the organization
   of suborders within the dashboard.
 * To achieve the functionalities you’ve described, which involve retrieving data
   and potentially moving suborders directly to the “orders” overview, custom customization
   is indeed necessary. While WooCommerce and Dokan offer a wide range of hooks 
   and filters for customization, your specific requirements fall into the realm
   of more advanced and tailor-made development.
 * We recommend consulting with a professional developer or a WordPress customization
   expert who can assess your needs and create a solution tailored to your exact
   specifications. They can help you retrieve suborder IDs and adjust the organization
   of suborders to align with your preferences.
 * Thanks!
 *  Plugin Support [Jahidul Hassan Mojumder](https://wordpress.org/support/users/jahidulhassan/)
 * (@jahidulhassan)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/get-suborder-id-programmatically/#post-17193137)
 * Hi [@chtoma27587](https://wordpress.org/support/users/chtoma27587/),
 * Due to inactivity, we are marking this topic as resolved. Feel free to open a
   new one if you face any further issues.
 * Thanks!

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

The topic ‘Get suborder ID programmatically’ 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/)

 * 2 replies
 * 3 participants
 * Last reply from: [Jahidul Hassan Mojumder](https://wordpress.org/support/users/jahidulhassan/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/get-suborder-id-programmatically/#post-17193137)
 * Status: resolved