Title: Cancel Abandoned Order
Author: RVOLA
Published: <strong>October 30, 2017</strong>
Last modified: July 15, 2025

---

Search plugins

![](https://ps.w.org/woo-cancel-abandoned-order/assets/banner-772x250.png?rev=3329004)

![](https://ps.w.org/woo-cancel-abandoned-order/assets/icon-256x256.png?rev=3329004)

# Cancel Abandoned Order

 By [RVOLA](https://profiles.wordpress.org/rvola/)

[Download](https://downloads.wordpress.org/plugin/woo-cancel-abandoned-order.2.1.0.zip)

 * [Details](https://wordpress.org/plugins/woo-cancel-abandoned-order/#description)
 * [Reviews](https://wordpress.org/plugins/woo-cancel-abandoned-order/#reviews)
 *  [Installation](https://wordpress.org/plugins/woo-cancel-abandoned-order/#installation)
 * [Development](https://wordpress.org/plugins/woo-cancel-abandoned-order/#developers)

 [Support](https://wordpress.org/support/plugin/woo-cancel-abandoned-order/)

## Description

** Cancel Abandoned Order** allows you to add a small option that will take care
of dealing with “abandoned” commands.

If you have check or transfer type orders for example, you will be able to set a
maximum number of days or by hours to receive the payment.

Cancel Abandoned Order, will take care of checking this and change the status of
the order to “Cancel” if you have not received payment on time.

[**GitHub**](https://github.com/rvola/woo-cancel-abandoned-order) | [**Donate**](https://www.paypal.me/rvola)

### Requirement

 * PHP minimal: **7.0**
 * WordPress minimal: **4.0**
 * WooCommerce minimal : **2.2**

### Hooks

_Action_

 * **woo_cao_cancel_order** ($order_id) : After cancel order.

_Filters_

 * **woo_cao_gateways** : Adds a payment gateway for the control.
 * **woo_cao_before_cancel_order** : Before canceling the order, send the order_id
   and the WC_Order if you do not want to cancel this order. Expect an exact return
   of true.
 * **woo_cao_message_cancel_order** : Allows you to modify the note when canceling
   the order. Handy if you use the ‘woo_cao_before_cancel_order’ filter.
 * **woo_cao_date_order** ($old_date, $gateway, $mode) : Change the calculation 
   date for pending orders.
 * **woo_cao_default_hours** : Default value of the number of hours for order processing.
 * **woo_cao_default_days** : Default value of the number of days for order processing.
 * **woo_cao_statustocancel** ($status) : Allows you to add or change which WooCommerce
   order status the plugin should cancel.

### Wiki

 * [A help section on the code is available here](https://github.com/rvola/woo-cancel-abandoned-order/wiki)

## Installation

This section describes how to install the plugin and get it working.

 1. Upload the plugin files to the `/wp-content/plugins/woo-cancel-abandoned-order`
    directory, or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. By default you can control the orders on the payment gateways: Check and BACS. 
    Go to the options of the payment pages on WooCommerce.

_To add another payment gateway, simply use the **woo\_cao\_gateways** filters, 
more information on the [Wiki](https://github.com/rvola/woo-cancel-abandoned-order/wiki)_

## FAQ

### Does this plugin use Action Scheduler

Yes we have started the migration to Action Scheduler (recurring action) since version
1.9.0

### What does the plugin do?

Depending on the options defined in the payment gateway options page, the system
will cancel orders whose payments have not been received.

### Mode

You can cancel orders in hours or days.
 For example, if I put the mode “Hourly”,
I can cancel orders pending after 2 hours. Another example, in mode “Daily”, I can
cancel orders that I have not received payment within 7 days.

The execution of the cleaning is done like this:
 Mode **“Hourly”**: every hour 
to 00 minutes Mode **“Daily”**: every day at 0:00

_Since version 1.9.0, the action is no longer executed at XXh00. Refer to the “Scheduled
Actions” tab of the “Status” page of WooCommerce._

### I would like to cancel orders pending payment

Follow the [tutorial here](https://github.com/rvola/woo-cancel-abandoned-order/wiki/Change-the-status-type-for-the-cancellation-process)
to change the status of orders to cancel. By default the “on-hold” commands are 
canceled.

### I want to make suggestions

We’re glad you want to help us improve **Cancel Abandoned Order**!
 The GIT repository
is available here [https://github.com/rvola/woo-cancel-abandoned-order](https://github.com/rvola/woo-cancel-abandoned-order)

## Reviews

![](https://secure.gravatar.com/avatar/808a4393772afacdaecbcfd18f0be1db30e6f32d73d4958f2e94dc6402b3125c?
s=60&d=retro&r=g)

### 󠀁[Essential function](https://wordpress.org/support/topic/essential-function-2/)󠁿

 [Tobi_w](https://profiles.wordpress.org/tobi_w/) January 30, 2023 1 reply

This is a must have for shops with digital products. If the payment doesn’t go through,
no need to make it complicated. Cancel it and let the customer try again. Great 
to have this. Thank you

![](https://secure.gravatar.com/avatar/70cbde4a041e6cea4c977d54cf7953cfe8a05274c1bd05190714a86970991536?
s=60&d=retro&r=g)

### 󠀁[Work perfectly](https://wordpress.org/support/topic/work-perfectly-85/)󠁿

 [WebMat](https://profiles.wordpress.org/webmatpro/) March 9, 2022

Thanks, the filters to add custom parameters is fine. Just need a option for any
canceled order (without type of payment)

![](https://secure.gravatar.com/avatar/bcdee571d32df4f53fdf5c722f8caccb7cfae403cb7726f650f1ee5543173cf6?
s=60&d=retro&r=g)

### 󠀁[Simple and does exactly as it should](https://wordpress.org/support/topic/simple-and-does-exactly-as-it-should/)󠁿

 [tjos123](https://profiles.wordpress.org/tjos123/) August 1, 2021 2 replies

First review because I really like this plugin. It is straightforward and works 
like a charm. Glad that the creator included guides on Github Wiki. Minimal editing
is required. It’s a pity that some comments have driven the creator to stop support.
I do still hope that this remains updated and compatible. 🙂 If the creator does
read this, I have two questions that I wish to understand. 1) If I were to put 24hrs
daily to cancel, from when does it start activating the countdown? 2) Is it possible
to change the status to ‘Failed’ instead of ‘Cancelled’? In any case, just want 
to say GREAT JOB ON THIS PLUGIN!

![](https://secure.gravatar.com/avatar/12d912eee8c38340d652f883c4f0993dca51ac14c2f07789c0a25be871959e57?
s=60&d=retro&r=g)

### 󠀁[Funciona perfectamente](https://wordpress.org/support/topic/funciona-perfectamente-49/)󠁿

 [ceesaldair](https://profiles.wordpress.org/ceesaldair/) May 16, 2021 1 reply

Cancela la ordenes automáticamente pasado el tiempo configurado

![](https://secure.gravatar.com/avatar/d78d67ecfb8a2e58945e824c4b2452b08a53865908ee97dad02a2bfdde1839fe?
s=60&d=retro&r=g)

### 󠀁[Great simple](https://wordpress.org/support/topic/great-simple-27/)󠁿

 [cbroce](https://profiles.wordpress.org/cbroce/) May 9, 2021 1 reply

This is what I mean by an elegant solution, Great job !

![](https://secure.gravatar.com/avatar/4aabdafceb789ae31d307f26aab6626fb1adc9f31343489b56711c3bf0a74f58?
s=60&d=retro&r=g)

### 󠀁[Not idiot friendly](https://wordpress.org/support/topic/not-idiot-friendly/)󠁿

 [alfaholic](https://profiles.wordpress.org/alfaholic/) April 9, 2021 2 replies

It maybe works, but as it does not have an interface nor guide how to use it for
us idiots, I can not use it.

 [ Read all 16 reviews ](https://wordpress.org/support/plugin/woo-cancel-abandoned-order/reviews/)

## Contributors & Developers

“Cancel Abandoned Order” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ RVOLA ](https://profiles.wordpress.org/rvola/)

“Cancel Abandoned Order” has been translated into 4 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/woo-cancel-abandoned-order/contributors)
for their contributions.

[Translate “Cancel Abandoned Order” into your language.](https://translate.wordpress.org/projects/wp-plugins/woo-cancel-abandoned-order)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/woo-cancel-abandoned-order/),
check out the [SVN repository](https://plugins.svn.wordpress.org/woo-cancel-abandoned-order/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/woo-cancel-abandoned-order/)
by [RSS](https://plugins.trac.wordpress.org/log/woo-cancel-abandoned-order/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

[on GitHub](https://github.com/rvola/woo-cancel-abandoned-order/blob/master/CHANGELOG.md).

## Meta

 *  Version **2.1.0**
 *  Last updated **1 year ago**
 *  Active installations **1,000+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **6.8.6**
 *  PHP version ** 7.0 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/woo-cancel-abandoned-order/), [French (Belgium)](https://fr-be.wordpress.org/plugins/woo-cancel-abandoned-order/),
   [French (Canada)](https://fr-ca.wordpress.org/plugins/woo-cancel-abandoned-order/),
   [French (France)](https://fr.wordpress.org/plugins/woo-cancel-abandoned-order/),
   and [Thai](https://th.wordpress.org/plugins/woo-cancel-abandoned-order/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/woo-cancel-abandoned-order)
 * Tags
 * [abandoned cart](https://wordpress.org/plugins/tags/abandoned-cart/)[automation](https://wordpress.org/plugins/tags/automation/)
   [stripe](https://wordpress.org/plugins/tags/stripe/)[woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/woo-cancel-abandoned-order/advanced/)

## Ratings

 4.8 out of 5 stars.

 *  [  15 5-star reviews     ](https://wordpress.org/support/plugin/woo-cancel-abandoned-order/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/woo-cancel-abandoned-order/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/woo-cancel-abandoned-order/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/woo-cancel-abandoned-order/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/woo-cancel-abandoned-order/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/woo-cancel-abandoned-order/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/woo-cancel-abandoned-order/reviews/)

## Contributors

 *   [ RVOLA ](https://profiles.wordpress.org/rvola/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/woo-cancel-abandoned-order/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/rvola)