The VAT field is not removed when a valid VAT number is entered, it always stays visible. When the number is valid, the EU VAT Assistant sets an exemption flag against the customer session, then lets WooCommerce handle it. In a normal scenario, if the VAT number is valid and the customer is not in the same country as the shop, then WooCommerce removes the VAT from the total.
This is tested and verified with WooCommerce up to v4.0.1 and the EU VAT Assistant 1.13.6.200415. The result of the validation can be easily verified by looking into the log file, where you should see an entry saying VAT exemption check completed.
, followed by the exemption status true
(exempt) or false
(not exempt) and the result of the VIES query.
If the exemption is set, but the VAT is still added at checkout, it means that something is either removing the exemption, or it’s causing the the VAT to be added back to the order after the EU VAT Assistant sets the exemption (i.e. there isn’t a bug in the validation or the exemption logic, if that’s was the concern).
In such case, it would be a matter of finding out what is bypassing the exemption, or adding the VAT back. The first step would be to check that the EU VAT Assistant is up to date (for example, the site at https://www.wp-hide.com/ is running an two years version of the plugin), then that there is no conflict caused by other plugins, or custom code from the theme. It’s also important to review the settings. For example, if there is any automatic system to keep the taxes up to date, such service could be forcing the VAT at checkout, even after the EU VAT Assistant sets the exemption.
Unfortunately, it’s not possible to be more precise, as the causes of the issue could be many. Going by exclusion, step-by-step would be the easiest way to isolate the cause of the issue. Of course, if you’re covered by one of our support plans, we can also perform such investigation for you.