B2BM Tax and VAT Exempt for WooCommerce

By B2B Managers

0+ active installationsVersion 1.0.1

Add a VAT number field to WooCommerce checkout with per-country format validation, and mark trusted B2B customers as tax exempt.

Description

B2BM Tax and VAT Exempt for WooCommerce, by B2B Managers, adds the two things a store needs when it sells to businesses: a VAT number field at checkout and a simple way to mark trusted customers as tax exempt.

A standard WooCommerce checkout has nowhere for a business buyer to enter a VAT number, and no way to stop charging tax to a customer who should not pay it. Store owners end up asking for VAT numbers by email, copying them into order notes, and refunding tax that should never have been charged. Wholesale buyers, resellers, schools and charities notice, and some take their business elsewhere.

This plugin fixes both problems without extra services or complicated setup. Buyers enter their VAT number at checkout, the format is checked, and the number is saved on the order, in the order emails and on the customer’s account for next time. For customers you have verified, tick one box on their user profile and WooCommerce stops charging them tax.

VAT number field for classic and block checkout

  • Works on both checkouts: the classic shortcode checkout and the WooCommerce block checkout, where it is registered through WooCommerce’s Additional Checkout Fields API.
  • Optional or required: collect a VAT number from everyone who wants to give one, or require it when you only sell to businesses.
  • Your own label: call it “VAT number”, “VAT ID”, “Tax ID”, “USt-IdNr.” or anything that suits your store.
  • Saved where you need it: on the order, on the admin order screen next to the billing address, and in the order emails.
  • Pre-filled for returning customers: logged-in buyers see the number they used last time.

Per-country VAT number format validation

The number is cleaned up (spaces, dots and dashes removed, letters upper-cased) and its two-letter country prefix selects the official format to check:

  • All 27 EU member states, including Greece’s EL prefix
  • United Kingdom (GB numbers, including government and health authority formats)
  • Switzerland (CHE numbers, with or without the MWST, TVA or IVA suffix)
  • Any other prefix falls back to a generic check: a two-letter country code followed by 2–13 letters or digits

A badly formatted number is rejected at checkout with a clear message, so typos are caught before the order is placed instead of when you raise the invoice. Validation can be switched off if you prefer to accept any value.

Tax exempt customers

  • Open any customer’s user profile, tick Tax exempt, and save. From then on their cart and checkout are calculated without tax.
  • Remove the tick and tax is charged again on their next cart update.
  • Exemption follows the customer, not a coupon or a role, so you decide case by case who qualifies.
  • A Tax-exempt customer badge appears on the admin order screen, so your team can see at a glance why an order has no tax.

Who it is for

  • B2B and wholesale stores in the EU and UK that need VAT numbers on every business order.
  • Mixed B2B/B2C shops where only some buyers have a VAT number.
  • Suppliers to schools, charities, public bodies and resellers who are entitled to buy without tax.
  • Store owners who invoice and need the buyer’s VAT number on file for every order.

How it works

  1. Install and activate the plugin. A VAT number field appears on your checkout straight away.
  2. Under WooCommerce → VAT & Tax Exemption, set the field label, choose whether the number is required, and turn format validation on or off.
  3. To exempt a customer from tax, edit their user profile, tick Tax exempt in the Tax exemption section and update the user.

Lightweight by design

No external requests are made and nothing is sent to any third-party service. No extra database tables are added: settings live in one option and exemptions in user meta. There is a single, short settings page under WooCommerce → VAT & Tax Exemption. The plugin is compatible with WooCommerce High-Performance Order Storage (HPOS) and the block-based Cart & Checkout, and it is translation ready.

Free and Pro

Everything described above is free and unlimited.

For stores selling across the EU, VAT & Tax Exemption Pro for WooCommerce is available from B2B Managers. Instead of exempting customers by hand, it checks each number with the EU’s VIES service. It adds:

  • Live VIES verification of every VAT number
  • Automatic zero-rating when the number is valid
  • The VIES consultation number, trader name and address stored on the order as evidence
  • Your choice of what happens when VIES is unavailable
  • Exemption limited to particular roles or member states
  • Reverse-charge wording on orders, invoices and customer emails

Pro reads the same settings and exemptions, so nothing needs to be set up again when you upgrade. The free plugin works on its own and does not require Pro.

Part of the B2B Managers range

This plugin is part of a free range of B2B and wholesale tools for WooCommerce by B2B Managers. Each plugin works on its own and they work well together:

Documentation and support

Documentation, setup guides and the full B2B Managers extension catalogue are on b2bmanagers.com. For questions about this plugin, visit the plugin page or use the wordpress.org support forum.

Installation

  1. In your WordPress admin go to Plugins → Add New, search for “B2BM Tax and VAT Exempt”, then install and activate it. WooCommerce must be active.
  2. The VAT number field is added to the checkout automatically.
  3. Go to WooCommerce → VAT & Tax Exemption to change the field label, make the field required, or turn format validation on or off.
  4. To make a customer tax exempt, go to Users, edit the customer, tick Tax exempt in the Tax exemption section and click Update User.

FAQ

How do I add a VAT number field to the WooCommerce checkout?

Install and activate this plugin. The VAT number field appears on the checkout immediately, on both the classic checkout and the block checkout. You can rename it and make it required under WooCommerce → VAT & Tax Exemption.

Does it work with the WooCommerce block checkout?

Yes. The field is registered through WooCommerce’s Additional Checkout Fields API for the block checkout, and as a billing field for the classic shortcode checkout. Format validation works on both. On the block checkout the field sits in the address form, so it appears with the billing address and, when a separate shipping address is used, with that too.

How do I make a customer tax exempt in WooCommerce?

Edit the customer’s user profile, tick “Tax exempt” in the Tax exemption section and update the user. From then on, whenever they are logged in, their cart and checkout are calculated without tax.

What happens if I remove a customer’s exemption?

Tax is charged again the next time their cart is calculated, even if they are still logged in. You do not need to wait for them to log out.

Does entering a VAT number make the order tax exempt automatically?

No. In the free plugin the VAT number is collected and format-checked, and tax exemption is something you switch on per customer once you have verified them. Automatic zero-rating based on a VIES-verified number is part of VAT & Tax Exemption Pro.

Does it check VAT numbers against VIES?

No. The free plugin checks that the number has the correct format; it does not contact VIES or any other service. Live VIES verification is part of VAT & Tax Exemption Pro.

Which countries are validated?

All 27 EU member states, the United Kingdom and Switzerland have their own format rules, selected by the two-letter prefix of the number. Numbers with any other prefix are accepted if they look like a two-letter country code followed by 2–13 letters or digits.

My customers’ tax IDs have no country code. What should I do?

Format validation expects a number that starts with a two-letter country code, as EU, UK and Swiss VAT numbers do. If your customers enter numbers without one, such as a US EIN or an Australian ABN, untick “Format validation” in the settings and the field accepts any value.

Can customers type spaces or dots in the number?

Yes. Spaces, dots and dashes are removed and letters are upper-cased before the number is checked, so “de 123.456.789” is read as DE123456789.

Can I make the VAT number required?

Yes. Tick “The VAT number is required to check out” in the settings. Leave it unticked if you also sell to consumers who do not have a VAT number.

Can I change the field label?

Yes. Set any label you like, for example “VAT ID”, “Tax ID”, “Company VAT number” or a translation for your market.

Where is the VAT number shown after the order is placed?

On the order in wp-admin, with the billing address, and in the order emails. It is also saved on the customer’s account so it is pre-filled next time they check out.

Is the tax-exempt status shown on orders?

Yes. Orders from a tax-exempt customer show a “Tax-exempt customer” badge on the admin order screen, under the billing address.

Does tax exemption work for guest customers?

No. Exemption is stored on the customer’s user account, so the customer needs to be logged in when they check out. Guests can still enter a VAT number.

Does it send data to any external service?

No. Everything happens inside your store. The plugin makes no external requests.

Is it compatible with HPOS?

Yes. The plugin declares compatibility with WooCommerce High-Performance Order Storage and works with both legacy and high-performance order tables.

Is there a Pro version?

Yes. VAT & Tax Exemption Pro for WooCommerce adds live VIES verification, automatic zero-rating for valid numbers, the VIES consultation number stored as evidence, rules by role or member state and reverse-charge wording on orders and invoices. Everything described on this page is included in the free plugin.

What happens to my data if I uninstall?

Deleting the plugin removes its settings and the tax-exempt flags on customer profiles. If VAT & Tax Exemption Pro or the B2B Managers Suite is installed, these are kept because they use them. VAT numbers already saved on orders and customer accounts are always kept, because they are part of your order and customer records.

Screenshots

Changelog

1.0.1

  • Brand: WooManagers is now B2B Managers. The plugin is now called “B2BM Tax and VAT Exempt for WooCommerce”, and the author name and links point to b2bmanagers.com. Your settings and exemptions are unchanged.
  • Fix: removing a customer’s tax exemption now takes effect straight away. Before, a customer who was still logged in kept checking out without tax until their WooCommerce session ended.
  • Fix: on block checkout orders the VAT number was shown twice on the admin order screen and in the order emails. WooCommerce already shows those numbers, so the plugin now only adds the number for classic checkout orders.
  • Fix: Swiss VAT numbers written with their MWST, TVA or IVA suffix are now accepted.
  • Fix: no “translation loaded too early” notice on WordPress 6.7 and later.
  • Tweak: uninstalling keeps your settings and exemptions while VAT & Tax Exemption Pro or the B2B Managers Suite is installed, because they share them.
  • Tweak: the plugin stands down when VAT & Tax Exemption Pro is active, so nothing runs twice.
  • Compatibility: tested with WooCommerce 11.2; declares compatibility with the block-based Cart & Checkout.

1.0.0

  • Initial release.