Documentation
Block Checkout Fields for WooCommerce
Edit, hide and add checkout fields on the WooCommerce block checkout and the classic one.
Install the plugin
You need WordPress 6.6 or later, WooCommerce 9.0 or later and PHP 8.1 or later.
- In your WordPress admin, go to Plugins > Add New Plugin.
- Search for "Block Checkout Fields for WooCommerce", then select Install Now and Activate.
- If WooCommerce is not active, the plugin does nothing and shows a notice asking you to activate it.
Edit the default address fields
Go to WooCommerce > Settings > Checkout Fields. The Address fields section lists the ten default address fields. One set of settings covers billing and shipping.
A setting left on Default follows WooCommerce's own rule, or the rule for the shopper's country.
- Change a field's Label to rename it.
- Set it to Required, Optional or Hidden. Country can never be hidden or made optional.
- Use the position to move it up or down the form.
- If a row explains that your shipping zones, tax rates, delivery methods or payment gateway rely on the field, read why before you hide it. Hiding it then needs Hide anyway ticked.
- Save your changes, then place a test order on your checkout.
Add your own fields
Under WooCommerce > Settings > Checkout Fields > Custom fields, you can have up to 20 active fields. A field's section and type cannot change once it is saved, because orders store values under it; you can rename it at any time.
Do not collect card numbers, security codes or Social Security numbers in a checkout field.
- Select Add field.
- Choose the section: contact, address (shown for billing and shipping) or order.
- Choose the type: text, select or checkbox. For a select, add its options.
- Fill in the label, and the placeholder if you want one. Tick Required if the order cannot go through without it; a required checkbox must be ticked.
- For a text field, add a rule if you need one: a length range, or a pattern the whole value must match. Add your own error message, or leave it empty for ours.
- Save. Use the up and down buttons on the list to change the order.
Where the values show
Custom field values are saved on the order. They show on the order received page, in My Account, on the admin order screen and in the customer and admin emails, from either checkout.
The REST API returns them on each order under bcfw_fields. They are included in the order's personal data export, and removed by the eraser when WooCommerce > Settings > Accounts & Privacy > Remove personal data from orders is on.
Deleting a field takes it off the checkout but keeps its label, so past orders still show their values. Only a deleted field can be deleted permanently, and the values on past orders stay either way.
Import from another field editor
Go to WooCommerce > Settings > Checkout Fields > Import. The section lists every supported field editor whose settings it finds on your store, with the number of fields in each.
The preview shows each field, what it becomes here and why any field cannot be brought across. Opening the preview changes nothing.
- Open the preview for the editor you used.
- Check each row. Tick Hide anyway for any field you still want hidden after reading its warning.
- Select Import. The summary shows how many fields were created, updated, skipped or could not be mapped.
- Deactivate the old plugin, or its fields will show twice on the classic checkout. Past orders keep their values in the old plugin's data.
What Pro adds
Pro is a separate plugin that works with the free one:
Conditional fields: show a field only when another field has a chosen answer, when the cart holds chosen products or categories, or for a chosen delivery method. A hidden field is never required.
File upload fields, for a design, a prescription or a document the order needs.
Fields that add a fee: a checkbox or select option that adds a fixed amount to the order, such as gift wrapping, shown in the order total.
If a Pro licence ends, its fields stop showing at checkout and past orders keep their values.
Pro is $49 a year for 1 site and $149 a year for unlimited sites, with email support. It is not on sale yet; register your interest on the plugin page and we will tell you when it is.
Get help
If a change does not show on the checkout, clear any page cache and check that no other plugin or theme changes the same fields. Another checkout field editor left active can override these settings.
For anything else, write to us through the contact page and you will get a reply within two working days.
Still stuck?
- Write to us and you will get a reply within two working days.
Have a project in mind?
Tell us what you want to build. You will get a reply within two working days, and a fixed quote after a short call.