Linux 软件免费装
Banner图

Strainovic UID Check Schweiz

开发者 gstrainovic
更新时间 2026年10月5日 06:27
捐献地址: 去捐款
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce checkout contact form 7 switzerland uid

下载

0.2.2 0.2.1 0.3.0

详情介绍:

Business customers enter their Swiss business identification number (UID, in German "Unternehmens-Identifikationsnummer") in the checkout or in a quote form. Strainovic UID Check Schweiz validates it before the order or request goes through: WooCommerce: the plugin adds an optional "UID" field to the checkout, both to the Checkout block (default since WooCommerce 8.3, contact section, saved to the customer account) and to the classic shortcode checkout (after the company name). If filled in, it is validated. Contact Form 7: every text field named uid is validated, for example [text uid placeholder "CHE-123.456.789"], or [text* uid] for a required field. For developers: during a Contact Form 7 submission, other plugins (for example a connector that sends the inquiry to a CRM) get the check result with apply_filters( 'strainovic_uid_check_schweiz_cf7_report', null ). It returns null (no or empty UID field) or an array with the keys uid (CHE-123.456.789), status (active, deleted, not_listed or unverified when the register was unreachable), register_reached, checked_at (ISO 8601, UTC) and company (null or name, legal_form as eCH-0097 code, street, postcode, city, canton, vat_registered), taken from the register at the time of the submission. Languages: English, German (Germany and Switzerland), French and Italian are included. The field label and the error messages follow the language of the site, with the Swiss terms UID, IDE (French) and IDI (Italian). German variants such as de_CH_informal or de_AT, and French or Italian variants such as fr_CA or it_CH, use the matching bundled translation. Pro version (in preparation): fill in company name, legal form and address automatically from the register, show the VAT status, allow invoice payment only for valid companies, alert when a customer company is deleted. More at https://www.strainovic-it.ch/uid-check/

安装:

  1. Search for "Strainovic UID Check Schweiz" under Plugins → Add New, or upload the folder strainovic-uid-check-schweiz to /wp-content/plugins/.
  2. Activate the plugin.
  3. WooCommerce: the field appears in the checkout automatically. Contact Form 7: add a text field named uid to your form.

常见问题:

Is the field required?

In the WooCommerce checkout it is optional and only validated when filled in. In Contact Form 7 you decide with [text uid] or [text* uid].

What happens if the UID register is down?

A UID with a correct check digit is accepted. An outage of the federal service should never block an order.

Do I need an account or API key?

No. Public queries of the UID register are free and need no login.

Does it work with Germanized for WooCommerce?

Yes, tested with Germanized for WooCommerce 4.1.4 (free version) and WooCommerce 11.1.2 in the Checkout block: the UID field appears, deleted companies are rejected and valid UIDs are saved with the order. Germanized Pro, which adds its own VAT ID field checked against the EU VIES service, has not been tested yet.

更新日志:

0.3.0 0.2.2 0.2.1 0.2.0 0.1.1 0.1.0