Calculadora de Frete para o Brasil
Calculadora de Frete para o Brasil
Description
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 WordPress plugin ensures faster address verification and cleaner form management, leading to a better user experience and fewer abandoned carts.
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: 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.
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
Installation
- Access your WordPress admin and go to Plugins > Add New.
- Search for “Improved Shipping Calculator for Brazilian Stores”.
- Find the plugin, click “Install Now” and then “Activate”.
- Done! No additional configuration is needed, but we recommend visiting the plugin settings.
Screenshots

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.

Progress bar in Gutenberg checkout.

Progress bar in Legacy cart.

Progress bar in Legacy checkout.

New postcode component.

New layout for postcode component.

Automatic Address Pre-filling in Checkout. (New)

Mandatory Phone Field with DDI. (New)
Faq
Use the following code:
add_filter(
‘wc_better_shipping_calculator_for_brazil_postcode_label’,
function () {
return ‘your new text’;
}
);
Use the following code:
add_filter(
‘wc_better_shipping_calculator_for_brazil_postcode_label’,
‘__return_null’
);
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.
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.
If you find any errors or have suggestions, please open an issue in our GitHub repository.
- Brasil API – ZIP code field.
- VIACEP – ZIP code field.
Reviews
UM PLUGIN NECESSÁRIO, obrigado
By martinsjc3 on March 31, 2025
Obrigado pelo plugin.
Cumpre o que promete
By Alexandre Gonçalves (alexandregoncalves) on October 8, 2024
Por mais plugins gratuitos que realmente solucionam problemas ...
Excepcional
By clebertirj on September 6, 2024
Parabéns! Ajuda muito, que Deus lhe abençoe!
Resolve perfeitamente o problema
By poneis88 on August 28, 2024
Não precisa de configurações adicionais, só instalar e ativar!
Absolutamente necessário
By caetanoburjack on February 5, 2024
É muito chato ter que digitar um tanto de informações para obter o calculo do frete. Com esse plugin, a experiência fica muito melhor.
Ótimo!
By leodefaveri on January 25, 2024
Plugin excelente, resolve um problema simples de uma coisa sem sentido na loja. Obrigado pelo excelente trabalho Luiz, sempre contribuindo com a comunidade!
Tudo certo
By luckermann on January 14, 2024
funcionando perfeitamente em 2024
Sensacional
By Thiago Andrade (thiagoandradewp) on January 7, 2024
Uso em todos os meu clientes e recomendo no meu curso sobre WooCommerce.
excelente plugin
By jorge oliveira (jorgeclica) on December 16, 2023
excelente plugin, utilizo em diversas lojas, funciona muito bem, recomendo a todos
100%
By ericsonws on November 29, 2023
cumpre lindamente o que promete
Changelog
4.5.0 – 24/10/2025
- NEW: Text font configuration system in the product and cart components.
- NEW: Automatic address filling on the Checkout page.
- NEW: Highlight for the ZIP code field in the Checkout page form.
4.4.0 – 10/09/2025
- New: cache system for postal code queries.
- New: plugin display card.
- New: Psalm and CodeQL libraries for code
4.3.3 – 15/08/2025
- Fix: Button styles.
- Fix: Nonce.
- Fix: Currency type and decimal places.
4.3.2 – 08/08/2025
- Fix: Component display issue.
- Adjustment: Message in Gutenberg fields.
- Addition: Link configuration field.
4.3.1 – 05/08/2025
- Adjustment: Option that defines the component position is now at a higher level, for both product page and cart.
- Fix: When defining the CEP component position on a product page in custom mode, it did not display as expected.
- Fix: Default icon color value.
- Addition: Link that leads to configuration page is now available on the product page when the user is a page administrator.
4.3.0 – 29/07/2025
- Addition: New custom ZIP code verification components.
- Addition: ZIP code component for the product page.
- Addition: ZIP code component for the Woo cart page
4.2.1 – 09/06/2025
- Fix: Decimal separator.
- Fix: Dynamic URL.
- Fix: Progress bar on the legacy cart page.
4.2.0 – 06/06/2025
- Addition: Option to set a minimum cart value for free shipping.
4.1.6 – 02/06/2025
- Adjustment: fix in the address auto-fill field.
4.1.5 – 22/05/2025
- Adjustment: address hiding field.
- Addition: plugin contributors.
- Addition: link to the plugin settings page on the cart page only when the user is an administrator.
4.1.4 – 20/05/2025
- Adjustment: neighborhood field is outside the established parameters.
- Adjustment: README.txt file tags.
4.1.3 – 15/05/2025
- Adjustment: more dynamic blueprint at the time of playground configuration.
4.1.2 – 07/05/2025
- Fix: Adjustments in the identification of physical and digital products.
- Adjustment: Improvement in the githubworkflow flow for plugin release in the repository and WordPress.
4.1.1 – 29/04/2025
- Fix: Improved README.txt description for Portuguese – BR.
- Fix: Improved Gutenberg field for ZIP code field, now it is possible to enable or disable address hiding in ZIP code fields.
4.0.1 – 23/04/2025
- Fix: New Readme.txt and image list.
4.0.0 – 26/03/2025
- Adjustment: Plugin changed to Object Oriented (OO) model.
- New settings tab for the plugin.
- Compatibility with Gutenberg.
- New number field in Woocommerce checkout (shortcode and gutenberg)
3.2.2
- Tested up to WordPress 6.6
3.2.1
- Tested up to WordPress 6.4
3.2.0
- Adjustment: Forces WooCommerce settings to enable shipping calculation.
3.1.2
- Fix: Incompatibility with the Fluid Checkout plugin.
3.1.1
- Fix: Sometimes the ZIP code field mask was not working in new shipping calculations.
3.1.0
- Feature: Now the ZIP code field has the ‘tel’ type (to show the numeric keyboard on mobile).
3.0.2
- Fix: The donation notice was not closing.
3.0.1
- Fix: The plugin’s JavaScript should only run on the cart page.
3.0.0
- Adjustment: Refactored code for better compatibility.
- Breaking: Several hooks have been removed.
2.2.0
- Adjustment: Clears the city field to avoid unexpected results.
- Fixed the
wc_better_shipping_calculator_for_brazil_hide_countryfilter hook.
2.1.2
- Minor fixes.
2.1.1
- JavaScript fix.
2.1.0
- Plugin name changed to “Improved shipping calculator for Brazilian stores”.
- Now the ZIP code field is always visible.
- New hook filter:
wc_better_shipping_calculator_for_brazil_add_postcode_mask(default:true) - New hook filter:
wc_better_shipping_calculator_for_brazil_postcode_label(default:"Calculate shipping:") - Fix in
register_activation_hook.
2.0.4
- Fix in pt_BR translation.
- Tested with WordPress 6.0 and WooCommerce 6.5.
2.0.3
- Fix for a syntax error with older PHP versions.
2.0.2
- JavaScript fixes.
- Added translation for PT-BR.
2.0.1
- Internal fixes.
2.0.0
- Initial release.