Title: Set order complete rather than processing
Last modified: April 9, 2024

---

# Set order complete rather than processing

 *  Resolved [GDU](https://wordpress.org/support/users/gettingdownunder/)
 * (@gettingdownunder)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/set-order-complete-rather-than-processing/)
 * Hi Folks, I have a scenario where payments are confirmed; however, the status
   remains as processing.
 * Searching these forums [flags a snippet](https://wordpress.org/support/topic/order-status-set-as-processing-instead-of-completed-when-order-goes-through/)
   from @rainfallnixfigthat, which, based on the feedback, will fix my problem. 
   However, the link: [https://woocommerce.com/document/automatically-complete-orders/](https://woocommerce.com/document/automatically-complete-orders/)
   now goes to a 404 error, and searching the Woocommece website for “automatically
   Complete Orders” draws blanks.
 * Does anyone have the snippet in question please?
   Thanks in advance
    -  This topic was modified 2 years, 1 month ago by [GDU](https://wordpress.org/support/users/gettingdownunder/).

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

 *  [virtz](https://wordpress.org/support/users/virtz/)
 * (@virtz)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/set-order-complete-rather-than-processing/#post-17561131)
 * [Archive.org is your friend](https://web.archive.org/web/20220926083008/https://woocommerce.com/document/automatically-complete-orders/)
   🙂
   The code from the page in question:
 *     ```wp-block-code
       /**
        * Auto Complete all WooCommerce orders.
        */
       add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
       function custom_woocommerce_auto_complete_order( $order_id ) { 
           if ( ! $order_id ) {
               return;
           }
   
           $order = wc_get_order( $order_id );
           $order->update_status( 'completed' );
       }
       ```
   
 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/set-order-complete-rather-than-processing/#post-17665098)
 * Hello [@gettingdownunder](https://wordpress.org/support/users/gettingdownunder/),
 * I apologize for the inconvenience caused due to the broken link. It seems the
   document you’re referring to might have been moved or deleted. However, I can
   help you with the issue you’re facing.
 * From your description, I can recommend the [WooCommerce Order Status Control](https://woocommerce.com/products/woocommerce-order-status-control/)
   plugin which will automatically complete orders based on the type of products
   you are selling.
 * You can also refer to the snippet shared by the community member [@virtz](https://wordpress.org/support/users/virtz/).
 * Please be sure to have a full site backup before adding any custom code snippets
   to your site.
 * I hope this helps.
 *  Thread Starter [GDU](https://wordpress.org/support/users/gettingdownunder/)
 * (@gettingdownunder)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/set-order-complete-rather-than-processing/#post-17678602)
 * All good, thanks for your help and thank you [@virtz](https://wordpress.org/support/users/virtz/)
   for the snippet! Much appreciated 😊
 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/set-order-complete-rather-than-processing/#post-17678767)
 * Hi [@gettingdownunder](https://wordpress.org/support/users/gettingdownunder/),
 * Glad to hear it – thanks for letting us know!
 * I’ll mark this thread as resolved now. If you have a few minutes, we’d love if
   you could [leave us a review.](https://wordpress.org/support/plugin/woocommerce/reviews/)
 * Cheers!

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

The topic ‘Set order complete rather than processing’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/set-order-complete-rather-than-processing/#post-17678767)
 * Status: resolved