Sometimes it’s easier to pick the day’s orders all at once. This snippet adds a new menu item under WooCommerce called Pending Order Summary that prints a list of all the products needed to complete all pending orders.
The plugin also has a helpful ‘Print’ button at the end of the list, which prints the list without any of the surrounding WordPress Dashboard.
To install, add the above code to your theme’s functions.php file or to a MU Plugin. You can also use the Code Snippets plugin to install it, which is handy if you don’t have access to the filesystem.
8 thoughts on “List the products needed to fulfill all pending orders in WooCommerce”
Your information has been very helpful.
Is it possible to add a line under each product or make it a table?
Great help thankyou. Is it possible to just select from one category rather than the entire list?
Not easily. You’d need to grab the $product object associated with each line item and then use get_category_ids() to determine whether or not you want to include it in the list.
Awsome! Can we bring in extra columns? Like SKU and product Image, price?
Thanks a lot!!1
Would there be a way to make it go through and make this work for variations instead?
I’ve been looking but I’m honestly not 100% sure.
This does work for variable products. In the example screenshot, everything after the “-” is a variable product option.
Oh well I’m confused now. When I’m using this script it doesn’t seem to be separating the variations created using attributes to their own line items.
Seems like my replies to my messages aren’t working here.
So I worked out what’s wrong. It’s the products that have multiple variations that aren’t working properly.
Just wondering if there’s an easy way to fix this, unfortunately I’m not great when it comes to wordpress (I can do some modifications but don’t know that much)