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
The topic ‘Get suborder ID programmatically’ is closed to new replies.