前言介紹
- 這款 WordPress 外掛「WooCommerce Cancel Abandoned Order」是 2017-10-29 上架。
- 目前有 2000 個安裝啟用數。
- 上一次更新是 2023-03-30,距離現在已有 766 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
- 有 16 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
rvola |
外掛標籤
order | cancel | on hold | pending | woocommerce |
內容簡介
WooCommerce Cancel Abandoned Order 提供一個小選項,讓您可以處理「被遺棄」的訂單。
例如,如果您有支票或轉帳類型的訂單,您可以設置最大的支付天數或小時數。
WooCommerce Cancel Abandoned Order 會檢查是否有收到付款,並在時間到期時將訂單狀態更改為「取消」。
GitHub | 捐贈
需求
PHP 最小版本:7.0
WordPress 最小版本:4.0
WooCommerce 最小版本:2.2
Hooks
Action
woo_cao_cancel_order ($order_id):訂單取消後。
Filters
woo_cao_gateways:為控制添加付款類型。
woo_cao_before_cancel_order:在取消訂單之前,傳送訂單 ID 和 WC_Order,如果您不想取消此訂單,應該傳回 true。
woo_cao_message_cancel_order:在取消訂單時可修改注釋。如果使用 ‘woo_cao_before_cancel_order’ 過濾器,此選項很方便。
woo_cao_date_order ($old_date, $gateway, $mode):更改待處理訂單的計算日期。
woo_cao_default_hours:訂單處理的默認小時數。
woo_cao_default_days:訂單處理的默認天數。
woo_cao_statustocancel ($status):添加或更改插件應該取消的 WooCommerce 訂單狀態。
Wiki
此代碼的使用說明可在此查閱
原文外掛簡介
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
A help section on the code is available here
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WooCommerce Cancel Abandoned Order」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.1.3 | 1.2.1 | 1.3.2 | 1.4.1 | 1.5.1 | 1.6.1 | 1.7.2 | 1.8.1 | 1.9.0 |
延伸相關外掛(你可能也想知道)
Events Manager – Event Cancellation 》, 需要已安裝並啟用Events Manager(免費外掛)。, , 不幸的是,有時您必須取消計劃中的活動。在 Events Manager 中,確保您完成了所有工作可能會很麻煩。這...。
Empty Title & Category Checker 》檢查標題是否為空或是否未選擇分類或選擇的分類為「無分類」,如果是則取消發佈或更新。