BRCampos para PrestaShop

CPF and alphanumeric CNPJ for PrestaShop, done right.

Validates CPF and CNPJ, including the new alphanumeric format, in the account and checkout address form. It uses PrestaShop's own field, so invoices and other modules keep working.

Download free moduleSee Pro
PrestaShop 8.0–9.x · tested on 9.1.5 · pt-BR / es / en · GPL
Invalid CPF error in the address form

Why BRCampos

🔢

Alphanumeric CNPJ

Accepts the IN RFB 2.229/2024 format (from July 2026) as well as numeric CNPJ and CPF.

🧩

Native field

Uses the address identification number: no new columns, no overrides.

🏢

Individuals, companies or both

Choose who buys and require the company name for a CNPJ.

⌨️

Mask and label

The field becomes CPF or CNPJ, with a mask, when the country is Brazil.

🧾

Document on the order

The back-office order shows the formatted CPF/CNPJ and whether it is valid.

🔒

No outside calls

The free version sends nothing outside your shop.

How it works

  1. Install the zipModules › Upload a module. The field becomes required for Brazil.
  2. Pick the rulesIndividuals, companies or both; company name required for CNPJ.
  3. DoneCustomers with an invalid document see the error right in the field.

Screenshots

Invalid CPF error in the address form
Invalid CPF error in the address form
Settings: individuals, companies or both
Settings: individuals, companies or both
Formatted document on the order (back office)
Formatted document on the order (back office)
Pro tools: CNPJ lookup, unique CPF, CSV
Pro tools: CNPJ lookup, unique CPF, CSV
Pro licence (Free works without it)
Pro licence (Free works without it)

Free vs Pro

FreePro
CPF and CNPJ (numeric and alphanumeric)✓✓
Individual / company / both modes and company rule✓✓
Mask, label and in-field error✓✓
Formatted document on the order✓✓
CNPJ lookup (BrasilAPI) fills company and address–✓
One CPF per account–✓
CSV export of orders with CPF/CNPJ–✓

Pricing

Free

€0

Full validation. No limits.

Download

Pro

€19 + VAT / year

1 shop.

Buy Pro

Agency

€49 + VAT / year

Pro for up to 5 shops.

Buy Agency

EU buyers: Spanish VAT (21 %) is added at checkout; EU businesses with a valid VAT number pay no VAT (reverse charge). Outside the EU no Spanish VAT applies. UK: business purchases with a VAT number only, for now. 14-day money-back guarantee.

FAQ

Does it handle the alphanumeric CNPJ?

Yes. Check digits follow IN RFB 2.229/2024 (character value = ASCII code − 48).

Where is the document stored?

In the native address identification number (dni), without punctuation, so it fits 16 characters and works with invoices and other modules.

Guest checkout?

Yes. Validation runs on the account and checkout address form, guests included.

What if I uninstall?

The Brazilian address format and the field requirement go back to what they were.

Do I need Pro?

No. Free validates everything. Pro adds CNPJ lookup, one CPF per account and CSV for shops selling to companies.

Does the CNPJ lookup send data?

Only the CNPJ, from the customer's browser to BrasilAPI, and only in Pro with the option on.

PrestaShop 1.7?

No. The minimum is 8.0.

Is it on PrestaShop Addons?

Not yet. Download the zip here and install it from Modules › Upload a module.

Right CPF and CNPJ from the first order

Free, no sign-up.

Download free module