內容簡介
啟用此外掛後,標準 Woocommerce 結帳表單中的公司名稱欄位將自動加入自動完成功能。
目前全球 GLEIF 資料庫中有大約兩百萬家公司,都可透過此外掛進行搜尋。
在公司名稱欄位中輸入關鍵字將自動觸發 AJAX 搜尋至免費使用的 GLEIF 公開資料庫(GLEIF LEI 資料使用條款),
然後外掛將使用這些資料顯示相符的公司列表。
當點擊列表中的特定公司時,它將隱藏列表並自動填寫正確的資料至以下欄位:
公司名稱 (完成可搜尋的欄位)
地址
城市
郵遞區號
國家
目前可以透過修改外掛 JS 檔案開頭的變數來編輯一些變數。這些變數包括:
自訂欄位選取器 (針對自訂 Woocommerce 實作)
觸發搜尋時的 Keyup 延遲
最小關鍵字長度
目前在沒有搜尋結果等情況下並不會顯示錯誤訊息。
此外掛的想法是讓它簡潔並且不會讓使用者在插入公司名稱時感到困惑,當沒有符合的搜尋結果時仍能使用。
如果您想了解更多有關 LEI 碼或協助客戶取得它的相關資訊,我們建議將其導向 https://www.leinumber.com/
外掛標籤
開發者團隊
② 後台搜尋「Company Autocomplete by LEI Register」→ 直接安裝(推薦)
原文外掛簡介
Simply enabling this plugin will add autocomplete function to the company name field in your standard Woocommerce checkout form.
There are currently around 2 million companies in the GLEIF database from all over the world, which are all searchable with this plugin.
Typing in the company name field will automatically trigger a search with AJAX to the free to use GLEIF public database (GLEIF LEI data terms of use).
It will then use this data to show a list of matching companies to the keywords.
When clicking on a specific company in the list, it will hide the list and prefill the correct data to the following fields:
company name (completing the searchable field)
address
city
postal code
country
Some variables are currently editable by modifying the beginning of the plugin JS file. The variables include:
Custom field selectors for custom woocommerce implementations
Keyup delay when triggering the search
Minimum keyword length
Currently there are no shown errors in case of no search results etc.
The idea is that the plugin is minimal and doesn’t confuse the user in case there are no matches found for the inserted company name.
If you want to know more about LEI codes or help your customers obtain it, then we would recommend directing them to https://www.leinumber.com/
