sandywp / plugins / woo-better-shipping-calculator-for-brazil
Calculadora de Frete e Campos Checkout para o Brasil
Shipping calculator for Brazilian WooCommerce stores with automatic Postal Code address pre-filling and Brazilian Market on WooCommerce.
Ready in seconds.
v4.17.1 5,000+ installs WP 5.0+ PHP 8.2+

What you get inside
8 screens-
New plugin settings page.
-
Old cart screen using the Gutenberg block editor.
-
New cart screen using the Gutenberg block editor.
-
Old cart screen using the WooCommerce shortcode.
-
New cart screen using the WooCommerce shortcode.
-
Number field using the Gutenberg block editor.
-
Number field using the WooCommerce shortcode.
-
Progress bar in Gutenberg cart.
About this plugin
Improved shipping calculator designed specifically for Brazilian e-commerce stores using WooCommerce, making it easier and significantly improving the data entry flow on the cart and checkout pages.
This version includes full compatibility with Shortcodes and Gutenberg themes, allowing you to place the shipping calculator anywhere on your site with maximum flexibility.
This WordPress plugin ensures faster address verification and cleaner form management, leading to a better user experience and fewer abandoned carts.
🚀 New Features: Complete Brazilian Checkout
We have expanded the plugin capabilities to offer a full checkout solution for the Brazilian market. Now, in addition to the shipping calculator, the plugin manages Custom Checkout Fields essential for Brazilian logistics and invoicing.
New Field Features:
* CPF & CNPJ: Adds fields for Individual (CPF) and Company (CNPJ) Tax IDs with automatic validation.
* Address Fields: Adds and manages specific fields for Neighborhood (Bairro), Number, and Complement.
* Phone Masks: Intelligent input masking for Brazilian landlines and mobile phones.
✅ ERP & “Brazilian Market” Compatibility
This is a major update for store owners who need to issue invoices (Nota Fiscal). The plugin is now fully compatible with the data standards used by the Brazilian Market on WooCommerce plugin (by Claudio Sanches).
Why is this important?
1. Bling & ERP Integration: Because we follow the standard meta-keys structure, this plugin is fully compatible with Bling, Tiny, and other ERPs that integrate with WooCommerce. You can issue invoices (NFe) seamlessly without data errors.
2. Standardized Data: Ensures that CPF, CNPJ, and address data are saved exactly how external integration tools expect them.
Watch the Plugin Demo:
Key Features & Improvements:
On the Cart Page:
- ZIP Code Validation: Real-time validation of the CEP (ZIP code) format.
- Submission Control: The checkout/proceed button is only enabled after the customer enters a valid CEP.
- Dynamic Field Hiding: Option to hide unnecessary address fields on the Cart page for a cleaner interface.
- Compatibility with both Legacy and Blocks (Gutenberg) WooCommerce modes.
On the Checkout Page:
- ✨ NEW: Automatic Address Lookup: Automatically pre-fills the street, neighborhood, city, and state fields after the customer enters a valid CEP.
- ✨ NEW: Checkout Custom Fields: Adds support for CPF, CNPJ, Number, Neighborhood, and Birthdate.
- ✨ NEW: Input Validation: Validates CPF/CNPJ algorithms and applies input masks to prevent typing errors.
- ✨ NEW: Person Type Selector: Allows customers to switch between “Person” (Pessoa Física) and “Company” (Pessoa Jurídica) during checkout.
- ** Automatic Address Lookup:** Automatically pre-fills the street, neighborhood, city, and state fields after the customer enters a valid CEP.
- ** Required Phone Field with DDI:** The phone field is now mandatory and includes a resource to capture the Country Code (DDI), ensuring complete contact information.
- Number Field Addition: Adds the mandatory “Number” field, often missing in standard WooCommerce forms. Includes a
checkboxoption for addresses that are “Sem Número” (No Number). - Dynamic Field Hiding: Option to hide address fields when not needed.
- Compatible with Correios and all WooCommerce shipping
Additional Features:
- Free Shipping Minimum: Option to set a minimum cart value required to activate the free shipping method.
- Fully customizable through the dedicated plugin settings page.
- The plugin is fully customizable via action and filter hooks for advanced users.
More details can be found in the Frequently Asked Questions (FAQ).
Help and Support
When you need help, please create a topic in the Plugin Support Forum.
** Recommended Plugins **
* Link Invoice Payment for WooCommerce – Integrate custom payment methods and offer invoice-based payments in your WooCommerce store.
* Pix For WooCommerce – Integrate Pix, Brazil’s revolutionary instant payment system, into your WooCommerce store
Questions
- Does this plugin replace “Brazilian Market on WooCommerce”?
Yes, this plugin acts as an updated solution for Brazilian Market on WooCommerce. It maintains full compatibility with existing data but offers improved features. Note: To use it, you must disable the Brazilian Market on WooCommerce plugin (by Claudio Sanches) to avoid field conflicts.
- How can I CHANGE the text “Calculate shipping”?
Use the following code:
add_filter(
‘wc_better_shipping_calculator_for_brazil_postcode_label’,
function () {
return ‘your new text’;
}
);- How can I REMOVE the text “Calculate shipping”?
Use the following code:
add_filter(
‘wc_better_shipping_calculator_for_brazil_postcode_label’,
‘__return_null’
);- Why is the Phone field now mandatory and asking for a Country Code (DDI)?
This feature was added to ensure all essential customer contact data is complete and correctly formatted. The DDI (Dialing Code International) ensures the phone number is standardized for both national and international calls, which is crucial for logistics and customer service. You can disable this feature in the plugin settings under the Checkout tab.
- How does the automatic address lookup by CEP work?
When the customer enters a valid 8-digit CEP (Brazilian postcode) on the checkout page, the plugin uses public APIs (like VIACEP and Brasil API) to automatically retrieve and fill in the Street, City, State, and Neighborhood fields, speeding up the checkout process.
- Contributions
If you find any errors or have suggestions, please open an issue in our GitHub repository.
- Brasil API – ZIP code lookup and CNPJ validation.
- ReceitaWS – CNPJ validation (fallback).
- VIACEP – ZIP code field.
- International Telephone Input – Phone number field with country code.
sandywp / also on the shelf
Try another plugin
2.5 · 4K+ installs
Aceite diversos métodos de pagamento de forma simples e segura utilizando o Stone!
3.6 · 3K+ installs
Aceite pagamentos via cartão de crédito, cartão de débito, Pix, boleto e redirecionamento (Pagar com PagBank e Checkout PagBank)…
Etiqueta e declaração dos Correios para WooCommerce
4.0 · 200+ installs
Imprimir etiquetas de pedidos e declaração de conteúdo para os Correios do Brasil, para pedidos gerados no WooCommerce. Criado…
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.