Hi guys! A request around the native (v2) checkout, which we now use on every store.
Environment: Bricks 2.4.4, WooCommerce 11.2.1, checkout built from the Bricks preset.
What happens
The v2 checkout renders fields one by one, with a woocommerce-form-field element per fieldKey. Any field that’s added after the preset was inserted has no element, so it never appears. Examples from real stores:
- Company name, enabled later in the Customizer
- a VAT number added by an invoicing plugin (Számlázz.hu, HuCommerce)
- a required “Private person / Company” radio field added by the same invoicing plugin
There’s no notice. If the hidden field is required, the customer can’t place the order: WooCommerce rejects it with “required field missing” for a field they never saw.
Today we compare WC()->checkout()->get_checkout_fields() with the fieldKeys in the checkout tree after every plugin change, and add the missing elements by hand.
What would help (any one of these):
- An option on the billing/shipping address sections (or a dedicated element), something like “Render remaining fields”, that outputs every registered checkout field in that group which has no
woocommerce-form-fieldelement on the page, in WooCommerce’s priority order. - A builder notice on the checkout template listing registered fields that aren’t placed (at least the required ones).
- Have
bricks/get-woo-setup-statusreport unplaced checkout fields, so agents and admins can catch it after installing a plugin.
Option 1 would make the checkout robust to plugin changes without anyone having to remember.