Please note that the information in this post may no longer be accurate or up to date. I recommend checking more recent posts or official documentation for the most current information on this topic. This post has not been updated and is being kept for archival purposes.
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.