| 开发者 | wooglobalapps |
|---|---|
| 更新时间 | 2026年10月24日 07:39 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
_billing_persontype (1 = individual, 2 = company), _billing_cpf, _billing_cnpj, _billing_company, _billing_birthdate, _billing_cellphone, _billing_number, _billing_neighborhood, _shipping_number and _shipping_neighborhood (customer meta: billing_cpf, billing_number…). With compatibility mode off, the keys are prefixed: _billing_checkoutbr_cpf, _billing_checkoutbr_number… Block orders also keep the native Additional Checkout Fields data (_wc_other/checkoutbr/…, _wc_billing/checkoutbr/…).
checkoutbr folder to /wp-content/plugins/ or install it from Plugins → Add New.Yes. The fields are registered with the WooCommerce Additional Checkout Fields API (WooCommerce 8.9 or newer). Person type, CPF, CNPJ, company name, birth date and mobile phone appear in the Contact information step; number and neighborhood appear in the address forms.
Yes. The same fields, validation and settings are used in the classic checkout, with input masks.
Yes. The check digits are calculated on the server for both checkouts, and numbers made of a single repeated digit are rejected. When "Individual" is selected the CPF is required; when "Company" is selected the CNPJ (and, if enabled, the company name) is required.
Showing only the field for the selected person type needs conditional fields, available in recent WooCommerce versions. CheckoutBR uses them automatically when available. On older versions both fields are shown, but only the one for the selected person type is required.
The fields are hidden and not required when the billing (or shipping) country is not Brazil.
Only if you enable the optional CEP auto-fill (the customer's browser sends the CEP to ViaCEP) or when an administrator sends a message in the "Generate with AI" tab. See the "External services" section.
Yes. Use the order meta keys listed in the description, for example $order->get_meta( '_billing_cpf' ) (compatibility mode). CPF is stored as digits only; CNPJ as 14 uppercase letters/digits.
Yes. Since July 2026 new CNPJs may contain letters in the first 12 characters (for example 12.ABC.345/01DE-35). CheckoutBR validates both the alphanumeric and the classic numeric format with the official check-digit rule (each character is worth its ASCII code minus 48). Lowercase input is accepted and saved in uppercase.
Yes – you can migrate in 15 minutes, with zero data loss:
_billing_persontype, _billing_cpf, _billing_cnpj, _billing_number, _billing_neighborhood, _billing_cellphone, _billing_birthdate, _shipping_number, _shipping_neighborhood…), so old orders keep showing CPF/CNPJ, returning customers are pre-filled (also in the Checkout block) and integrations that read those fields keep working. RG, IE and gender saved by the old plugin are still shown on old orders.
The plugin settings are deleted. The data saved on orders and customers is kept, because it is part of your order history.
Anything related to your store and this plugin: settings, design changes, texts and translations, or a custom feature. The answer appears in the same chat, usually within a few hours.