Documentation

WooCommerce Auto-Complete Orders Guide

Navigating order statuses in WooCommerce can be crucial for your business. Orders generally move to ‘Processing’ post-payment, but there are cases where skipping straight to ‘Completed’ might just be the efficiency hack you need.

Here’s a nifty bit of code you can add to your theme’s functions.php file:

This code listens for a successful payment and then changes the order status to ‘Completed’.

For a concise overview on managing orders in WooCommerce, including handling different order statuses, visit WooCommerce’s guide at Managing Orders. This resource is ideal for enhancing your order management skills.

Was this helpful?

Still need help?

Our team are on hand to provide fast, helpful and professional support.

Support request
All systems operational
Important Notice: Barclaycard ePDQ will be discontinued in March 2026. Our ePDQ plugins will remain functional until then, but we recommend switching to an alternative payment gateway before that date.   Read more