{"id":83155,"date":"2018-03-22T01:29:45","date_gmt":"2018-03-22T01:29:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/woocommerce-better-shipping-calculator-for-brazil\/"},"modified":"2026-10-22T16:00:03","modified_gmt":"2026-10-22T16:00:03","slug":"woo-better-shipping-calculator-for-brazil","status":"publish","type":"plugin","link":"https:\/\/da.wordpress.org\/plugins\/woo-better-shipping-calculator-for-brazil\/","author":15590126,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"5.2.1","stable_tag":"5.2.1","tested":"7.1.3","requires":"5.0","requires_php":"8.2","requires_plugins":null,"header_name":"Campos Checkout Brasileiro para WooCommerce","header_author":"Link Nacional","header_description":"Shipping calculator without Country and State fields. Works only in brazilian stores.","assets_banners_color":"f6f6f8","last_updated":"2026-10-22 16:00:03","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.linknacional.com.br\/wordpress","header_author_uri":"https:\/\/linknacional.com.br\/","rating":4.9,"author_block_rating":0,"active_installs":5000,"downloads":129000,"num_ratings":45,"support_threads":7,"support_threads_resolved":7,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"2.0.0":{"tag":"2.0.0","author":"luizbills","date":"2020-09-26 15:02:59","revision":2388920},"2.0.1":{"tag":"2.0.1","author":"luizbills","date":"2021-04-27 17:08:45","revision":2522225},"2.0.2":{"tag":"2.0.2","author":"luizbills","date":"2021-05-01 16:31:19","revision":2524659},"2.0.3":{"tag":"2.0.3","author":"luizbills","date":"2021-05-03 23:29:18","revision":2525612},"2.0.4":{"tag":"2.0.4","author":"luizbills","date":"2022-05-27 13:06:52","revision":2732664},"2.1.0":{"tag":"2.1.0","author":"luizbills","date":"2022-07-21 17:30:21","revision":2759919},"2.1.1":{"tag":"2.1.1","author":"luizbills","date":"2022-07-22 23:31:07","revision":2760487},"2.1.2":{"tag":"2.1.2","author":"luizbills","date":"2022-07-24 19:32:27","revision":2760869},"2.2.0":{"tag":"2.2.0","author":"luizbills","date":"2022-07-30 12:11:07","revision":2763829},"3.0.0":{"tag":"3.0.0","author":"luizbills","date":"2022-08-08 20:24:54","revision":2768031},"3.0.1":{"tag":"3.0.1","author":"luizbills","date":"2022-08-10 20:28:04","revision":2769098},"3.0.2":{"tag":"3.0.2","author":"luizbills","date":"2022-09-15 12:16:48","revision":2785305},"3.1.0":{"tag":"3.1.0","author":"luizbills","date":"2022-11-09 12:00:45","revision":2815116},"3.1.1":{"tag":"3.1.1","author":"luizbills","date":"2023-01-14 13:20:59","revision":2848377},"3.1.2":{"tag":"3.1.2","author":"luizbills","date":"2023-04-10 23:51:38","revision":2896829},"3.2.0":{"tag":"3.2.0","author":"luizbills","date":"2023-06-27 14:09:38","revision":2931457},"3.2.1":{"tag":"3.2.1","author":"luizbills","date":"2023-11-19 13:58:00","revision":2998329},"3.2.2":{"tag":"3.2.2","author":"linknacional","date":"2025-02-03 13:32:29","revision":3233997},"4.0.0":{"tag":"4.0.0","author":"linknacional","date":"2025-04-23 18:11:32","revision":3280247},"4.0.1":{"tag":"4.0.1","author":"linknacional","date":"2025-04-23 19:34:36","revision":3280275},"4.1.1":{"tag":"4.1.1","author":"linknacional","date":"2025-04-29 18:10:29","revision":3284316},"4.1.2":{"tag":"4.1.2","author":"linknacional","date":"2025-05-13 20:01:37","revision":3292821},"4.1.3":{"tag":"4.1.3","author":"linknacional","date":"2025-05-15 18:55:56","revision":3294369},"4.1.4":{"tag":"4.1.4","author":"linknacional","date":"2025-05-20 18:21:55","revision":3297598},"4.1.5":{"tag":"4.1.5","author":"linknacional","date":"2025-05-22 19:42:52","revision":3299020},"4.1.6":{"tag":"4.1.6","author":"linknacional","date":"2025-06-02 16:44:55","revision":3305173},"4.10.0":{"tag":"4.10.0","author":"linknacional","date":"2026-03-11 13:58:31","revision":3480221},"4.10.1":{"tag":"4.10.1","author":"linknacional","date":"2026-03-30 18:53:54","revision":3494872},"4.11.0":{"tag":"4.11.0","author":"linknacional","date":"2026-04-01 16:27:31","revision":3496814},"4.12.0":{"tag":"4.12.0","author":"linknacional","date":"2026-04-02 19:30:30","revision":3497773},"4.12.1":{"tag":"4.12.1","author":"linknacional","date":"2026-04-02 22:12:09","revision":3497855},"4.12.2":{"tag":"4.12.2","author":"linknacional","date":"2026-04-08 15:26:45","revision":3501792},"4.12.3":{"tag":"4.12.3","author":"linknacional","date":"2026-04-17 13:11:32","revision":3508919},"4.12.4":{"tag":"4.12.4","author":"linknacional","date":"2026-04-28 15:49:15","revision":3517597},"4.12.5":{"tag":"4.12.5","author":"linknacional","date":"2026-04-29 13:45:38","revision":3518506},"4.13.0":{"tag":"4.13.0","author":"linknacional","date":"2026-05-25 17:31:09","revision":3548007},"4.14.0":{"tag":"4.14.0","author":"linknacional","date":"2026-05-28 20:29:55","revision":3552735},"4.15.0":{"tag":"4.15.0","author":"linknacional","date":"2026-06-03 14:06:35","revision":3559534},"4.15.1":{"tag":"4.15.1","author":"linknacional","date":"2026-06-08 15:43:05","revision":3564926},"4.15.2":{"tag":"4.15.2","author":"linknacional","date":"2026-06-09 16:19:17","revision":3566303},"4.16.1":{"tag":"4.16.1","author":"linknacional","date":"2026-07-01 19:33:07","revision":3593143},"4.16.10":{"tag":"4.16.10","author":"linknacional","date":"2026-07-30 12:22:29","revision":3628541},"4.16.11":{"tag":"4.16.11","author":"linknacional","date":"2026-08-10 19:12:10","revision":3641027},"4.16.12":{"tag":"4.16.12","author":"linknacional","date":"2026-08-19 12:52:24","revision":3654630},"4.16.3":{"tag":"4.16.3","author":"linknacional","date":"2026-07-03 13:16:04","revision":3595283},"4.16.4":{"tag":"4.16.4","author":"linknacional","date":"2026-07-06 13:17:58","revision":3597831},"4.16.5":{"tag":"4.16.5","author":"linknacional","date":"2026-07-14 19:39:25","revision":3607951},"4.16.6":{"tag":"4.16.6","author":"linknacional","date":"2026-07-20 14:06:26","revision":3614982},"4.16.7":{"tag":"4.16.7","author":"linknacional","date":"2026-07-23 19:50:35","revision":3620461},"4.16.8":{"tag":"4.16.8","author":"linknacional","date":"2026-07-28 19:16:43","revision":3626374},"4.16.9":{"tag":"4.16.9","author":"linknacional","date":"2026-07-29 21:04:05","revision":3627681},"4.17.0":{"tag":"4.17.0","author":"linknacional","date":"2026-08-19 17:49:54","revision":3655131},"4.17.1":{"tag":"4.17.1","author":"linknacional","date":"2026-08-25 12:59:44","revision":3665349},"4.17.2":{"tag":"4.17.2","author":"linknacional","date":"2026-09-08 18:15:44","revision":3687132},"4.17.3":{"tag":"4.17.3","author":"linknacional","date":"2026-09-09 16:15:27","revision":3688656},"4.17.4":{"tag":"4.17.4","author":"linknacional","date":"2026-09-09 17:16:58","revision":3688749},"4.17.5":{"tag":"4.17.5","author":"linknacional","date":"2026-09-09 19:25:57","revision":3688911},"4.17.6":{"tag":"4.17.6","author":"linknacional","date":"2026-09-16 14:43:19","revision":3698804},"4.2.0":{"tag":"4.2.0","author":"linknacional","date":"2025-06-09 14:47:59","revision":3308592},"4.2.1":{"tag":"4.2.1","author":"linknacional","date":"2025-06-09 17:27:31","revision":3308641},"4.3.0":{"tag":"4.3.0","author":"linknacional","date":"2025-07-30 15:10:19","revision":3336716},"4.3.1":{"tag":"4.3.1","author":"linknacional","date":"2025-08-05 19:51:46","revision":3339864},"4.3.2":{"tag":"4.3.2","author":"linknacional","date":"2025-08-08 20:58:40","revision":3341821},"4.3.3":{"tag":"4.3.3","author":"linknacional","date":"2025-08-15 17:17:57","revision":3345252},"4.4.0":{"tag":"4.4.0","author":"linknacional","date":"2025-09-16 17:36:18","revision":3362718},"4.5.0":{"tag":"4.5.0","author":"linknacional","date":"2025-11-05 18:34:52","revision":3390657},"4.6.0":{"tag":"4.6.0","author":"linknacional","date":"2025-12-18 16:51:58","revision":3423115},"4.7.0":{"tag":"4.7.0","author":"linknacional","date":"2026-01-05 19:39:40","revision":3433012},"4.7.1":{"tag":"4.7.1","author":"linknacional","date":"2026-01-06 15:14:22","revision":3433736},"4.7.2":{"tag":"4.7.2","author":"linknacional","date":"2026-01-07 20:35:39","revision":3434690},"4.7.3":{"tag":"4.7.3","author":"linknacional","date":"2026-01-13 17:54:07","revision":3438881},"4.7.4":{"tag":"4.7.4","author":"linknacional","date":"2026-01-21 17:07:20","revision":3444294},"4.8.0":{"tag":"4.8.0","author":"linknacional","date":"2026-02-09 17:28:43","revision":3457303},"4.9.0":{"tag":"4.9.0","author":"linknacional","date":"2026-03-04 19:20:36","revision":3474891},"4.9.1":{"tag":"4.9.1","author":"linknacional","date":"2026-03-06 18:17:27","revision":3476620},"4.9.2":{"tag":"4.9.2","author":"linknacional","date":"2026-03-06 18:35:00","revision":3476633},"5.0.2":{"tag":"5.0.2","author":"linknacional","date":"2026-10-01 13:58:09","revision":3723281},"5.0.3":{"tag":"5.0.3","author":"linknacional","date":"2026-10-02 15:18:41","revision":3725056},"5.0.4":{"tag":"5.0.4","author":"linknacional","date":"2026-10-05 20:54:08","revision":3729644},"5.1.0":{"tag":"5.1.0","author":"linknacional","date":"2026-10-14 20:21:11","revision":3747088},"5.1.1":{"tag":"5.1.1","author":"linknacional","date":"2026-10-20 20:34:35","revision":3757430},"5.2.0":{"tag":"5.2.0","author":"linknacional","date":"2026-10-21 20:40:08","revision":3759046},"5.2.1":{"tag":"5.2.1","author":"linknacional","date":"2026-10-22 16:00:03","revision":3760169}},"upgrade_notice":{"2.0.0":"<ul>\n<li>Initial release.<\/li>\n<\/ul>"},"ratings":{"1":0,"2":1,"3":1,"4":1,"5":42},"assets_icons":{"icon-128x128.gif":{"filename":"icon-128x128.gif","revision":3552735,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.gif":{"filename":"icon-256x256.gif","revision":3552735,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon-512x512.gif":{"filename":"icon-512x512.gif","revision":3552735,"resolution":"512x512","location":"assets","locale":"","width":512,"height":512}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":3725056,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3725056,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3760169,"resolution":false,"location":"assets","locale":"","contents":"{\"landingPage\":\"\\\/produto\\\/camisa\",\"phpExtensionBundles\":[\"kitchen-sink\"],\"steps\":[{\"step\":\"login\",\"username\":\"admin\",\"password\":\"admin\"},{\"step\":\"installPlugin\",\"options\":{\"activate\":true},\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"woocommerce\"}},{\"step\":\"installPlugin\",\"options\":{\"activate\":true},\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"woo-better-shipping-calculator-for-brazil\"}},{\"step\":\"runPHP\",\"code\":\"<?php require '\\\/wordpress\\\/wp-load.php'; do_action('plugins_loaded'); add_action('init', function() { if (!class_exists('WC_Product_Simple')) return; update_option('woocommerce_default_country', 'BR:SP'); update_option('woocommerce_store_postcode', '05833-290'); update_option('woocommerce_currency', 'BRL'); if (!get_page_by_title('Camisa', OBJECT, 'product')) { $product = new WC_Product_Simple(); $product->set_name('Camisa'); $product->set_status('publish'); $product->set_catalog_visibility('visible'); $product->set_price(20); $product->set_regular_price(20); $product->set_stock_status('instock'); $product->save(); }}); do_action('init');\"},{\"step\":\"runPHP\",\"code\":\"<?php require '\\\/wordpress\\\/wp-load.php'; do_action('plugins_loaded'); add_action('init', function() { if (!class_exists('WC_Shipping_Zones')) return; $zone_name = 'Brasil SP - CEP'; $zone_id = null; foreach (WC_Shipping_Zones::get_zones() as $zone) { if ($zone['zone_name'] === $zone_name) { $zone_id = $zone['zone_id']; break; } } if (!$zone_id) { $zone = new WC_Shipping_Zone(); $zone->set_zone_name($zone_name); $zone->add_location('BR:SP', 'state'); $zone->add_location('05833-290', 'postcode'); $zone_id = $zone->save(); } }); do_action('init');\"},{\"step\":\"runPHP\",\"code\":\"<?php require '\\\/wordpress\\\/wp-load.php'; do_action('plugins_loaded'); add_action('init', function() { if (!class_exists('WC_Shipping_Zone')) { return; } try { $zone_name = 'Brasil SP - CEP'; $zone_id = null; foreach (WC_Shipping_Zones::get_zones() as $z) { if ($z['zone_name'] === $zone_name) { $zone_id = $z['zone_id']; break; } } if (!$zone_id) { return; } $zone = new WC_Shipping_Zone($zone_id); $has_flat_rate = false; foreach ($zone->get_shipping_methods() as $method) { if ($method->id === 'flat_rate') { $has_flat_rate = true; break; } } if (!$has_flat_rate) { $zone->add_shipping_method('flat_rate'); sleep(2); $methods = $zone->get_shipping_methods(); foreach ($methods as $method) { if ($method->id === 'flat_rate') { $method->settings['cost'] = '5'; $method->save(); } } } update_option('woocommerce_shipping_enabled', 'yes'); } catch (Throwable $e) { } }); do_action('init');\"},{\"step\":\"runPHP\",\"code\":\"<?php require '\\\/wordpress\\\/wp-load.php'; add_action('init', function () { update_option('woocommerce_onboarding_profile', ['completed' => true]); update_option('woocommerce_admin_install_timestamp', time()); update_option('woocommerce_admin_onboarding_opt_in', true); update_option('woocommerce_show_admin_notice', 'no'); }); do_action('init');\"}]}"}},"all_blocks":[],"tagged_versions":["2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.1.0","2.1.1","2.1.2","2.2.0","3.0.0","3.0.1","3.0.2","3.1.0","3.1.1","3.1.2","3.2.0","3.2.1","3.2.2","4.0.0","4.0.1","4.1.1","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6","4.10.0","4.10.1","4.11.0","4.12.0","4.12.1","4.12.2","4.12.3","4.12.4","4.12.5","4.13.0","4.14.0","4.15.0","4.15.1","4.15.2","4.16.1","4.16.10","4.16.11","4.16.12","4.16.3","4.16.4","4.16.5","4.16.6","4.16.7","4.16.8","4.16.9","4.17.0","4.17.1","4.17.2","4.17.3","4.17.4","4.17.5","4.17.6","4.2.0","4.2.1","4.3.0","4.3.1","4.3.2","4.3.3","4.4.0","4.5.0","4.6.0","4.7.0","4.7.1","4.7.2","4.7.3","4.7.4","4.8.0","4.9.0","4.9.1","4.9.2","5.0.2","5.0.3","5.0.4","5.1.0","5.1.1","5.2.0","5.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3723281,"resolution":"1","location":"assets","locale":"","width":493,"height":61},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3552735,"resolution":"2","location":"assets","locale":"","width":493,"height":186},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3723281,"resolution":"3","location":"assets","locale":"","width":494,"height":64},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3723281,"resolution":"4","location":"assets","locale":"","width":555,"height":75},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3723281,"resolution":"5","location":"assets","locale":"","width":493,"height":63},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3723281,"resolution":"6","location":"assets","locale":"","width":701,"height":129},"screenshot-7.png":{"filename":"screenshot-7.png","revision":3723281,"resolution":"7","location":"assets","locale":"","width":499,"height":66}},"screenshots":{"1":"CPF\/CNPJ field in the Gutenberg block editor.","2":"CPF\/CNPJ and Company Name and IE fields in the Gutenberg block editor.","3":"Number field using the Gutenberg block editor.","4":"Number field using the WooCommerce shortcode.","5":"Mandatory Phone Field with DDI.","6":"Automatic Address Pre-filling in Checkout.","7":"Birthdate and Gender fields in the Gutenberg block editor."}},"plugin_section":[],"plugin_tags":[8286,157502,3148,152487,66145],"plugin_category":[45],"plugin_contributors":[211810,94311],"plugin_business_model":[],"class_list":["post-83155","plugin","type-plugin","status-publish","hentry","plugin_tags-brasil","plugin_tags-cep","plugin_tags-checkout","plugin_tags-cnpj","plugin_tags-cpf","plugin_category-ecommerce","plugin_contributors-linknacional","plugin_contributors-luizbills","plugin_committers-linknacional","plugin_support_reps-euzebiobatista"],"banners":{"banner":"https:\/\/ps.w.org\/woo-better-shipping-calculator-for-brazil\/assets\/banner-772x250.jpg?rev=3725056","banner_2x":"https:\/\/ps.w.org\/woo-better-shipping-calculator-for-brazil\/assets\/banner-1544x500.jpg?rev=3725056","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/woo-better-shipping-calculator-for-brazil\/assets\/icon-128x128.gif?rev=3552735","icon_2x":"https:\/\/ps.w.org\/woo-better-shipping-calculator-for-brazil\/assets\/icon-256x256.gif?rev=3552735","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/woo-better-shipping-calculator-for-brazil\/assets\/screenshot-1.png?rev=3723281","caption":"CPF\/CNPJ field in the Gutenberg block editor."},{"src":"https:\/\/ps.w.org\/woo-better-shipping-calculator-for-brazil\/assets\/screenshot-2.png?rev=3552735","caption":"CPF\/CNPJ and Company Name and IE fields in the Gutenberg block editor."},{"src":"https:\/\/ps.w.org\/woo-better-shipping-calculator-for-brazil\/assets\/screenshot-3.png?rev=3723281","caption":"Number field using the Gutenberg block editor."},{"src":"https:\/\/ps.w.org\/woo-better-shipping-calculator-for-brazil\/assets\/screenshot-4.png?rev=3723281","caption":"Number field using the WooCommerce shortcode."},{"src":"https:\/\/ps.w.org\/woo-better-shipping-calculator-for-brazil\/assets\/screenshot-5.png?rev=3723281","caption":"Mandatory Phone Field with DDI."},{"src":"https:\/\/ps.w.org\/woo-better-shipping-calculator-for-brazil\/assets\/screenshot-6.png?rev=3723281","caption":"Automatic Address Pre-filling in Checkout."},{"src":"https:\/\/ps.w.org\/woo-better-shipping-calculator-for-brazil\/assets\/screenshot-7.png?rev=3723281","caption":"Birthdate and Gender fields in the Gutenberg block editor."}],"raw_content":"<!--section=description-->\n<p>Complete <a href=\"https:\/\/www.linknacional.com.br\/wordpress\/woocommerce\/checkout-brasileiro\/\">Brazilian checkout<\/a> fields designed specifically for Brazilian Market on <a href=\"https:\/\/www.linknacional.com.br\/wordpress\/woocommerce\/\">WooCommerce<\/a> stores in Brazil, making it easier and significantly improving the data entry flow on the checkout pages.<\/p>\n\n<p>This version includes <strong>full compatibility with Shortcodes and Gutenberg themes<\/strong>, allowing you to use the Brazilian checkout fields anywhere on your site with maximum flexibility.<\/p>\n\n<p>This <a href=\"https:\/\/www.linknacional.com.br\/wordpress\/\">WordPress<\/a> plugin ensures faster address verification and cleaner form management, leading to a better user experience and fewer abandoned carts.<\/p>\n\n<blockquote>\n  <p><strong>Note:<\/strong> The shipping calculator features have moved to a dedicated plugin: <a href=\"\/plugins\/shipping-simulator-for-woocommerce\/\">Shipping Simulator for WooCommerce<\/a>.<\/p>\n<\/blockquote>\n\n<h3>\ud83d\ude80 Full and Free Brazilian Checkout<\/h3>\n\n<p>We have expanded the plugin capabilities to offer a full checkout solution for the Brazilian Market on WooCommerce, managing <strong>Custom Checkout Fields<\/strong> essential for Brazilian logistics and fiscal invoicing. Every field is listed \u2014 with its meta key and what it does \u2014 in the <strong>Checkout fields<\/strong> section below.<\/p>\n\n<h3>\u2705 ERP &amp; \"Brazilian Market\" Compatibility<\/h3>\n\n<p>This is a major update for store owners who need to issue invoices (Nota Fiscal). The plugin is now fully compatible with other payment's plugin for the data standards used by the <strong>Brazilian Market on WooCommerce<\/strong> plugin by Claudio Sanches.<\/p>\n\n<p><strong>Why is this important?<\/strong>\n1.  <strong>Bling &amp; ERP Integration:<\/strong> CPF, CNPJ and address data are saved with the standard meta keys (the same ones listed below), so this plugin is <strong>fully compatible with Bling, Tiny<\/strong> and other ERPs that integrate with <a href=\"https:\/\/www.linknacional.com.br\/wordpress\/woocommerce\/\">WooCommerce<\/a>. You can issue invoices (NFe) without data errors.\n2.  <strong>No double data entry:<\/strong> the same value feeds the checkout, the order, the customer profile and the invoice app.<\/p>\n\n<h3>Key Features &amp; Improvements:<\/h3>\n\n<h4><strong>On the Checkout Page:<\/strong><\/h4>\n\n<ul>\n<li><strong>Automatic Address Lookup:<\/strong> Fills in street, neighborhood, city and state as soon as the customer enters a valid CEP.<\/li>\n<li><strong>Input Validation:<\/strong> Checks CPF\/CNPJ digits and applies input masks, so a wrong number is caught before the order is placed.<\/li>\n<li><strong>Dynamic Field Hiding:<\/strong> Hides the fields that do not apply to the customer \u2014 company data for individuals, CPF and RG for companies \u2014 and gives the typed value back when the field returns.<\/li>\n<li><strong>Person Type Selector:<\/strong> In the block checkout the customer can switch between \"Person\" (Pessoa F\u00edsica) and \"Company\" (Pessoa Jur\u00eddica); in the classic checkout the type follows the document that was typed.<\/li>\n<\/ul>\n\n<h4><strong>Additional Features:<\/strong><\/h4>\n\n<ul>\n<li>The plugin is fully customizable via action and filter hooks for advanced users.<\/li>\n<\/ul>\n\n<p>More details can be found in the <a href=\"https:\/\/wordpress.org\/support\/plugin\/woo-better-shipping-calculator-for-brazil\/\">Frequently Asked Questions (FAQ)<\/a>.<\/p>\n\n<h4>Checkout fields<\/h4>\n\n<p>Below is every field the plugin adds or manages, on the billing and shipping address forms (classic checkout, block checkout, the account's edit-address page and the order admin screen):<\/p>\n\n<ul>\n<li><strong>CPF\/CNPJ<\/strong> (<code>billing_document<\/code>): a single document field with mask and validation. It reads the number of digits to tell individuals (CPF, 11 digits) from companies (CNPJ, 14 digits) \u2014 and that choice drives the rest of the form.<\/li>\n<li><strong>Person type<\/strong> (<code>billing_persontype<\/code>): hidden field that stores the type worked out from the document, so other plugins and ERPs read \"individual\" or \"company\" the way they expect.<\/li>\n<li><strong>CPF<\/strong> (<code>billing_cpf<\/code>) and <strong>CNPJ<\/strong> (<code>billing_cnpj<\/code>): hidden companions that receive the same value as the document, for invoice (NF-e) plugins and ERPs that look for these keys.<\/li>\n<li><strong>Company<\/strong> (<code>billing_company<\/code>): shown for companies. Its behavior is configurable \u2014 Dynamic, Optional, Required or Disabled.<\/li>\n<li><strong>State registration \/ Inscri\u00e7\u00e3o Estadual<\/strong> (<code>billing_ie<\/code>): shown for companies, with an \"Isento\" (exempt) checkbox. Required when enabled.<\/li>\n<li><strong>Municipal registration \/ Inscri\u00e7\u00e3o Municipal<\/strong> (<code>billing_im<\/code>): shown for companies and required for them. No \"Isento\" option, because the municipal registration is what identifies the business for service invoices.<\/li>\n<li><strong>RG<\/strong> (<code>billing_rg<\/code>): shown for individuals only, next to the CPF, and hidden for companies. Optional by default. Saved with the same key used by invoice apps, so the value is already there when you issue the nota fiscal.<\/li>\n<li><strong>Number<\/strong> (<code>billing_number<\/code>): the street number, mandatory and usually missing from standard WooCommerce forms. It comes with a \"Sem N\u00famero\" (no number) checkbox that fills the field for addresses without a number.<\/li>\n<li><strong>Neighborhood \/ Bairro<\/strong> (<code>billing_neighborhood<\/code>): mandatory neighborhood field, placed right after the address.<\/li>\n<li><strong>Complement<\/strong> (<code>billing_address_2<\/code>): the native WooCommerce complement, renamed and repositioned.<\/li>\n<li><strong>Phone<\/strong> (<code>billing_phone<\/code>): phone field with mask and country code (DDI). Four modes: full phone, cellphone only, landline only or disabled. Optional validation of the number (including the area code).<\/li>\n<li><strong>Cellphone<\/strong> (<code>billing_cellphone<\/code>): optional separate cellphone field, filled in alongside the phone, and a hidden mirror for gateways that expect it.<\/li>\n<li><strong>Birthdate<\/strong> (<code>billing_birthdate<\/code>): optional date field, with an option to make it required.<\/li>\n<li><strong>Gender<\/strong> (<code>billing_gender<\/code>): optional dropdown (Male, Female, Non-binary, Other, Prefer not to say).<\/li>\n<li><strong>Postcode \/ CEP<\/strong> (<code>billing_postcode<\/code>): can be highlighted at the top of the form, with a confirmation checkbox and automatic address lookup.<\/li>\n<li><strong>Country, State and City<\/strong> (<code>billing_country<\/code>, <code>billing_state<\/code>, <code>billing_city<\/code>): the native WooCommerce fields, kept in place and repositioned so the Brazilian order of the address makes sense.<\/li>\n<\/ul>\n\n<p>Every field above can be turned on or off in <strong>WooCommerce &gt; Settings &gt; Campos Brasileiros<\/strong>, together with its required\/optional rule.<\/p>\n\n<h4>Help and Support<\/h4>\n\n<p>When you need help, please create a topic in the <a href=\"https:\/\/wordpress.org\/support\/plugin\/woo-better-shipping-calculator-for-brazil\/\">Plugin Support Forum<\/a>.<\/p>\n\n<p>** Recommended Plugins **\n* <a href=\"\/plugins\/shipping-simulator-for-woocommerce\/\">Shipping Simulator for WooCommerce<\/a> - Shipping calculator for the product and cart pages, free shipping rules and more.\n* <a href=\"\/plugins\/invoice-payment-for-woocommerce\/\">Link Invoice Payment for WooCommerce<\/a> - Integrate custom payment methods and offer invoice-based payments in your WooCommerce store.\n* <a href=\"\/plugins\/payment-gateway-pix-for-woocommerce\/\">Pix For WooCommerce<\/a> - Integrate Pix, Brazil\u2019s revolutionary instant payment system, into your WooCommerce store \n* <a href=\"\/plugins\/fraud-and-scam-detection-for-woocommerce\/\">AntiFraude<\/a> - Fraud and Scam Detection For WooCommerce\n* <a href=\"\/plugins\/woo-force-authentification-before-checkout\/\">Authentification and OTP for WooCommerce<\/a> - OTP and Force customer to log in or register before checkout to increase your conversion rate.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Access your <a href=\"https:\/\/www.linknacional.com.br\/wordpress\/\">WordPress<\/a> admin and go to <strong>Plugins &gt; Add New<\/strong>.<\/li>\n<li>Search for \"Brazilian Checkout Fields for WooCommerce\".<\/li>\n<li>Find the plugin, click \"Install Now\" and then \"Activate\".<\/li>\n<li>Done! No additional configuration is needed, but we recommend visiting the plugin settings.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20replace%20%22brazilian%20market%20on%20woocommerce%22%3F\"><h3>Does this plugin replace \"Brazilian Market on WooCommerce\"?<\/h3><\/dt>\n<dd><p>Yes, this plugin acts as an updated solution for <em>Brazilian Market on WooCommerce<\/em>. It maintains full compatibility with existing data but offers improved features. <strong>Note:<\/strong> To use it, you must disable the <em>Brazilian Market on WooCommerce<\/em> plugin (by Claudio Sanches) to avoid field conflicts.<\/p><\/dd>\n<dt id=\"why%20is%20the%20phone%20field%20now%20mandatory%20and%20asking%20for%20a%20country%20code%20%28ddi%29%3F\"><h3>Why is the Phone field now mandatory and asking for a Country Code (DDI)?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"how%20does%20the%20automatic%20address%20lookup%20by%20cep%20work%3F\"><h3>How does the automatic address lookup by CEP work?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"contributions\"><h3>Contributions<\/h3><\/dt>\n<dd><p>If you find any errors or have suggestions, please open an issue in our <a href=\"https:\/\/github.com\/LinkNacional\/woo-better-shipping-calculator-for-brazil\">GitHub repository<\/a>.<\/p>\n\n<ul>\n<li><a href=\"https:\/\/brasilapi.com.br\">Brasil API<\/a> - ZIP code lookup and CNPJ validation.<\/li>\n<li><a href=\"https:\/\/receitaws.com.br\">ReceitaWS<\/a> - CNPJ validation (fallback).<\/li>\n<li><a href=\"https:\/\/viacep.com.br\">VIACEP<\/a> - ZIP code field.<\/li>\n<li><a href=\"https:\/\/intl-tel-input.com\/\">International Telephone Input<\/a> - Phone number field with country code.<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n5.2.1 - 2026-10-21\n\n<ul>\n<li>New: the \"Phone Field Behavior\" option now has TWO ways to disable it, with different meanings. \"Disable the phone field\" turns off the WooCommerce native phone field (no phone and no cellphone is shown). \"Keep the WooCommerce native configuration\" generates no field at all and keeps whatever you configured in WooCommerce itself (the \"Phone\" toggle in the block editor).<\/li>\n<li>Fix: with the phone disabled, the \"Cellphone\" field is no longer generated on checkout. Previously, a leftover \"Cellphone Field\" setting made the field come back even with the phone turned off.<\/li>\n<li>Fix: when the phone is disabled, the \"Cellphone Field\", \"Cellphone Required\" and \"Phone (Contact) Required\" options are turned off automatically \u2014 nothing stays required in a form that no longer shows the phone.<\/li>\n<li>Fix: options that are locked by a dependency (e.g. the \"Cellphone Field\" with the phone behavior set to \"Allow Cellphone Only\") no longer keep the old value stored \u2014 the lock is now visual only, so what the screen shows is what gets saved. Previously the screen showed \"Disable\" while checkout still displayed the \"Cellphone\" field.<\/li>\n<\/ul>\n\n5.2.0 - 2026-10-21\n\n<ul>\n<li>New: RG (general registry) field on checkout. It shows for individuals, next to the CPF, stays hidden for companies (CNPJ) and filling it in is optional.<\/li>\n<li>New: the RG is also on the account's edit-address page, on the user profile and on the order details \u2014 including the order-received screen and the order admin panel, where it can be edited.<\/li>\n<li>New: RG options in the Brazilian fields settings (enable and required).<\/li>\n<li>Tweak: the RG sits right after the CPF, without disturbing the order of the other address fields.<\/li>\n<li>Fix: the IE, IM, RG and Company fields are no longer cleared when hidden \u2014 when the document is corrected (erasing or retyping CPF\/CNPJ) the typed value is preserved and comes back when the field is shown again.<\/li>\n<li>Fix: hidden fields no longer take up space in the classic checkout and edit-address layout, with no leftover margin or padding.<\/li>\n<li>Note: the RG has no national validation standard (the rule varies by state), so the validation is format and length only, not a check digit.<\/li>\n<\/ul>\n\n5.1.1 - 2026-10-20\n\n<ul>\n<li>New: \"Company Field Behavior\" now has a \"Disabled\" option, which stops the Company field from being generated on checkout (classic and blocks), on the account's edit-address page and on the user profile screen.<\/li>\n<li>Fix: with the Company field disabled, a Company field re-added by another plugin can no longer be required \u2014 it stays optional and no longer blocks the order.<\/li>\n<li>Fix: the Company field behavior no longer switches back to \"Dynamic\" right after saving the settings.<\/li>\n<li>Note: no saved setting changed its name; existing configurations keep working and values already stored for the Company field are preserved.<\/li>\n<\/ul>\n\n5.1.0 - 2026-10-13\n\n<ul>\n<li>New: new flow for the Phone and Cellphone fields on checkout (classic and blocks) \u2014 4 behavior modes, country code\/mask, validation and a hidden compatibility field for PagBank\/Asaas\/NFe.<\/li>\n<li>New: \"Cellphone\" field on the account's edit-address page, mirroring the phone.<\/li>\n<li>New: Municipal Registration (IM) field on checkout for Legal Person.<\/li>\n<li>New: customer details (CPF\/CNPJ, person type, IE\/IM, birthdate, gender, contact) on the order-received page via hook \u2014 works on classic themes and block checkout.<\/li>\n<li>Tweak: the \"Cellphone\" field now appears on both billing and shipping on the order admin; the phone label follows the configured mode.<\/li>\n<li>Tweak: Municipal Registration (IM) is now required for Legal Person (removed the \"Exempt\" option).<\/li>\n<li>Fix: with \"use the same address for billing\" (blocks), phone\/cellphone now follow the address.<\/li>\n<li>Fix: when switching CPF to CNPJ, the document no longer reverts to the old CPF (blocks).<\/li>\n<li>Fix: 404 of the phone mask CSS on the edit-address page.<\/li>\n<\/ul>\n\n5.0.4 - 2026-10-05\n\n<ul>\n<li>Fix: infinite redirect loop (ERR_TOO_MANY_REDIRECTS) when another LKN plugin also opens its onboarding screen in the same request.<\/li>\n<li>Fix: the close button (\u2715) of the migration screen now permanently dismisses the follow-up notice.<\/li>\n<\/ul>\n\n5.0.3 - 2026-10-02\n\n<ul>\n<li>Fix: browser freeze when finishing the order on the checkout (shortcode and blocks) caused by an event loop in the masked phone field.<\/li>\n<\/ul>\n\n5.0.2 - 2026-09-24\n\n<ul>\n<li>Fix: The phone field is no longer incorrectly flagged as required (without a label) on the block checkout (Store API) when the native phone field is hidden.<\/li>\n<\/ul>\n\n5.0.1 - 2026-10-01\n\n<ul>\n<li>New: The phone field DDI (country code) can now be customized \u2014 the select previously only showed the flags, and the user can now also display the DDI number.<\/li>\n<li>New: Phone field validation, to help stores that need this data filled in correctly.<\/li>\n<li>Fix: CSS\/style adjustments on the birth date field.<\/li>\n<\/ul>\n\n5.0.0 - 2026-10-01\n\n<ul>\n<li>Major: Migrated the shipping calculator resources to shipping-simulation.<\/li>\n<\/ul>\n\n4.17.6 - 2026-09-16\n\n<ul>\n<li>Fix: The \"Company\" field no longer reverts to \"Optional\" when the checkout page is saved \u2014 the native WooCommerce option and the plugin setting now stay in sync.<\/li>\n<li>Tweak: In \"Dynamic\" mode, the \"Company\" field is no longer displayed for customers outside Brazil; in \"Optional\" and \"Required\" modes, the field is handled by WooCommerce.<\/li>\n<li>Tweak: The Postal Code (CEP) lookup and the \"Neighborhood\" field now only activate when the selected country is Brazil, in both the block and shortcode checkouts.<\/li>\n<\/ul>\n\n4.17.5 - 2026-09-09\n\n<ul>\n<li>Fix: The \"Company\" field is no longer saved with the internal \"woonomedaempresa\" value when editing the address with a CPF.<\/li>\n<li>Tweak: The \"Company\" field now behaves like the \"State Registration (IE)\" field in \"Dynamic\" mode \u2014 required for CNPJ and ignored for CPF, while respecting the \"Optional\" and \"Required\" options.<\/li>\n<\/ul>\n\n4.17.4 - 2026-09-09\n\n<ul>\n<li>Fix: \"Company\" and \"State Registration (IE)\" fields no longer reappear pre-filled in the block and shortcode checkout after an order placed with a CPF \u2014 the WooCommerce session is now cleared alongside the user metadata.<\/li>\n<\/ul>\n\n4.17.3 - 2026-09-09\n\n<ul>\n<li>Fix: The \"Ship to a different address?\" checkbox no longer appears on the classic\/shortcode checkout when \"Force shipping to the billing address\" is enabled.<\/li>\n<li>Fix: The \"State Registration (IE)\" field is no longer required on the \"My Account &gt; Edit Address\" page when the entered document is a CPF.<\/li>\n<\/ul>\n\n4.17.2 - 2026-09-03\n\n<ul>\n<li>Fix: Corrected the plugin update notification informing about a new important update scheduled for 2026-09-01.<\/li>\n<li>Fix: \"S\/N\" (no number) option now saves immediately in the block checkout.<\/li>\n<\/ul>\n\n4.17.1 - 2026-08-21\n\n<ul>\n<li>Fix: CNPJ now validated for active registration status (situa\u00e7\u00e3o cadastral ATIVA) against the Federal Revenue (BrasilAPI and ReceitaWS).<\/li>\n<li>Fix: Alphanumeric CNPJ (IN RFB 2.229\/2024) now goes through the API (fail-closed) instead of being accepted by check digit only.<\/li>\n<li>Dev: Updated the CNPJ API validation field description in the settings.<\/li>\n<\/ul>\n\n4.17.0 - 2026-08-19\n\n<ul>\n<li>New: CNPJ validation against the Brazilian Federal Revenue (BrasilAPI with ReceitaWS fallback).<\/li>\n<li>Fix: IE field no longer wrongly highlighted after a CNPJ validation error.<\/li>\n<li>Docs: Added BrasilAPI and ReceitaWS to the third-party credits.<\/li>\n<\/ul>\n\n4.16.12 - 2026-08-14\n\n<ul>\n<li>Fix: Sanitization and character validation of the IE (Inscri\u00e7\u00e3o Estadual) field.<\/li>\n<li>Security: Defense-in-depth IE field sanitization on the PHP-to-JS bridge.<\/li>\n<\/ul>\n\n4.16.11 - 2026-08-05\n\n<ul>\n<li>Fix: Shipping calculation when using order total as calculation base.<\/li>\n<li>Dev: Improved release preparation skill.<\/li>\n<li>Adjustment: Improved the validation flow for invalid ZIP codes during search.<\/li>\n<\/ul>\n\n4.16.10 - 2026-07-30\n\n<ul>\n<li>Adjustment: Standardization of Funnelkit fields with the Brazilian plugin.<\/li>\n<\/ul>\n\n4.16.9 - 2026-07-29\n\n<ul>\n<li>Tweak: Funilkit plugin verification system with the Brazilian plugin.<\/li>\n<\/ul>\n\n4.16.8 - 2026-07-28\n\n<ul>\n<li>Adjustment: Mandatory field validation for birth date and gender.<\/li>\n<li>New: Mandatory birth date field system.<\/li>\n<\/ul>\n\n4.16.7 - 2026-07-17\n\n<ul>\n<li>Adjustment: Added best V2 submission metadata to the label.<\/li>\n<\/ul>\n\n4.16.6 - 2026-07-17\n\n<ul>\n<li>Tweak: Address field description name.<\/li>\n<\/ul>\n\n4.16.5 - 2026-07-14\n\n<ul>\n<li>Tweak: Placeholder name in the classic checkout address field.<\/li>\n<\/ul>\n\n4.16.4 - 2026-07-06\n\n<ul>\n<li>Adjust: Fallback for the plugin's calculator label when shipping business days are not detected.<\/li>\n<\/ul>\n\n4.16.3 - 2026-07-03\n\n<ul>\n<li>Fix: Correction in class loading.<\/li>\n<\/ul>\n\n4.16.2 - 2026-07-02\n\n<ul>\n<li>New: Shipping calculation option via coupon\/fees.<\/li>\n<\/ul>\n\n4.16.1 - 2026-07-01\n\n<ul>\n<li>Compatibility with the FunnelKit plugin.<\/li>\n<li>CPF validation in the shortcode version.<\/li>\n<li>Improved detection of available shipping labels in the custom calculator.<\/li>\n<\/ul>\n\n4.16.0 - 2026-06-11\n\n<ul>\n<li>New: Product-based shipping system.<\/li>\n<li>New: Label system to define delivery business days for free shipping methods.<\/li>\n<li>New: Behavior system triggered upon detecting free shipping.<\/li>\n<li>Fix: Free shipping bar detection when running the plugin's calculator component.<\/li>\n<li>Fix: Address number checkbox field in Gutenberg.<\/li>\n<\/ul>\n\n4.15.2 - 2026-06-09\n\n<ul>\n<li>Fixed: CEP format sent to the API.<\/li>\n<\/ul>\n\n4.15.1 - 2026-06-08\n\n<ul>\n<li>Fixed: Click event to dismiss the update notice.<\/li>\n<\/ul>\n\n4.15.0 - 2026-06-01\n\n<ul>\n<li>New: Alphanumeric CNPJ format support (IN RFB 2.229\/2024).<\/li>\n<li>Fixed: Address number field auto-fill on first automatic lookup.<\/li>\n<li>Fixed: has-error class on the Gutenberg number field when the field is empty.<\/li>\n<li>Fixed: CEP autofill on autocomplete.<\/li>\n<li>Fixed: Nonce for the contact number field.<\/li>\n<li>Fixed: Address auto-fill on the order edit page.<\/li>\n<\/ul>\n\n4.14.0 - 2026-05-27\n\n<ul>\n<li>New: CEP address auto-fill feature.<\/li>\n<li>Fixed: Checkbox behavior when filling the address.<\/li>\n<li>Fixed: Field positioning in order data + removal of country code.<\/li>\n<li>New: Icons, banners and screenshots.<\/li>\n<li>Fixed: highlighted field position in classic checkout.<\/li>\n<\/ul>\n\n4.13.0 - 2026-05-25\n\n<ul>\n<li>Fixed: Optional\/required CPF field.<\/li>\n<li>New: State Registration (IE) field.<\/li>\n<\/ul>\n\n4.12.5 - 2026-04-29\n\n<ul>\n<li>Fixed: CEP auto-fill system for cache.<\/li>\n<li>Fixed: Address synchronization when filling the form.<\/li>\n<\/ul>\n\n4.12.4 - 2026-04-22\n\n<ul>\n<li>Fixed: CPF field filling.<\/li>\n<li>Fixed: Country field changes.<\/li>\n<li>Fixed: Field population when detecting empty country.<\/li>\n<\/ul>\n\n4.12.3 - 2026-04-13\n\n<ul>\n<li>Fixed: Address number field.<\/li>\n<\/ul>\n\n4.12.2 - 2026-04-06\n\n<ul>\n<li>Fixed: Fix Birthdate validation<\/li>\n<\/ul>\n\n4.12.1 - 2026-04-02\n\n<ul>\n<li>Fixed: CEP field highlighting configuration.<\/li>\n<\/ul>\n\n4.12.0 - 2026-04-02\n\n<ul>\n<li>Added: New birth date and gender fields.<\/li>\n<li>Enhancement: New option for free shipping detection.<\/li>\n<li>Added: New option for free shipping detection.<\/li>\n<\/ul>\n\n4.11.0 - 2026-04-01\n\n<ul>\n<li>Enhancement: New free shipping detection system through shipping zones.<\/li>\n<li>Enhancement: New option for checkout block (Campos Brasileiros)<\/li>\n<li>Enhancement: New quantity detection system on product page.<\/li>\n<\/ul>\n\n<p>= 4.10.1 - 2026-03-30\n* Fixed cart change detection (adding\/removing products).\n* Fixed component expansion when the block was minimized.<\/p>\n\n<p>= 4.10.0 - 2026-03-11\n* Fixed script loading between Classic and Block versions.\n* Fixed error_log in cache function.\n* New option to hide the custom shipping calculator component when only digital products are detected.<\/p>\n\n<p>= 4.9.2 - 2026-03-06\n* Adjustment: Changed the phone field position on the edit address page.<\/p>\n\n<p>= 4.9.1 - 2026-03-06\n* Adjustment: Highlight on the ZIP code field via shortcode.\n* Adjustment: Shipping configuration fields.<\/p>\n\n<p>= 4.9.0 - 2026-03-04\n* Added: New options to highlight the contact and email fields.\n* Added: New option to prevent duplicate free shipping.<\/p>\n\n<p>= 4.8.0 - 2026-02-09\n* Addition: Option to hide shipping methods when free shipping is acquired.\n* Adjustment: stopPropagation on the checkbox button to prevent the form from being updated improperly.\n* Adjustment: Improved cache description message, providing tips about possible issues with cache plugins.\n* Addition: Hook for displaying custom address variables.\n* Adjustments to ajax and rest_api routes to prevent caching.<\/p>\n\n<p>= 4.7.4 - 2026-01-21\n* Fix: variable products shipping calculation on product page.<\/p>\n\n<p>= 4.7.3 - 2026-01-13\n* Fix: phone number field regarding digits.\n* Fix: phone number field with more configuration options.\n* Fix: postal code field display configuration in shortcode.<\/p>\n\n<p>= 4.7.2 - 2026-01-07\n* Fix: number field verification + Brazilian plugin compatibility.<\/p>\n\n<p>= 4.7.1 - 2026-01-06\n* Fix: dynamic CPF\/CNPJ field in block editor.<\/p>\n\n<p>= 4.7.0 - 2025-12-23\n* NEW: CPF\/CNPJ field\n* NEW: Neighborhood field.\n* Adjustment: free shipping bar.<\/p>\n\n<h4>4.6.0 - 2025-12-15<\/h4>\n\n<ul>\n<li>NEW: Dynamic progress bar for free shipping with customizable messages.<\/li>\n<li>NEW: Automatic capture and formatting of country codes in phone numbers.<\/li>\n<li>NEW: Complete feature parity between block editor and shortcode.<\/li>\n<\/ul>\n\n<h4>4.5.0 - 2025-10-24<\/h4>\n\n<ul>\n<li>NEW: Text font configuration system in the product and cart components.<\/li>\n<li>NEW: Automatic address filling on the Checkout page.<\/li>\n<li>NEW: Highlight for the ZIP code field in the Checkout page form.<\/li>\n<\/ul>\n\n<h4>4.4.0 - 2025-09-10<\/h4>\n\n<ul>\n<li>New: cache system for postal code queries.<\/li>\n<li>New: plugin display card.<\/li>\n<li>New: Psalm and CodeQL libraries for code<\/li>\n<\/ul>\n\n<h4>4.3.3 - 2025-08-15<\/h4>\n\n<ul>\n<li>Fix: Button styles.<\/li>\n<li>Fix: Nonce.<\/li>\n<li>Fix: Currency type and decimal places.<\/li>\n<\/ul>\n\n<h4>4.3.2 - 2025-08-08<\/h4>\n\n<ul>\n<li>Fix: Component display issue.<\/li>\n<li>Adjustment: Message in Gutenberg fields.<\/li>\n<li>Addition: Link configuration field.<\/li>\n<\/ul>\n\n<h4>4.3.1 - 2025-08-05<\/h4>\n\n<ul>\n<li>Adjustment: Option that defines the component position is now at a higher level, for both product page and cart.<\/li>\n<li>Fix: When defining the CEP component position on a product page in custom mode, it did not display as expected.<\/li>\n<li>Fix: Default icon color value.<\/li>\n<li>Addition: Link that leads to configuration page is now available on the product page when the user is a page administrator.<\/li>\n<\/ul>\n\n<h4>4.3.0 - 2025-07-29<\/h4>\n\n<ul>\n<li>Addition: New custom ZIP code verification components.<\/li>\n<li>Addition: ZIP code component for the product page.<\/li>\n<li>Addition: ZIP code component for the Woo cart page<\/li>\n<\/ul>\n\n<h4>4.2.1 - 2025-06-09<\/h4>\n\n<ul>\n<li>Fix: Decimal separator.<\/li>\n<li>Fix: Dynamic URL.<\/li>\n<li>Fix: Progress bar on the legacy cart page.<\/li>\n<\/ul>\n\n<h4>4.2.0 - 2025-06-06<\/h4>\n\n<ul>\n<li>Addition: Option to set a minimum cart value for free shipping.<\/li>\n<\/ul>\n\n<h4>4.1.6 - 2025-06-02<\/h4>\n\n<ul>\n<li>Adjustment: fix in the address auto-fill field.<\/li>\n<\/ul>\n\n<h4>4.1.5 - 2025-05-22<\/h4>\n\n<ul>\n<li>Adjustment: address hiding field.<\/li>\n<li>Addition: plugin contributors.<\/li>\n<li>Addition: link to the plugin settings page on the cart page only when the user is an administrator.<\/li>\n<\/ul>\n\n<h4>4.1.4 - 2025-05-20<\/h4>\n\n<ul>\n<li>Adjustment: neighborhood field is outside the established parameters.<\/li>\n<li>Adjustment: README.txt file tags.<\/li>\n<\/ul>\n\n<h4>4.1.3 - 2025-05-15<\/h4>\n\n<ul>\n<li>Adjustment: more dynamic blueprint at the time of playground configuration.<\/li>\n<\/ul>\n\n<h4>4.1.2 - 2025-05-07<\/h4>\n\n<ul>\n<li>Fix: Adjustments in the identification of physical and digital products.<\/li>\n<li>Adjustment: Improvement in the githubworkflow flow for plugin release in the repository and WordPress.<\/li>\n<\/ul>\n\n<h4>4.1.1 - 2025-04-29<\/h4>\n\n<ul>\n<li>Fix: Improved README.txt description for Portuguese - BR.<\/li>\n<li>Fix: Improved Gutenberg field for ZIP code field, now it is possible to enable or disable address hiding in ZIP code fields.<\/li>\n<\/ul>\n\n<h4>4.0.1 - 2025-04-23<\/h4>\n\n<ul>\n<li>Fix: New Readme.txt and image list.<\/li>\n<\/ul>\n\n<h4>4.0.0 - 2025-03-26<\/h4>\n\n<ul>\n<li>Adjustment: Plugin changed to Object Oriented (OO) model.<\/li>\n<li>New settings tab for the plugin.<\/li>\n<li>Compatibility with Gutenberg.<\/li>\n<li>New number field in Woocommerce checkout (shortcode and gutenberg)<\/li>\n<\/ul>\n\n<h4>3.2.2<\/h4>\n\n<ul>\n<li>Tested up to WordPress 6.6<\/li>\n<\/ul>\n\n<h4>3.2.1<\/h4>\n\n<ul>\n<li>Tested up to WordPress 6.4<\/li>\n<\/ul>\n\n<h4>3.2.0<\/h4>\n\n<ul>\n<li>Adjustment: Forces WooCommerce settings to enable shipping calculation.<\/li>\n<\/ul>\n\n<h4>3.1.2<\/h4>\n\n<ul>\n<li>Fix: Incompatibility with the Fluid Checkout plugin.<\/li>\n<\/ul>\n\n<h4>3.1.1<\/h4>\n\n<ul>\n<li>Fix: Sometimes the ZIP code field mask was not working in new shipping calculations.<\/li>\n<\/ul>\n\n<h4>3.1.0<\/h4>\n\n<ul>\n<li>Feature: Now the ZIP code field has the 'tel' type (to show the numeric keyboard on mobile).<\/li>\n<\/ul>\n\n<h4>3.0.2<\/h4>\n\n<ul>\n<li>Fix: The donation notice was not closing.<\/li>\n<\/ul>\n\n<h4>3.0.1<\/h4>\n\n<ul>\n<li>Fix: The plugin's JavaScript should only run on the cart page.<\/li>\n<\/ul>\n\n<h4>3.0.0<\/h4>\n\n<ul>\n<li>Adjustment: Refactored code for better compatibility.<\/li>\n<li>Breaking: Several hooks have been removed.<\/li>\n<\/ul>\n\n<h4>2.2.0<\/h4>\n\n<ul>\n<li>Adjustment: Clears the city field to avoid unexpected results.<\/li>\n<li>Fixed the <code>wc_better_shipping_calculator_for_brazil_hide_country<\/code> filter hook.<\/li>\n<\/ul>\n\n<h4>2.1.2<\/h4>\n\n<ul>\n<li>Minor fixes.<\/li>\n<\/ul>\n\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>JavaScript fix.<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Plugin name changed to \"Improved shipping calculator for Brazilian stores\".<\/li>\n<li>Now the ZIP code field is always visible.<\/li>\n<li>New hook filter: <code>wc_better_shipping_calculator_for_brazil_add_postcode_mask<\/code> (default: <code>true<\/code>)<\/li>\n<li>New hook filter: <code>wc_better_shipping_calculator_for_brazil_postcode_label<\/code> (default: <code>\"Calculate shipping:\"<\/code>)<\/li>\n<li>Fix in <code>register_activation_hook<\/code>.<\/li>\n<\/ul>\n\n<h4>2.0.4<\/h4>\n\n<ul>\n<li>Fix in pt_BR translation.<\/li>\n<li>Tested with WordPress 6.0 and WooCommerce 6.5.<\/li>\n<\/ul>\n\n<h4>2.0.3<\/h4>\n\n<ul>\n<li>Fix for a syntax error with older PHP versions.<\/li>\n<\/ul>\n\n<h4>2.0.2<\/h4>\n\n<ul>\n<li>JavaScript fixes.<\/li>\n<li>Added translation for PT-BR.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Internal fixes.<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Brazilian checkout fields: CPF\/CNPJ, address number, neighborhood and phone, with automatic CEP address pre-filling and much more for WooCommerce.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/83155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=83155"}],"author":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/linknacional"}],"wp:attachment":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=83155"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=83155"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=83155"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=83155"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=83155"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=83155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}