Linux 软件免费装

Rebel Studios Brazilian Checkout Fields for WooCommerce

开发者 rebelstudios
更新时间 2026年10月15日 04:28
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

cep brasil cpf cnpj brazil

下载

1.0.5

详情介绍:

Rebel Studios Brazilian Checkout Fields adds the fields a Brazilian store needs to the WooCommerce checkout — CPF, CNPJ, company legal name (Razão Social), RG, state registration (Inscrição Estadual), street number and neighbourhood (bairro) — and does three things that are usually missing:
  1. Real validation. CPF and CNPJ are checked against the official check digits, in the browser and on the server. An invalid document never reaches the order.
  2. Autofill. Type the CEP and the street, neighbourhood, city and state fill in. Type the CNPJ and the company's legal name and address come with it.
  3. The data goes where you need it. CPF, CNPJ and legal name appear on the order screen, in emails and in the REST API — ready for your invoicing (NF-e) integration. Collecting a document you cannot use later is the problem this plugin exists to solve.
The plugin's interface is in Brazilian Portuguese. It is fully internationalized (i18n), so it can be translated into any language through translate.wordpress.org once published. Every field is optional Each field has three states: Disabled, Optional or Required. A store that sells digital products does not need to ask for a CPF; one that invoices companies needs a CNPJ and legal name and nothing else. You decide, without touching code. Works with both checkouts Compatible with the WooCommerce classic checkout and the block checkout, and with HPOS (High-Performance Order Storage). Data is stored the same way by both checkouts, so an invoicing integration only has to read one format. On the block checkout, customers choose between individual (Pessoa Física) and company (Pessoa Jurídica), and see only the documents for that choice. Privacy and reliability CEP and CNPJ lookups are made from your server, not from the customer's browser, and are cached. If a lookup service is down, the customer simply types the address — a purchase is never blocked by a third-party API.

安装:

  1. Install and activate the plugin.
  2. Go to WooCommerce → Checkout Brasil.
  3. For each field, choose Disabled, Optional or Required.

屏幕截图:

  • Settings: each field can be disabled, optional or required.
  • Diagnostics panel — versions, checkout type, HPOS, and whether the lookups are responding.

升级注意事项:

1.0.5 Stops the classic checkout from losing letters typed right after the CEP on some plain-permalink stores, and labels a CNPJ required for companies as required. 1.0.4 Fixes a wrong house number on some shipping addresses (classic checkout), missing document fields on the block checkout of WooCommerce 8.9 to 9.8, and an unenforced required CNPJ; adds personal-data export and erasure. 1.0.3 Renamed plugin and internal code prefix ahead of the WordPress.org listing; no change to features. 1.0.1 Fixes CNPJ input and autofill on the block checkout, and adds individual/company choice and shipping number/neighbourhood there. 1.0.0 Initial release.

常见问题:

The fields do not appear on my checkout.

It is almost always the checkout type. If your store uses the block checkout and your previous plugin only supported the classic checkout, no fields appear — which is exactly why this plugin exists. Go to WooCommerce → Checkout Brasil and look at the Diagnostics panel at the bottom of the page. It tells you which checkout your store uses, whether the fields are active, and whether another plugin is competing for the same fields. Copy that report before opening a support request.

Can I turn off the CPF?

Yes. Every field has three states — Disabled, Optional, Required — under WooCommerce → Checkout Brasil. Nothing is forced, including the CPF.

The fields appear twice.

You have two checkout-field plugins active at the same time. The Diagnostics panel detects the common ones (Brazilian Market on WooCommerce, Checkout Field Editor, Flexible Checkout Fields). Deactivate one of them.

I am migrating from "Brazilian Market on WooCommerce". Is my old data lost?

Old orders stay intact — this plugin deletes nothing. It stores data in its own meta keys (_billing_rsbcf_cpf), different from the old plugin's (_billing_cpf), precisely to avoid conflicts. New orders use the new keys; old orders remain readable by the old plugin while it is installed.

CEP lookup stopped working. Can my customers still buy?

Yes. A failed lookup is ignored and the customer types the address normally. A purchase is never blocked by a third-party API. The Diagnostics panel shows whether ViaCEP and BrasilAPI are responding right now.

Do CPF/CNPJ show up on the invoice?

They are stored on the order (_billing_rsbcf_cpf, _billing_rsbcf_cnpj, _billing_rsbcf_company_legal_name) and shown on the order screen, in emails and in the REST API — which is where NF-e integrations read them. If your integration expects different field names, the rsbcf_order_values filter lets you remap them.

Does it work with HPOS?

Yes, compatibility is declared. Data is saved through the WooCommerce order API, so it works the same with HPOS on or off.

Does it work with PagSeguro / Mercado Pago / PagBank?

The fields use their own names (billing_rsbcf_*) instead of the generic names several plugins fight over, which is the most common cause of gateway conflicts. If you still hit a conflict, send the Diagnostics report and we can answer on the first reply.

Is the CPF really validated?

Yes, with the official check digits, in the browser and again on the server. An invalid document never reaches the order. Repeated sequences (111.111.111-11) are rejected.

Do you receive my customers' data?

No. Lookups go from your server straight to ViaCEP and BrasilAPI, and responses are cached on your site. There is no server of ours in between.

更新日志:

1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0