How to customize the WooCommerce checkout fields
Every extra field at checkout is a reason for a customer to give up. This guide shows how to customize the WooCommerce checkout fields: removing fields you do not need, making the phone required, and adding a field such as a landmark, for both the new block checkout and the classic checkout.
First: which checkout do you have?
- Go to Pages and edit the Checkout page.
- If you see a large Checkout block with sections (Contact, Shipping address, Payment), you use the block checkout. New stores use it by default.
- If you only see the shortcode
[woocommerce_checkout], you use the classic checkout.
The steps differ, and many older plugins and code snippets only work with the classic checkout.
Block checkout: built-in options
- Edit the Checkout page and click on the address section of the Checkout block.
- In the settings sidebar, find the address field options. You can set Company, Address line 2 and Phone to hidden, optional or required.
- Click inner blocks such as Order note or Terms and conditions to show, hide or edit their text.
- Save the page and test as a customer.
To add brand-new fields to the block checkout, use a checkout field plugin that clearly states block checkout support, or ask a developer to use WooCommerce's Additional Checkout Fields API.
Classic checkout: Customizer options
Go to Appearance → Customize → WooCommerce → Checkout (available in most classic themes). You can set the company, address line 2 and phone fields to hidden, optional or required, and add links to your privacy and terms pages.
Classic checkout: a field editor plugin
- Install a well-reviewed plugin such as Checkout Field Editor for WooCommerce.
- Open its settings (usually under WooCommerce).
- Disable, reorder, rename or make fields required in the billing, shipping and additional sections.
- Add new fields, for example a "Nearest landmark" text field or a "Preferred delivery time" select field.
- Save and test a full order.
Classic checkout: with code
If you prefer code, add a snippet with the Code Snippets plugin or in a child theme. Back up first.
add_filter( 'woocommerce_checkout_fields', function ( $fields ) {
// Remove fields you do not need
unset( $fields['billing']['billing_company'] );
unset( $fields['billing']['billing_postcode'] );
// Make the phone number required
$fields['billing']['billing_phone']['required'] = true;
// Give the order notes field a clearer placeholder
$fields['order']['order_comments']['placeholder'] = 'Landmark or delivery notes';
return $fields;
} );
A good checkout for Egyptian stores
- Keep: first and last name, mobile phone (required), governorate, city/area, street address, and email (needed for order emails).
- Consider removing: company, postcode, and address line 2 (or rename it "Building / floor / apartment").
- Add: a landmark field or use the order notes for it.
- Offer cash on delivery clearly: How to set up Cash on Delivery with an extra fee in WooCommerce.
- Allow guest checkout in WooCommerce → Settings → Accounts & Privacy, so customers are not forced to register.
Common problems
- Your changes do not appear: the plugin or code targets the classic checkout but your page uses the block checkout (or the reverse). Clear any page cache too.
- "Please enter a valid postcode" after hiding it: a shipping or validation rule still expects it. Hide it with the method your checkout type supports, not with CSS.
- Custom field values missing in orders: the plugin saves them in the order meta. Check the order screen and enable "show in order emails" in the plugin if needed.
Frequently asked questions
Should I switch back to the classic checkout?
Only if a plugin you really need does not support blocks yet. The block checkout is where WooCommerce is investing, so check for block-compatible alternatives first.
Can I make the checkout one page with no account?
Yes. Enable guest checkout and keep the fields short. Fewer fields usually means more completed orders.