Title: Ballitech Checkout Fields for WooCommerce
Author: Ballitech
Published: <strong>September 7, 2026</strong>
Last modified: September 7, 2026

---

Search plugins

![](https://ps.w.org/ballitech-checkout-fields-for-woocommerce/assets/banner-772x250.
png?rev=3685545)

![](https://ps.w.org/ballitech-checkout-fields-for-woocommerce/assets/icon-256x256.
png?rev=3685545)

# Ballitech Checkout Fields for WooCommerce

 By [Ballitech](https://profiles.wordpress.org/ballitech/)

[Download](https://downloads.wordpress.org/plugin/ballitech-checkout-fields-for-woocommerce.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/ballitech-checkout-fields-for-woocommerce/#description)
 * [Reviews](https://wordpress.org/plugins/ballitech-checkout-fields-for-woocommerce/#reviews)
 *  [Installation](https://wordpress.org/plugins/ballitech-checkout-fields-for-woocommerce/#installation)
 * [Development](https://wordpress.org/plugins/ballitech-checkout-fields-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/ballitech-checkout-fields-for-woocommerce/)

## Description

This plugin adds the fields a Brazilian store needs at checkout and that
 WooCommerce
does not ship with: person type, CPF, CNPJ, state registration (inscricao estadual),
street number and district.

Three things set it apart from the plugins that came before it.

**1. It works in the block checkout.**

WooCommerce replaced its checkout with one built on blocks. Plugins written for

the old checkout simply draw nothing there: the customer reaches the payment step
and there is no CPF field at all. This plugin uses the official additional checkout
fields API, the same one WooCommerce itself uses, so the fields show up in both 
checkouts without workarounds.

**2. It accepts the alphanumeric CNPJ.**

Since 31 July 2026 the Brazilian federal tax authority issues CNPJ numbers that

contain letters (Normative Instruction RFB 2.229/2024). The identifier still has
14 positions, but the first 12 may include letters; only the 2 final check digits
remain numeric. A validator that accepts digits only will reject a legitimate company
at checkout, and the sale is lost without anyone finding out why.

The validation rule here was checked during development against 200,000 random
 
numeric CNPJ numbers plus six real, publicly known ones: the new algorithm accepts
everything the old one accepted, with no divergence. The plugin also ships a diagnostics
page that runs a short validator battery inside your own store, so you can see the
rule working on your installation.

**3. You can move off the old plugin without losing data.**

Stores already running _Brazilian Market on WooCommerce_ have the CPF stored in

_billing_cpf, and the whole ecosystem reads it from there: invoicing software, payment
gateways, themes, export spreadsheets. This plugin **writes to the same keys, in
addition to the new ones. Nothing that used to work stops working when you switch.

Existing customer records are imported automatically, in batches, without
 locking
up the admin.

#### Address autofill from the CEP

Type the Brazilian postal code and the street, district and city fill
 themselves,
in the block checkout and in the classic one alike. The lookup uses ViaCEP, needs
no key and no account.

It only writes into fields that are still empty, so it never erases something
 the
customer typed. If the CEP is unknown, or ViaCEP is unreachable, nothing happens
and the person fills the address by hand: the checkout is never blocked by a lookup.
Stores that prefer to turn it off can return false from the ballitech_cf_buscar_cep
filter.

#### Included fields

 * Person type (individual or company), which shows either CPF or CNPJ
 * CPF, with check digit validation
 * CNPJ, numeric and alphanumeric, with validation
 * State registration (inscricao estadual)
 * Street number and district, on both billing **and** shipping, so the shipping
   
   label comes out right
 * Input masks for CPF, CNPJ, postal code and phone
 * Address lookup from the Brazilian postal code (CEP)

#### Compatibility

 * Block checkout and classic checkout
 * HPOS (High-Performance Order Storage), declared and tested
 * WooCommerce 8.9 or newer

### Is there a paid version?

Yes, and this plugin is complete without it. Everything described above is free

and stays free: the fields, the validation, the alphanumeric CNPJ, the migration
and the postal code lookup.

**Ballitech Checkout Fields Pro** adds one thing only: it looks the CNPJ up at the
federal
 tax authority and fills in company name, address, district and postal code
by itself, warning you when the company is no longer active. It is a separate plugin,
distributed outside this directory, and nothing here depends on it.

### External services

This plugin uses **ViaCEP** (https://viacep.com.br) to fill in street, district

and city from the postal code typed by the customer.

 * **What is sent:** the postal code typed by the customer, and nothing else.
 * **When:** at the moment the customer finishes typing the 8 digits, from their
   
   own browser. The store server does not take part in the request.
 * **Terms of use and privacy policy:** https://viacep.com.br

To turn the lookup off, use this filter:

    ```
    add_filter( 'ballitech_cf_buscar_cep', '__return_false' );
    ```

## Screenshots

[⌊The fields in the block checkout.⌉⌊The fields in the block checkout.⌉[

The fields in the block checkout.

[⌊Switching between individual and company.⌉⌊Switching between individual and company
.⌉[

Switching between individual and company.

[⌊The Brazilian data on the order screen in the admin.⌉⌊The Brazilian data on the
order screen in the admin.⌉[

The Brazilian data on the order screen in the admin.

[⌊The diagnostics page, with the validator battery.⌉⌊The diagnostics page, with 
the validator battery.⌉[

The diagnostics page, with the validator battery.

## Installation

 1. Install and activate the plugin.
 2. That is all. There is no settings screen; the fields appear at checkout.
 3. If you were using _Brazilian Market on WooCommerce_, **deactivate it**. Your data
    has already been imported.
 4. Open **WooCommerce > Ballitech Checkout** to confirm everything is green.

## FAQ

### The fields show up twice. What happened?

Either the old plugin is still active, or your WooCommerce already draws the
 fields
on its own and compatibility mode is switched on for nothing. Open **WooCommerce
> Ballitech Checkout**: the page tells you which of the two it is, in one line.

### Will my invoicing software keep working?

Yes. The plugin writes to the same keys _Brazilian Market on WooCommerce_ used
 (`
_billing_cpf`, `_billing_cnpj`, `_billing_number`, `_billing_neighborhood`), which
is where invoicing tools read from.

### What is an alphanumeric CNPJ?

A CNPJ with letters in the first 12 positions, issued by the Brazilian federal
 
tax authority since 31 July 2026. Older CNPJ numbers, made of digits only, stay 
valid forever: there is no migration and no renumbering.

### Do I need to configure anything?

No. If you need to change the behaviour, the code documents the available
 filters.

### Does it work with the classic (shortcode) checkout?

Yes. The plugin detects which of the two the store uses and adapts.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Ballitech Checkout Fields for WooCommerce” is open source software. The following
people have contributed to this plugin.

Contributors

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

[Translate “Ballitech Checkout Fields for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/ballitech-checkout-fields-for-woocommerce)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ballitech-checkout-fields-for-woocommerce/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ballitech-checkout-fields-for-woocommerce/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ballitech-checkout-fields-for-woocommerce/)
by [RSS](https://plugins.trac.wordpress.org/log/ballitech-checkout-fields-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * First release.
 * Fields: person type, CPF, CNPJ, state registration, street number, district.
 * CPF validation and CNPJ validation, numeric and alphanumeric (IN RFB
    2.229/2024).
 * Block checkout support through the official additional fields API.
 * HPOS compatibility declared.
 * Import and mirroring of the Brazilian Market on WooCommerce meta keys.
 * Diagnostics page with a validator battery.

## Meta

 *  Version **1.0.0**
 *  Last updated **18 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.1**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [brasil](https://wordpress.org/plugins/tags/brasil/)[cep](https://wordpress.org/plugins/tags/cep/)
   [checkout](https://wordpress.org/plugins/tags/checkout/)[cnpj](https://wordpress.org/plugins/tags/cnpj/)
   [cpf](https://wordpress.org/plugins/tags/cpf/)
 *  [Advanced View](https://wordpress.org/plugins/ballitech-checkout-fields-for-woocommerce/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ballitech-checkout-fields-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ballitech-checkout-fields-for-woocommerce/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ballitech-checkout-fields-for-woocommerce/)