Title: Company Autocomplete by LEI Register
Author: leiregister
Published: <strong>2021 年 3 月 17 日</strong>
Last modified: 2021 年 4 月 1 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/company-autocomplete/assets/icon.svg?rev=2498611)

# Company Autocomplete by LEI Register

 作者：[leiregister](https://profiles.wordpress.org/leiregister/)

[下载](https://downloads.wordpress.org/plugin/company-autocomplete.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/company-autocomplete/#description)
 * [评价](https://cn.wordpress.org/plugins/company-autocomplete/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/company-autocomplete/#developers)

 [支持](https://wordpress.org/support/plugin/company-autocomplete/)

## 描述

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](https://www.gleif.org/en/meta/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/](https://www.leinumber.com/)

## 屏幕截图

[⌊The user starts typing the company name and gets a list of matches.⌉⌊The user 
starts typing the company name and gets a list of matches.⌉[

The user starts typing the company name and gets a list of matches.

[⌊The fields are automatically filled after the user has clicked on the correct 
company name.⌉⌊The fields are automatically filled after the user has clicked on
the correct company name.⌉[

The fields are automatically filled after the user has clicked on the correct company
name.

## 常见问题

### What do I need to do?

Simply enable the plugin in WordPress

### Does it work if I don’t have Woocommerce?

If you’re clever, you can edit field selectors in the plugins JS file to match with
the selectors on your custom WordPress form. There are plans to make these editable
in the WordPress admin.

### Why is it not working? How to debug?

 * Is the plugin enabled?
 * Does the js/company-autocomplete.js appear in the site head where scripts are
   included?
 * Check if there are any errors in the “console” tab in the web browser element
   inspector.
 * Check if there are any faulty requests in the “network” tab in the web browser
   element inspector.
 * Are there any PHP errors shown on the site or in the error log?
 * GLEIF might be temporarily unavailable or you are being rate limited to 60 requests
   per minute (enforced by the GLEIF API).

## 评价

此插件暂无评价。

## 贡献者及开发者

「Company Autocomplete by LEI Register」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ leiregister ](https://profiles.wordpress.org/leiregister/)

[帮助将「Company Autocomplete by LEI Register」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/company-autocomplete)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/company-autocomplete/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/company-autocomplete/)，或通过[RSS](https://plugins.trac.wordpress.org/log/company-autocomplete/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/company-autocomplete/)。

## 更新日志

#### 1.0

 * Functional plugin with the company data autocomplete using GLEIF data

## 额外信息

 *  版本 **1.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **5.6.22**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/company-autocomplete/)
 * 标签
 * [address](https://cn.wordpress.org/plugins/tags/address/)[autocomplete](https://cn.wordpress.org/plugins/tags/autocomplete/)
   [autofill](https://cn.wordpress.org/plugins/tags/autofill/)[e-commerce](https://cn.wordpress.org/plugins/tags/e-commerce/)
   [search](https://cn.wordpress.org/plugins/tags/search/)
 *  [高级视图](https://cn.wordpress.org/plugins/company-autocomplete/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/company-autocomplete/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/company-autocomplete/reviews/)

## 贡献者

 *   [ leiregister ](https://profiles.wordpress.org/leiregister/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/company-autocomplete/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.legalentityidentifier.co.uk/)