Linux 软件免费装
Banner图

RaCar Checkout Manager for Brazilian Stores

开发者 rafacarvalhido
更新时间 2026年9月9日 04:21
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

WooCommerce Checkout Brazil CPF CNPJ

下载

0.4.1 0.3.1 0.5.0 0.3.5 0.4.0 0.10.7 0.5.1 0.6.0 0.6.1

详情介绍:

RaCar Checkout Manager for Brazilian Stores is a powerful WooCommerce plugin designed specifically for Brazilian stores. It enhances the WooCommerce checkout experience by adding essential fields like CPF, CNPJ, RG, and more and allowing control of all WooCommerce fields. Additionally, it includes an address autofill feature that uses CEP (Brazilian postal codes) to automatically populate address fields, saving time and improving accuracy. O Gerenciador de Checkout RaCar para Lojas Brasileiras é um poderoso plugin para WooCommerce desenvolvido especificamente para lojas no Brasil. Ele aprimora a experiência de finalização de compra no WooCommerce, adicionando campos essenciais como CPF, CNPJ, RG e outros, além de permitir o controle de todos os campos do WooCommerce. Adicionalmente, inclui um recurso de preenchimento automático de endereços que utiliza o CEP para preencher automaticamente os campos de endereço e bloquenado-os (à escolha do admin), economizando tempo e aumentando a precisão. Key Features: This plugin is free and always will be. If it saves you time, consider buying me a coffee to support its development. Este plugin é gratuito e sempre será. Se ele economizar seu tempo, considere me oferecer um café para apoiar o desenvolvimento deste e outros plugins.

安装:

  1. Upload the plugin files to the /wp-content/plugins/racar-checkout-manager-for-brazilian-stores directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Navigate to RaCar Plugins > Gerenciador de Campos para Lojas Brasileiras in the WordPress admin menu to configure the settings.
  4. Customize the checkout fields and enable the address autofill feature as needed.

屏幕截图:

  • **Address Autofill Settings** - Enable or disable the address autofill feature.
  • **Frontend Display** - Manage settings like priority, row layout (full row / left / right column), label, placeholder, etc. Blocked fields after CEP search.

升级注意事项:

0.10.7 - 2026-09-07
  • Block checkout: Complemento (address_2) stays visible for layout when enabled and optional in Tab 1, without making the field required.
0.10.6 - 2026-09-07
  • company_as_name uses company as first name only; fixes shipping-phone meta warning on emails; Blocks integration boots only for Blocks checkout stores/requests.
0.10.5 - 2026-09-07
  • Fixes duplicate username/password fields on My Account registration when the store lets customers set them manually.
0.10.4 - 2026-09-06
  • Fixes a fatal parse error on PHP < 8.0 when loading Blocks helpers; still requires PHP 8.0+ for the domain (and CLI).
0.10.3 - 2026-09-06
  • ROAPC option rename: all_fields_wide → registration_fields_wide (auto-migrated); default on for new installs.
0.10.2 - 2026-09-05
  • Tab 3: CPF/CNPJ as login username now requires and locks One Account Per CPF/CNPJ.
0.10.1 - 2026-09-03
  • Block checkout layout fix: left/right field pairs stay on the same row in Tab 1 and on the storefront; swapping columns and drop slots behave correctly.
0.10.0 - 2026-09-02
  • Performance and cleanup release: scoped input masks, deferred scripts, shared DocumentValidator for ROAPC, WooCommerce Blocks adapter, and Checkout autoload. Uninstall still preserves customer/order meta.
0.9.6 - 2026-08-27
  • New Tab 1 option (on by default): apply Brazilian checkout fields and rules on the frontend for any country. Turn it off to restore the previous BR-only behavior.
0.9.5 - 2026-08-27
  • Classic checkout: PF/PJ toggles now target billing field rows by ID (company, CPF/CNPJ, etc.) with the same company_as_name behavior as Block checkout — hide/show names, restore names when returning to PF, copy company into first/last on place order, and persist names on the order server-side.
0.9.4 - 2026-08-27
  • Block checkout: Documents (identity) section renders first — before contact, shipping, and billing. Tab 1 Block field grid matches that section order.
0.9.3 - 2026-08-27 Single bootstrap on plugins_loaded; block vs classic checkout context follows the current page content (fixes latent thank-you/order-pay misdetection). 0.9.2 - 2026-08-27 WordPress.org conformity: requires WP 6.5+, WC tested up to 11.0; development prompt file removed from the plugin zip. 0.9.1 - 2026-08-27 Security hardening (no plaintext password meta; CEP REST cache/rate limit) and Block checkout CEP autofill/mask. Classic checkout autofill unchanged. 0.9.0 - 2026-08-24 Tab 1 visual field grid for Block and Classic. Block storefront fixes for contact password width, input height, and Documents spacing. 0.8.6 - 2026-08-19 Classic and Block checkout field settings are now isolated. Re-check Tab 1 Classic vs Block sub-tabs after update: row layout, required, and field order should match each sub-tab independently. 0.8.4 - 2026-07-05 Tab 1 now opens the Classic or Block checkout sub-tab automatically based on your store checkout page, with a notice showing which type is active. 0.8.3 - 2026-06-21 Tab 1 now has separate Classic and Block checkout field settings. Block checkout shows Brazilian identity fields in a Documents section at the top of the form. 0.8.2 - 2026-06-16 Classic checkout now hides Brazilian plugin fields when the selected billing or shipping country is not Brazil, and restores admin settings when Brazil is selected again. 0.6.1 - 2026-05-15 Checkout persistence saves Brazilian extras for new-account orders; person type stored as 1/2; shipping number/neighborhood mirror when billing is used for delivery. 0.4.2 - 2026-05-13 Safer SelectWoo default (scoped removal). Tab 1 select height and shipping fields clear fix. Optional legacy filter documented in the changelog. 0.1.0 Initial release of the plugin. Adds essential checkout fields and address autofill for Brazilian stores.

常见问题:

Does this plugin work with WooCommerce HPOS?

Yes, the plugin is fully compatible with WooCommerce's High-Performance Order Storage (HPOS).

How does the address autofill feature work?

The plugin uses Brazilian CEPs (postal codes) to fetch address data: it calls BrasilAPI first, and uses ViaCEP as a fallback if BrasilAPI does not return a valid address. This data is then used to automatically populate the address fields during checkout.

Can I disable specific checkout fields?

Yes, you can enable or disable individual fields like CPF, CNPJ, RG, and more from the plugin's settings page.

Is this plugin translation-ready?

Yes, the plugin is fully localized and ready for translation into other languages.

Does this plugin support input masks?

Yes, you can enable input masks for fields like CPF, CNPJ, and cellphone to improve the user experience.

Can I disable the address autofill feature?

Yes, you can disable the autofill feature entirely from the plugin settings (Tab 2: Autofill Addresses). When disabled, no external API calls are made.

Does uninstall remove customer CPF/CNPJ or order data?

No. Uninstall removes plugin options and logs an audit entry when WooCommerce logging is enabled, but user meta (for example billing_cpf) and order meta are preserved so fiscal history and ERP integrations remain intact.

Does order meta stay compatible with Brazilian Market-style integrations (shipping carriers, ERPs)?

Yes. From 0.6.1 onward, person type is stored on orders and customers as 1 (individual) / 2 (company), matching Brazilian Market on WooCommerce. When checkout ships to the billing address (no separate shipping address), number and neighborhood are mirrored into shipping meta (_shipping_number, _shipping_neighborhood) when those shipping fields would otherwise be empty—matching what many Brazilian carriers expect. Third-party plugins that read the same meta keys (for example Loggi, Correios Automático Infix, Melhor Envio buyer payloads, Link Nacional improved shipping calculator conventions) continue to work without Brazilian Market installed. Melhor Envio may still show its own admin notice until their plugin explicitly recognizes RaCar—configure shipping fields here regardless.

How do I control field width on a checkout row?

In Checkout Fields (Tab 1), open a field’s settings (cog) and choose Row layout: Full row (one line), Left column, or Right column. Priority controls vertical order only. On classic checkout this maps to WooCommerce form-row-* classes; on Checkout Block it maps to flex width rules generated by the plugin.

Why did checkout columns look broken after activating the plugin?

Classic checkout rows often use form-row-first / form-row-last together with theme CSS floats. The plugin keeps those WooCommerce classes but changes which rows are visible (PF/PJ toggles) and interacts with WooCommerce scripts that can reassign row classes when country or locale rules change (the plugin also restores your configured postcode row classes after country_to_state_changing). That can misalign float pairs even though class names match WooCommerce defaults.

How do I fix overlapping checkout columns safely?

In Checkout Fields (Tab 1), enable Classic Checkout Layout (Float Compatibility) → Recover floated checkout columns. It is off by default so normal themes are unaffected; when enabled, it outputs a checkout-only rule (clear: both on form-row-first) with exclusions for wide rows and the plugin’s three-column helpers. Test checkout with your theme after enabling; disable again if anything looks worse.

How should I verify layout after changing float compatibility?

Use the classic checkout page (shortcode checkout). With the option off, confirm billing/shipping look as before. Turn it on only on stores that showed overlap; recheck billing, shipping, switching PF/PJ (when applicable), and changing country if customers can. Storefront is a good baseline; themes that rely heavily on floats benefit most.

On phones my checkout fields stack full width, but I want the same row layout as desktop. What can I do?

Classic checkout: In Checkout Fields (Tab 1) → Classic Checkout Layout (Float Compatibility), enable Preserve two-column row layout on small screens (default off). It applies classic shortcode checkout only (not block checkout): under max-width: 768px it restores two-column widths for fields set to Left column / Right column when themes stack everything full width. Block checkout: Below ~700px container width, WooCommerce and this plugin stack address fields full width by design (better mobile UX). Adjust Row layout on desktop; mobile stacking is expected.

What should I test before enabling block checkout on production?

Use this go/no-go checklist after enabling Block checkout support on Tab 1 (test on your store’s block checkout URL):

  • Persistence: Guest and logged-in orders; confirm _wc_billing/rbsmhao/*, _wc_shipping/rbsmhao/*, billing_*, and _billing_* meta on the order.
  • Validation: Invalid CPF/CNPJ blocks checkout; optional fields do not block when empty.
  • Display: Order admin, order emails, My Account overview, and WooCommerce REST order payload show the same Brazilian data (legacy and Blocks meta).
  • PF/PJ: Toggle shows/hides the correct field groups; server validation matches the selected person type.
  • Conflicts: With Brazilian Checkout Toolkit active, RaCar block registration stays off and an admin notice explains why.
  • Mobile UX: Masks do not jump the caret while typing CPF/CNPJ/phone on iOS/Android.
  • Rollback: Disable Block checkout support or add add_filter( 'rbsmhao_disable_blocks_checkout_support', '__return_true' ); — classic checkout and existing orders must remain intact.

更新日志:

0.10.7 - 2026-09-07 0.10.6 - 2026-09-07 0.10.5 - 2026-09-07 0.10.4 - 2026-09-06 0.10.3 - 2026-09-06 0.10.2 - 2026-09-05 0.10.1 - 2026-09-03 0.10.0 - 2026-09-02 0.9.6 - 2026-08-27 0.9.5 - 2026-08-27 0.9.4 - 2026-08-27 0.9.3 - 2026-08-27 0.9.2 - 2026-08-27 0.9.1 - 2026-08-27 0.9.0 - 2026-08-24 0.8.13 - 2026-08-23 0.8.12 - 2026-08-21 0.8.11 - 2026-08-21 0.8.10 - 2026-08-21 0.8.9 - 2026-08-21 0.8.8 - 2026-08-21 0.8.7 - 2026-08-21 0.8.6 - 2026-08-19 0.8.4 - 2026-07-05 0.8.3 - 2026-06-21 0.8.2 - 2026-06-16 0.8.1 - 2026-05-28 0.8.0 - 2026-05-24 0.7.4 - 2026-05-19 0.7.3 - 2026-05-19 0.7.2 - 2026-05-19 0.7.1 - 2026-05-19 0.7.0 - 2026-05-19 0.6.1 - 2026-05-16 0.6.0 - 2026-05-15 0.5.1 - 2026-05-15 0.5.0 - 2026-05-13 0.4.1 - 2026-05-06 0.4.0 - 2026-05-04 0.3.5 - 2026-05-02 0.3.4 - 2026-05-01 0.3.2 - 2026-04-30 0.3.1 - 2026-04-26 0.3.0 - 2026-04-23 0.2.3 - 2026-04-19 0.1.0 - 2026-03-15