WooCommerce Cancel Abandoned Order

外掛說明

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

安裝方式

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

常見問題集

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

I would like to cancel orders pending payment

Follow the tutorial here 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 WooCommerce Cancel Abandoned Order!
The GIT repository is available here https://github.com/rvola/woo-cancel-abandoned-order

使用者評論

2020 年 7 月 3 日
The plugin gets the job done, the author also provides great support even though this plugin only his spare time project. Wonderful job
2020 年 5 月 20 日
This plugin works great and has awesome support by its author.
2019 年 7 月 13 日
Apenas para informar, esse plugin não possui um painel administrativo, você edita as funções dele diretamente no painel de pagamentos do woocommerce e por default ele vem apenas habilitado para pagamento via cheque ou depósito, se você adicionou outras formas de pagamento precisa habilitar inserindo os códigos no seu functions.php, está bem explicado no github.
2019 年 1 月 14 日
Its working! Im very happy and the dev is very helpful! tnks!!!
閱讀全部 9 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WooCommerce Cancel Abandoned Order〉的開發相關工作。

參與者

WooCommerce Cancel Abandoned Order 外掛目前已有 3 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將 WooCommerce Cancel Abandoned Order 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.8.1 / 2020-08-24

  • ✔︎ Compatibility WOO 4.4
  • ✔︎ Compatibility WP 5.5

1.8.0 / 2020-04-11

  • NEW / Filter ‘woo_cao_message_cancel_order’ to modify the order note for cancellation. Useful if you use the filter ‘woo_cao_before_cancel_order’
  • MOVE / filter #7 and rename clean + add WC_Order class in filter (more possibility)
  • NEW / filter added by Pexle Chris before cancel order (#7)

Thanks to Pexle Chris

More changelog.