Skip to content
The #1 WooCommerce product filter. 70,000+ shops run it.4.8 / 5 (325 reviews)70,000+ storesFree since 2018V4.0 is here

How To WooCommerce

How to Cancel an Order in WooCommerce: A Comprehensive Guide

Managing orders efficiently is crucial for any online store owner using WooCommerce. Whether due to customer requests, stock issues, or other reasons, knowing how to cancel an order in WooCommerce is an essential skill.

This guide will walk you through the process step-by-step, ensuring that you can handle order cancellations smoothly and keep your business running efficiently.


Understanding WooCommerce Order Status

Before diving into the cancellation process, it’s important to understand the different order statuses in WooCommerce. These statuses help you manage and track the progress of an order:

  • Pending Payment:
    Order received, awaiting payment.

  • Processing:
    Payment received, order is being prepared.

  • On Hold:
    Awaiting payment or stock.

  • Completed:
    Order fulfilled and completed.

  • Cancelled:
    Order cancelled by admin or customer.

  • Refunded:
    Order refunded.

  • Failed:
    Payment failed or was declined.


Steps to Cancel an Order in WooCommerce

Cancelling an order in WooCommerce is straightforward. Below is a step-by-step guide to help you through the process.


Step 1: Access Your WooCommerce Dashboard

First, log in to your WordPress admin panel.
From the dashboard, navigate to WooCommerce > Orders.

This will take you to the order management page where you can view all your orders.


Step 2: Select the Order to Cancel

Find the specific order you wish to cancel.
You can use the search bar or filter options to locate the order quickly.

Once found, click on the order number or the Edit button to open the order details.


Step 3: Change Order Status to Cancelled

Inside the order details page, locate the Order Status dropdown menu.

Select Cancelled from the dropdown.
The order status will be updated automatically.


Step 4: Notify the Customer

While WooCommerce may send automatic notifications, it’s always good practice to inform the customer directly.

You can do this by:

  • Sending a personalized email explaining the cancellation, or

  • Using the Order Notes section to add a message visible to the customer.

Clear communication helps maintain trust and reduces support inquiries.


Customizing the Cancellation Process with Code

For more advanced users, you may want to customize how cancellations work or automate specific actions.

Below is a simple code snippet to automatically change a Read more about How to Edit WooCommerce Shop Page with Elementor order status to cancelled after a certain period if payment is not received:

add_action('woocommerce_order_status_pending_to_cancelled', 'auto_cancel_order');function auto_cancel_order($order_id) {
$order = wc_get_order($order_id);
// Add custom actions here, like sending additional emails or logging info
// Read more about How To Add Free Shipping To A Product On Woocommerce
}

Add this code to your theme’s functions.php file or use a site-specific plugin.

Important: Always ensure you have a backup before making any changes to your site’s code.


Best Practices for Order Management

To manage order cancellations effectively, follow these best practices:

  • Communicate Clearly:
    Always keep customers informed about their order status, especially when cancelling.

  • Automate When Possible:
    Use plugins or code snippets to streamline processes and reduce manual work.

  • Keep Records:
    Maintain detailed records of transactions and customer communications for future reference.


Conclusion

Knowing how to cancel an order in WooCommerce is vital for maintaining customer satisfaction and operational efficiency. With this comprehensive guide, you’re well-equipped to handle Discover insights on How to Get Order Status in WooCommerce cancellations confidently.

By following Learn more about How to Make Free Shipping WooCommerce these steps and best practices, you can manage cancellations effectively and ensure your WooCommerce store continues to thrive.

Leave a Reply

Your email address will not be published. Required fields are marked *

Every WBW plugin, one license.

All Access unlocks every WBW plugin, Pro: $249 once, or $99 a year.