WooCommerce Cancel Abandonned Order

plugin banner

Cancel "on hold" orders after a certain number of days

Author:RVOLA (profile at wordpress.org)
WordPress version required:4.0
WordPress version tested:6.2
Plugin version:2.0.0
Added to WordPress repository:30-10-2017
Last updated:30-03-2023
Rating, %:96
Rated by:16
Plugin URI:https://github.com/rvola/woo-cancel-abandoned...
Total downloads:22 809
Active installs:2 000+
plugin download
Click to start download

WooCommerce 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.

WooCommerce 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 | Donate

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


FAQ
ChangeLog