How to Customize the WooCommerce Checkout Page (Blocks and Classic)
The checkout is the one page where every change costs or makes money. WooCommerce now has two checkouts, the Checkout block and the classic shortcode, and each is customized differently. Here is how to tell which one you run, then change its layout, fields and style without breaking payments.
In this article
Key takeaways
- Check which checkout you run first: the Checkout block or the classic shortcode. The ways to customize them are different.
- Edit the block checkout in the Site Editor: Appearance → Editor → Templates → WooCommerce → Page: Checkout.
- Add fields to the block checkout with woocommerce_register_additional_checkout_field, registered on woocommerce_init.
- The woocommerce_checkout_fields filter only changes the classic shortcode checkout.
- No-code: Checkout Field Editor for WooCommerce (400,000+ installs) works with both checkouts.
- Test every change with a test order in each payment method's test mode, on staging first.
The short answer
- Find out which checkout you run: the Checkout block or the classic shortcode.
- Block checkout: edit layout and styles in the Site Editor, and add fields with WooCommerce’s Additional Checkout Fields API or a plugin that supports blocks.
- Classic checkout: change fields with the
woocommerce_checkout_fieldsfilter or a plugin, and style it with CSS. - Test with a real order in each payment method’s test mode, on a staging copy first.
1. Find out which checkout you have
Open Pages → Checkout in wp-admin (on a block theme, also Appearance → Editor → Templates → WooCommerce → Page: Checkout).
- You see a Checkout block with customer details, shipping, payment and an order summary: you run the block checkout.
- You see a Classic Shortcode block or
[woocommerce_checkout]: you run the classic checkout. - A page builder template (for example Elementor Pro’s or Divi’s Theme Builder) can also control the checkout. Then change it in that builder.
It matters because code written for one checkout does nothing on the other, which is the most common reason a checkout change “doesn’t work”.
2. Customize the block checkout
From WooCommerce’s guide to customizing the checkout page:
- Go to Appearance → Editor, then Templates → WooCommerce, and select Page: Checkout. On a classic theme, edit the Checkout page under Pages instead.
- Select the Checkout block, the main container, and use List View to reach its parts: customer details, shipping and delivery, payment methods and the order review.
- Change settings and styles in the block sidebar, then save.
The checkout template uses a simplified header by default, with only your site title and logo. WooCommerce does this on purpose, to keep shoppers focused on finishing the order, so think twice before adding your full menu back.
3. Add a field to the block checkout
The block checkout has its own API for extra fields. Register a field with woocommerce_register_additional_checkout_field on the woocommerce_init action or later; registering earlier can cause errors. Each field goes in one of three places: contact, address (shown in both the shipping and billing address) or order, and can be a text, select, checkbox or date field.
add_action( 'woocommerce_init', function () {
woocommerce_register_additional_checkout_field(
array(
'id' => 'my-store/delivery-instructions',
'label' => 'Delivery instructions',
'location' => 'order',
'type' => 'text',
'required' => false,
)
);
} );The value is saved with the order. The Additional Checkout Fields documentation covers validation, select options and reading the values back. Add code like this with a code snippets plugin or in a child theme, never in WooCommerce or the parent theme, where updates would wipe it.
4. Customize the classic checkout
On the shortcode checkout, every field passes through the woocommerce_checkout_fields filter, so you can change labels, placeholders and whether a field is required, or remove it. WooCommerce’s checkout fields guide notes this only applies to the shortcode checkout.
add_filter( 'woocommerce_checkout_fields', function ( $fields ) {
// Make the phone number optional and remove the company field.
$fields['billing']['billing_phone']['required'] = false;
unset( $fields['billing']['billing_company'] );
return $fields;
} );The billing and shipping fields also have their own filters, woocommerce_billing_fields and woocommerce_shipping_fields. Before removing a field, check your payment gateway, shipping and tax plugins don’t need it.
5. Or use a plugin
For field changes without code, two popular plugins (WordPress.org installs on 20 November 2026):
| Plugin | Active installs | Works with |
|---|---|---|
| Checkout Field Editor for WooCommerce | 400,000+ | Both the classic and the block checkout |
| Flexible Checkout Fields | 80,000+ | The classic checkout; its makers have a separate plugin for the block checkout |
Whatever you pick, confirm it supports the checkout you run before you build on it.
6. Style it to match your brand
- Block checkout: use the Checkout block’s style settings and your theme’s styles in the Site Editor, so fonts and colors come from one place.
- Classic checkout: add CSS scoped to the checkout page, for example rules that start with
.woocommerce-checkout, in your child theme or a CSS snippet. See how to edit HTML and CSS in WordPress. - Keep it fast: checkout must stay out of the page cache, so every script and image you add loads on every visit. Test on a phone.
7. Test before it goes live
- Make the change on a staging copy first.
- Place a test order with each payment method in its test mode, as a guest and as a logged-in customer.
- Check the order email, the order in wp-admin (including any new field), stock and any shipping or tax plugin.
- Repeat on the live store after you deploy, and after every WooCommerce or gateway update.
If you run stores for clients, this test is the core of a WooCommerce care plan.
Where WPOS fits
WPOS restyles WooCommerce checkout, cart and product pages from chat without editing the theme’s files. On classic themes it stores its changes and renders them at runtime; on block themes it edits the block template the way the Site Editor does. It checks how the store is built first and warns when Elementor Pro, Divi or a block theme already controls the template, instead of making a change that would never show. One request covers it:
“Match the checkout to our brand fonts and colors, add an optional Delivery instructions field to the order section, then place a test order with the test payment method and show me the confirmation on phone and desktop.”
WPOS is our product, so weigh this section accordingly; you can try it free for 30 days with 5,000 credits, a live site plus a staging sandbox, and no card.
Frequently Asked Questions
First check which checkout you have. With the Checkout block, edit it in the Site Editor (Appearance, Editor, Templates, WooCommerce, Page: Checkout) or on the Checkout page itself. With the classic shortcode checkout, change fields with the woocommerce_checkout_fields filter or a checkout field plugin, and style it with CSS.
Yes, for most changes. The Checkout block is edited visually, and plugins such as Checkout Field Editor for WooCommerce add, remove and reorder fields in both the block and the classic checkout. Code is only needed for custom logic.
On the block checkout, register it with WooCommerce's Additional Checkout Fields API (woocommerce_register_additional_checkout_field, called on woocommerce_init or later). On the classic checkout, add it with the woocommerce_checkout_fields filter. Or use a plugin that supports the checkout you run.
Usually because the code targets the other checkout. The woocommerce_checkout_fields filter only changes the classic shortcode checkout; the block checkout needs the Additional Checkout Fields API. Also check a page cache isn't serving an old copy: checkout should never be cached.
Open the Checkout page or template, select the Checkout block in List View, click Transform in the block toolbar and choose Classic Shortcode, then save. Do this only if something you need, such as a payment or field plugin, doesn't support the block checkout.
It can. Payment gateways add their own fields and scripts to checkout, so test every change with a test order in each payment method's test mode, on a staging copy first, before you change the live store.
Start free with 15,000 credits.
Three times the usual 5,000, no card needed. Then 50% off your site licences for 2 months with FRIDAY50.
Change the checkout. Keep the sales.
WPOS puts an AI agent inside wp-admin on the sites you already run, on any host, and it checks its own work. Free for 30 days: 5,000 credits, a live site plus a sandbox, no card.