前言介紹
- 這款 WordPress 外掛「WooCommerce Order Search Admin」是 2017-05-18 上架。
- 目前有 200 個安裝啟用數。
- 上一次更新是 2020-08-22,距離現在已有 1716 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.3 以上。
- 有 9 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
admin | orders | search | algolia | woocommerce |
內容簡介
這個外掛可以讓 WooCommerce 的訂單搜尋欄具有自動完成的功能,在輸入時即時顯示結果,無論數據庫中有多少筆訂單,都能在毫秒內找到所需的訂單。當 WooCommerce 的訂單數量變多時,搜尋特定訂單會變得非常緩慢和耗時。實際上,您越是擁有訂單,就越需要尋找特定的訂單。我們曾經看到用戶在等待 WooCommerce 在管理員中返回搜索結果時等待了一分鐘以上。即使等待了這麼長時間,由於默認搜索機制使用 SQL 查詢,關聯性也不理想,您還需要調整搜索查詢並再次等待。安裝此外掛後,您將能夠將所有訂單索引到 Algolia 中,並能夠在 WordPress 網站的管理員螢幕上的慣用訂單列表中以思考的速度找到訂單。您只需輸入幾個字符即可找到訂單。搜尋引擎將在以下字段上進行搜索:
- 訂單號碼(已使用類似 WooCommerce Sequential Order Numbers 的外掛進行測試)
- 客戶名稱
- 客戶姓氏
- 客戶電子郵件地址
- 帳單姓氏
- 帳單名字
- 帳單電子郵件地址
- 帳單電話號碼
- 帳單公司
- 帳單地址 1
- 帳單地址 2
- 帳單城市
- 帳單州
- 帳單郵編
- 帳單國家
- 運送姓氏
- 運送名字
- 運送公司
- 運送地址 1
- 運送地址 2
- 運送城市
- 運送州
- 運送郵編
- 運送國家
- 訂單中包含的產品 SKU
- 訂單的狀態
在搜尋輸入時,您會看到即時結果在下拉式選單中彈出,您可以在毫秒內找到適當的訂單。此外,通過利用 Algolia 作為搜索引擎,除了可以快速顯示搜索結果,還可以從拼寫錯誤中受益,以確保如果您拼錯了客戶名稱,仍然可以顯示相關訂單作為結果。在正確提供 Algolia 識別資料後,外掛會自動同步您的 WooCommerce 訂單和 Algolia 索引。每次添加、更新、刪除或回收站中的訂單時,它都會與 Algolia 同步。但請注意,在首次初始化外掛時,您需要將現有訂單索引。此外,該外掛還提供了一個 WP-CLI 命令,讓您可以直接從終端重新索引您的訂單。請注意,您並非強制使用命令行工具,外掛的管理員設置螢幕還允許您重新索引所有訂單。但如果您有 5 萬筆以上記錄且想加快索引速度,命令行方法是一個很好的技術替代方案。請注意,此外掛可以處理的訂單數量沒有限制,且索引將在兩種索引方法下工作。
原文外掛簡介
This plugin will power the WooCommerce orders search input with an autocompleted search field providing results as you type in milliseconds regardless of how much orders you have in your database.
When you start having lots of orders in WooCommerce, searching for a specific order can become very slow and time-consuming.
Fun fact is also that the more you have orders, the more you will need to search for a specific one.
We have seen users wait for over a minute for WooCommerce to return the search results in the admin.
And even after that long waiting time, given that the default search mechanism uses SQL queries, the relevancy isn’t optimal and you often need to adjust your search query and wait again.
By installing this plugin, you will be able to index all your orders into Algolia and be able to find orders at the speed of thought, right from your usual orders list in the admin screen of your WordPress website.
You can find orders by typing just a few characters.
The search engine will search on the following fields:
Order Number (Has been tested with plugins like WooCommerce Sequential Order Numbers )
Customer First Name
Customer Last Name
Customer email address
Billing First Name
Billing Last Name
Billing email address
Billing Phone number
Billing Company
Billing Address 1
Billing Address 2
Billing City
Billing State
Billing Postcode
Billing Country
Shipping First Name
Shipping Last Name
Shipping Company
Shipping Address 1
Shipping Address 2
Shipping City
Shipping State
Shipping Postcode
Shipping Country
Product SKU contained in the order
Status of the order
As you start typing in the search input, you will see instant results popping up inside of a dropdown menu and you will
be able to find the proper order in milliseconds.
Also note that by leveraging Algolia as a search engine, in addition to super fast results as you type, you will
also benefit from all the other features like typo tolerance that will make sure that if you misspell for example the customer name, you will still get the relevant orders displayed as part of the results.
Automatic synchronization
After you correctly provided the plugin with your Algolia credentials, the plugin will take care of making sure
the search index stays up to date with your WooCommerce orders.
Every time an order is added, updated, trashed or deleted, it will synchronize with Algolia.
Note, however, that when you first initialize the plugin, you need to index your existing orders.
WP-CLI command
The plugin also offers a WP-CLI command to allow you to reindex your orders directly from the
terminal.
Here is how to use it:
wp orders reindex
Please note that at no point you are forced to use the command line tool and that the admin settings screen
of the plugin also allows you to reindex all your orders.
The command line approach is an excellent technical alternative though if you have over 50 thousands of records and you want to speed up the indexing.
Note that there is no limit to how many orders this plugin can handle, and indexing will work with both indexing methods;
powered by the UI or by using the WP-CLI command line tool.
The only limitation of the admin UI reindexing is that you have to leave the page open during the reindexing
process.
Backend Order Search
By default, the plugin enhances the default backend search behavior by using Algolia.
This ensures a consistency between results you see in the list and the ones coming from the autocomplete dropdown.
If for whatever reason you want to restore the default backend search behavior, you can use the wc_osa_enable_backend_search filter hook.
function should_enable_backend_search( $value, WP_Query $query ) {
return false;
}
add_filter( 'wc_osa_enable_backend_search', 'should_enable_backend_search', 10, 2 );
Configuration constants
By default, you can configure the plugin on the included options page, but you can also configure the plugin by using one (or more) of the following constants in your wp-config.php.
When you use constants, the corresponding option fields will be disabled on the options page.
define( 'WC_OSA_ALGOLIA_APPLICATION_ID', '
define( 'WC_OSA_ALGOLIA_SEARCH_API_KEY', '
define( 'WC_OSA_ALGOLIA_ADMIN_API_KEY', '
define( 'WC_OSA_ORDERS_INDEX_NAME', 'wc_orders' );
define( 'WC_OSA_ORDERS_PER_BATCH', 200 );
About Algolia
This plugin relies on the Algolia service which requires you to create an account.
Algolia offers its Search as a Service provider on an incremental payment program, including a free plan which includes 10,000 records & 100,000 operations per month.
Beyond that, make sure you check out the pricing.
This plugin will create precisely one record per order to index. We index every order that is not flagged as trashed.
Algolia does not support this plugin.
The preferred way of submitting issues or feature requests is through the GitHub repository.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WooCommerce Order Search Admin」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
trunk | 1.12.1 | 1.13.0 | 1.13.1 | 1.13.2 | v1.0.0 | v1.0.1 | v1.1.0 | v1.1.1 | v1.2.0 | v1.2.1 | v1.2.2 | v1.2.3 | v1.3.0 | v1.4.0 | v1.5.0 | v1.6.0 | v1.6.1 | v1.6.2 | v1.7.0 | v1.7.1 | v1.7.2 | v1.7.3 | v1.8.0 | v1.9.0 | v1.10.0 | v1.10.1 | v1.11.0 | v1.12.0 |
延伸相關外掛(你可能也想知道)
Maven Algolia 》Maven Algolia 讓您的 WordPress 網站輕鬆加入 Algolia 強大的搜尋和自動完成功能。, 您的文章、頁面、分類和文章標籤會自動透過 Algolia 的 API 索引和同步...。
WP Search with Algolia 》「我討厭我的網站搜尋功能!」這是我們常常聽到的聲音。現在你可以使用 WP Search with Algolia 來愛上你的網站搜尋功能。, WP Search with Algolia 是由 Web...。
Algolia for WordPress 》Algolia 是在網站搜尋中改善的最聰明方式。, 此外掛在毫秒內提供相關的搜尋結果,確保您的用戶可以以思考的速度找到您最好的文章。, 它還具有本地錯誤容忍度...。
Search with Algolia Instantsearch Blocks 》這個外掛提供兩個功能:, , 網站搜尋表單及其結果區塊, 相關項目清單區塊, , 靜態相關項目區塊, 在任何地方添加網站搜尋表單及其結果區塊。, 這個自訂區塊顯...。
Search Support For WPML with Algolia 》如果你是使用WP Search with Algolia外掛及WPML多語言插件的用戶,你可能已經注意到搜尋結果會包含所有語言的內容。本外掛將幫助你輕鬆地篩選並分類出各語言...。
Search with Algolia Bogo extension 》這個外掛會根據 Bogo 設定,在由 WP Search with Algolia 建立的索引中加入 locale 屬性。。
Search with Algolia Headless extention 》WP Search with Algolia 可以將 WordPress 的資料索引到 Algolia 中。, 但如果我們將網站設定為 Headless,就需要將索引的永久連結位置從 WP 替換為 Headless...。