eCommerce

WooCommerce Checkout Customisation: Fields, Blocks and Payment Options

New WooCommerce stores use the block-based checkout, where the old PHP hooks for fields and layout no longer apply. Here is how we add fields, adjust the layout and control payment options in both the block and classic checkouts without breaking the page that matters most.

Laptop showing an online furniture store home page, beside Shopify, BigCommerce, WooCommerce and custom store badges

Customising the WooCommerce checkout used to mean a handful of well-known PHP filters: add a field with woocommerce_checkout_fields, print a message with an action hook, done. Then WooCommerce moved to a block-based checkout, and store owners started finding that snippets copied from tutorials did nothing, that a payment plugin showed a compatibility warning, or that a quick change broke the order confirmation email.

Checkout work is a large part of our WooCommerce development service, because it is the page where small mistakes cost the most. This is how the current checkout works and how we customise it without fighting it.

Block Checkout or Classic Checkout?

Since WooCommerce 8.3, new stores get the Cart and Checkout blocks by default. The checkout page holds a Checkout block, built in React on top of the WordPress block editor, which talks to the server through the Store API. Older stores, and stores that switched back, use the classic checkout, rendered in PHP by the woocommerce_checkout shortcode.

The difference matters because most classic customisations rely on PHP hooks that fire while the checkout form is rendered. The block checkout does not render its form in PHP, so hooks such as woocommerce_checkout_fields, woocommerce_before_order_notes or woocommerce_review_order_before_payment have no effect on it. Some server-side logic still applies to both, including fees added in woocommerce_cart_calculate_fees and gateway filtering with woocommerce_available_payment_gateways, but field and layout changes need a different approach.

So the first question on any checkout project is which checkout the store runs, and which it should run. The block checkout is where WooCommerce's development effort is going, it gives a cleaner single-page layout on mobile, and it handles express wallets well. The classic checkout still makes sense when the store depends on an extension without block support that cannot be replaced yet. What we avoid is mixing the two through workarounds. Our WordPress development team treats that choice as a decision to record, not a default to inherit.

Adding Fields to the Block Checkout

For extra fields, WooCommerce provides the Additional Checkout Fields API. A field is registered in PHP with woocommerce_register_additional_checkout_field(), giving it a namespaced ID, a label, a type (text, select or checkbox) and a location:

  • contact, shown with the email address and saved to the customer, such as a VAT number or purchase order reference;
  • address, shown in both the shipping and billing address forms, such as a building or gate code;
  • order, shown in its own area and saved to the order only, such as a gift option or how the customer heard about the store.

Registered fields are saved to the order and shown in the admin order screen and order emails without extra code. Validation and sanitisation callbacks handle rules such as VAT number formats. For anything the API does not cover, such as a delivery date picker tied to available slots, we build a small checkout block extension in JavaScript that adds an inner block and extends the Store API schema with the data the server needs.

Changing the Layout and Copy

Many checkout requests are not about data at all: remove the company field, change a heading, add a reassurance message near the payment buttons, make the phone number optional. In the block checkout much of this is done in the editor. Inner blocks such as the order summary, contact information and terms can be configured or hidden, the visibility of company, address line 2 and phone fields is a setting, and headings and button text are edited directly.

Beyond that, the Checkout block exposes filters and slot-fill areas so extensions can add content or change things like item names and totals labels in a supported way. What we avoid is hiding or moving checkout elements with CSS or JavaScript that rewrites the page after React has rendered it. It looks fine until an update changes the markup, and then the most important page on the site fails quietly.

Payment Options in Both Checkouts

Payment gateways need explicit block support. A gateway integrates with the block checkout by registering a payment method type on the server and a matching JavaScript component; without that it does not appear in the block checkout, and WooCommerce shows a compatibility notice in the editor. Before switching a store to blocks, we list every gateway and confirm its support.

  • Express wallets. Apple Pay, Google Pay and PayPal buttons appear in the express payment area at the top of the block checkout, and can be shown on the cart too. Apple Pay needs domain verification, and shipping address changes inside the wallet sheet need careful testing.
  • Methods by condition. Hiding cash on delivery above a basket value, or offering invoice payment only to trade customers, is done with the woocommerce_available_payment_gateways filter, which applies in both checkouts.
  • Fees by payment method. The classic checkout refreshes totals when the customer changes method; the block checkout needs a small extension to send the selection to the server and recalculate. Card surcharges are also banned for most consumer payments in the UK and EU, so check the rules first.
  • Deposits, subscriptions and saved cards. These depend on both the gateway and extensions such as WooCommerce Subscriptions supporting the block checkout, so we test them as complete journeys, including renewals.

Choosing the providers themselves is a wider decision that our payment gateway integration work covers.

HPOS and Other Things That Break Customisations

A few other changes catch out older checkout code:

  1. High-Performance Order Storage. New stores since WooCommerce 8.2 keep orders in dedicated tables instead of as posts. Code that saves checkout data with update_post_meta() or reads it with get_post_meta() will not work reliably with HPOS orders. Order data should go through the order object, with $order->update_meta_data() followed by $order->save().
  2. Compatibility declarations. Custom plugins should declare whether they support HPOS and the cart and checkout blocks, so WooCommerce can warn when something incompatible is active.
  3. Caching. Cart, checkout and account pages must be excluded from full-page caching, and so must the Store API requests the blocks rely on.

When a checkout has already stopped working after an update, our troubleshooting and bug fixing service usually starts with these three.

How We Test a Checkout Change

Every checkout change is tested on staging as complete orders, not page views: guest and logged-in customers, each payment method including 3D Secure challenges, each shipping zone, coupons, and a refund from the admin. We check the confirmation email, the admin order screen and anything downstream, such as an ERP or fulfilment integration that reads the new fields. Only then does it go live, ideally outside peak trading hours.

High order volumes bring their own checkout performance issues, covered in scaling WooCommerce for large catalogues, and stock-dependent rules are covered in seasonal stock and availability.

If your checkout needs a field, a rule or a payment method it does not have, tell us what should happen and which checkout you run, and we will suggest the cleanest way to build it.

Frequently Asked Questions

How can I tell whether my store uses the block checkout or the classic checkout?

Edit the checkout page in WordPress. If the editor shows a Checkout block with inner blocks such as contact information and payment options, you are on the block checkout. If it shows a shortcode block containing woocommerce_checkout, you are on the classic checkout. Some themes and page builders replace the page, so check what actually renders as well.

Should we switch an existing store from the classic checkout to the block checkout?

Usually yes, but only after checking that every payment gateway, shipping plugin and checkout-related extension supports blocks, and after rebuilding any custom fields with the supported APIs. We make the switch on staging first and test full orders, because a missing gateway or field is easy to overlook until a customer cannot pay.

Can we add conditional fields, such as asking for a company number only for business customers?

In the classic checkout this is done with PHP and a little JavaScript. In the block checkout, simple conditions can be handled by fields registered through the Additional Checkout Fields API, while more complex logic needs a small checkout block extension. Either way, validation must also run on the server so the rule cannot be bypassed.

Will checkout customisations survive WooCommerce updates?

They will if they are built with supported APIs: registered fields, hooks that apply to the checkout in use, and documented block extension points. Customisations that edit WooCommerce files, override checkout templates without maintenance, or rearrange the page with JavaScript are the ones that break, which is why we test checkout changes against each major update.

Do checkout field changes affect order exports and integrations?

Often, yes. A new field only reaches your ERP, warehouse or accounting software if the integration knows to read it, and on HPOS stores it must read order meta through the WooCommerce order API rather than the posts tables. We check every downstream system that consumes orders whenever a checkout field is added or renamed.

How We Can Help

Services Related to This Article

The work we do with the technologies discussed above — with pricing, process and real examples on each page.

  • WooCommerce Development

    WooCommerce store development, custom plugins, checkout optimisation, product configurators, payment and shipping integrations, and speed tuning.

  • WordPress Development

    Custom WordPress themes, plugins and WooCommerce builds that are fast, secure and genuinely easy for your team to manage.

  • Payment Gateway & Subscription Integration

    Stripe, PayPal, Apple Pay and regional gateways integrated properly — plus subscriptions, deposits, invoicing and marketplace payouts.

  • Troubleshooting & Bug Fixes

    Broken layouts, white screens, plugin conflicts or checkout errors — we diagnose the root cause and fix it properly.

In Practice

Case Studies on This Topic

Projects where we put these ideas to work, each with a live demo.

Keep Reading

  • Aerial view of a busy container port with rows of stacked shipping containers and yellow gantry cranes

    Moving to BigCommerce From WooCommerce or Magento: What Carries Over

    Products, customers and URLs can move to BigCommerce; themes, plugins and passwords cannot. Here is what transfers cleanly from WooCommerce or Magento, what has to be remodelled or rebuilt, and how to protect search rankings during the switch.

  • Bright living room with a grey tufted sofa, teal cushions and a wooden coffee table in front of a window

    Shopify Online Store 2.0: Sections, Metafields and Custom Templates

    Online Store 2.0 lets a Shopify team build product, collection and landing pages from sections and structured data instead of asking a developer every time. Here is how JSON templates, section schemas, metafields and metaobjects fit together, and the mistakes that make a 2.0 theme hard to live with.

  • Gloved hand welding a metal panel with a gas torch, sparks glowing at the joint

    Upgrading Magento 2 Safely: Extensions, Themes and Security Patches

    Most Magento 2 upgrades go wrong in the same places: an extension that replaces core code, a theme template copied years ago, or a server a PHP version behind. Here is how we plan a 2.4.x upgrade, test it, and keep security patches flowing afterwards.

Let’s Connect

Let’s Build Something Amazing Together

Share your project details and our experts will get back to you within one business day with the best solution — free consultation, no obligation.