WooCommerce Mark Virtual Orders as Complete
I’m using the WooCommerce Software Add-on and need my orders to be marked completed as the are completed. These products are digital and don’t need to be waiting for me to log into WordPress to mark as complete in WooCommerce.
Here’s a script to help you mark WooCommerce vitual orders as complete after purchase:
Script originally found here: How to Set WooCommerce Virtual Order Status to Complete After Payment
By default WooCommerce will mark virtual-downloadable orders as ‘completed’ after successful payment, which makes sense, but some store owners will want to be able to automatically mark even a virtual order as complete upon payment, for instance in the case of a site which takes donations where no further action is required.