How do I add a VAT number field to Shopify checkout now that checkout.liquid is gone?
checkout.liquid is gone for good, so the old trick of hand-editing checkout to add a VAT or tax-ID box no longer works. Here's what actually replaces it.
What's going on
Merchants who need to collect a VAT number or tax ID at checkout, usually to apply a B2B tax exemption or satisfy an EU invoicing requirement, used to solve it the same way for years: open checkout.liquid, add an input for VAT Number, and wire it to an order note or attribute. That option is gone. Shopify phased out checkout.liquid customization of the Information, Shipping, and Payment steps in August 2024, with the final pieces, the Thank you and Order status pages, following about a year later, and every store, Plus or not, now runs exclusively on checkout extensibility, a system of app-based UI extensions and APIs that replaced free-form Liquid editing of checkout.
That change is good for stability, since extensions are far less likely to break when Shopify updates checkout, but it means anything that touched raw checkout HTML, including a simple VAT input, has to be rebuilt using the new extension points. Out of the box, standard checkout still has no dedicated VAT number or tax ID field, only a general company name field on the address form, so this gap has never been closed by Shopify itself.
This mostly affects merchants selling B2B or shipping cross-border into the EU and UK, where a valid VAT number determines whether a business customer should be charged tax at all. Without a way to capture it, orders either get taxed incorrectly or someone has to chase the number down by hand after the sale.
Why it happens
Shopify closed off direct Liquid and HTML editing of checkout because it was fragile: customizations built on checkout.liquid or Script Editor could break whenever Shopify shipped a checkout update, and that fragility also blocked Shopify from improving checkout performance for everyone. Checkout extensibility trades that flexibility for stability. You build against defined extension points and APIs that Shopify commits to not breaking on future releases, but a plain custom field is no longer a quick template edit.
VAT and tax-ID collection was also never a first-class Shopify feature to begin with. Shopify's tax tools focus on calculating tax based on location and product, not on verifying business tax-exemption eligibility, and requirements vary a lot by country. That gap is why merchants leaned on Liquid hacks for years, and why the checkout.liquid deprecation forced a decision for anyone who had been quietly patching it long before the sunset dates arrived.
5 ways to fix it
1. If you only need tax exemption, use Shopify's B2B company locations instead of a checkout field
If the VAT number is really being collected to mark a customer as tax-exempt, Shopify's B2B tools can solve that without touching checkout at all. On Shopify Plus with B2B enabled, you can set up company locations, assign approved wholesale customers to them, and mark a location as tax-exempt from the admin. Once that's in place, those customers see exempt pricing and skip tax automatically when they check out signed in, because the exemption already lives on their account. Worth ruling this out first, since it removes the need for a VAT field entirely if all you actually need is exemption, not a stored number.
2. Build the field yourself with a checkout UI extension
Checkout extensibility is the supported way to add a genuinely new input to checkout now that direct editing of the checkout pages is gone. A developer builds a checkout UI extension, using Shopify CLI and the checkout APIs, that renders a VAT or tax ID field at an appropriate point in the flow and writes the value to a cart or order attribute you can read later. It takes real development time up front and some ongoing maintenance as Shopify's extension APIs evolve, but once built it's yours with no recurring app fee, and it's the closest thing to what checkout.liquid used to let you do.
3. Install a VAT or tax-ID app from the Shopify App Store
Several apps add a VAT or tax-ID field to checkout, and some go further by validating the number against the EU's VIES registry and flagging the order or customer as exempt automatically. This is usually the fastest route if you sell into the EU and want the number checked rather than just recorded as text, since you're not building validation logic yourself. Check each app's pricing and plan requirements before installing — checkout-level app functionality is sometimes limited on lower plans.
4. Collect the number earlier, at account creation or right after purchase
If real-time collection during checkout isn't essential, capture the VAT number when a customer creates an account or immediately after they complete an order, then match it back to the order using the customer ID. This sidesteps checkout-step development entirely and works well when the number only needs to reach your invoicing or fulfillment records rather than affect tax calculation at the moment of purchase.
5. Use a metafield plus a manual process as a short-term stopgap
For low-volume B2B sellers, a workable interim fix is a metafield on the customer or company profile that your team fills in manually from an email or a simple external form, then reconciles against orders before issuing VAT-exempt invoices. It isn't real-time and won't scale past a handful of orders a week, but it costs nothing and buys time while you evaluate the options above.
Bottom line
The fix that used to feel natural — dropping a raw VAT text field into checkout.liquid — isn't available anymore. Shopify phased out checkout.liquid customization of the Information, Shipping, and Payment steps in August 2024, with the remaining Thank you and Order status pages following about a year later, so every store now runs on checkout extensibility. That's a real fork in the road, not just an inconvenience: B2B sellers should check Shopify's native company-location tax exemptions first, since they often remove the need for a checkout field entirely, while everyone else is choosing between a custom checkout UI extension (better long-term fit, needs developer time) or an off-the-shelf VAT app (faster, ongoing cost). If what you need is a tax-ID field wired into checkout with real validation and clean order data, that's the kind of one-time build a developer or a checkout-extension app can typically handle in a matter of days.
Browse the rest of the problem library, run a free storefront scan to catch issues like this automatically, or email us and we'll work out a custom solution for it.