[WordPress] 外掛分享: SoftSquare Returning Customer History

首頁 › 外掛目錄 › SoftSquare Returning Customer History
全新外掛
安裝啟用
—
尚無評分
5 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.3.0 上架:2026-11-16

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「SoftSquare Returning Customer History」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

SoftSquare Returning Customer History shows WooCommerce store owners, at a glance, whether an order comes from a new customer or someone who has bought from you before, and how their earlier orders went.
WooCommerce only links orders together when the customer is logged in to the same account. Most shoppers check out as guests, so a loyal customer looks new every time, and a customer whose last three cash-on-delivery orders were cancelled looks no different from anyone else. This plugin matches orders on the details customers actually reuse: their billing email address and their phone number.
On the order screen, a Customer history box lists the customer’s earlier orders: order number, date, status, total, and which detail matched. Cancelled, failed and refunded orders stand out in red, and a summary counts the outcomes, such as “Completed: 4 · Cancelled: 1”.
In the orders list, a Customer column shows Repeat ×3 for a returning customer and New for a first order, so you can see your repeat business without opening a single order.
It is especially useful for cash-on-delivery stores: before you dispatch, you can see whether a customer has a history of cancelled orders.
This is an independent plugin by SoftSquare. It is not affiliated with, endorsed by, or supported by WooCommerce or Automattic. WooCommerce is a trademark of its respective owner and is used only to say which shop plugin this works with.
Features

Customer history box on the WooCommerce edit order screen, listing earlier orders from the same customer with date, status, total and the detail that matched
Repeat ×N / New badge in a Customer column of the WooCommerce orders list
Matches guest orders as well as account orders, by billing email, billing phone or customer account
Phone numbers are compared on their last 10 digits, so local and international formats of the same number match (for example 0300 1234567 and +92 300 1234567)
Email addresses are matched case-insensitively
Orders placed by staff while logged in to their own account are not linked by that account, so shop managers taking phone orders do not turn every customer into one
Cancelled, failed and refunded orders are highlighted, with a count of each outcome
Shows when the customer has also ordered again after the order you are viewing
Optional warning when earlier parcels were returned undelivered, for shipping and courier plugins that report it (see the developer notes)
One indexed database query per order, using WooCommerce High-Performance Order Storage
Compatible with WooCommerce High-Performance Order Storage (HPOS)
No settings to configure, nothing stored, and no data sent anywhere

Privacy
This plugin stores no data and makes no external requests. It reads existing WooCommerce orders and shows the results only to logged-in users who can view the WooCommerce order screens.
For developers
Filters:

rcfw_match_fields – which details to match on. An array of email, phone and account. Remove phone to match on email and account only.
rcfw_phone_digits – how many trailing digits identify a phone number. Default 10.
rcfw_list_limit – how many earlier orders the Customer history box lists. Default 10.
rcfw_order_was_returned – return true for an earlier order whose parcel came back undelivered. Shipping and courier plugins can use it to show a returned-parcel warning.

Example: flag orders that a courier plugin has marked as returned.
add_filter( 'rcfw_order_was_returned', function ( $returned, $order ) {
return $returned || 'returned' === $order->get_meta( '_my_courier_status' );
}, 10, 2 );

延伸相關外掛

文章
Filter
Mastodon