I wish to charge zero tax if a customer has a valid VAT Number
.
I can add a VAT Number
to an address and I receive the message " Your VAT-ID was successfully validated. You will not be charged tax."
. But tax is still added to the cart.
I have also used Configuration > Customers > Customer Configuration > Create New Account Options > Enable Automatic Assignment to Customer Group
which allows me to assign a customer to a different Customer Group if their VAT Number
is verified. But from this, I can't find a combination of settings to achieve zero tax for that group and 20% tax for the General group.
I'm on Magento 2.1.5. Ideas welcome!
Best Answer
The trick is:
HOWEVER, it didn't work for me, and here's why...
Long-ish story but it all boiled down to an "incorrect" VAT Number in Configuration > General > General > Store Information > VAT Number.
The client had provided this in the format NLXXXXXXXXXXXX so this is what was stored. In my case this was what was happening:
quote
table record to the General group (note thecustomer_entity
Customer Group is not changed)One odd thing - and an annoying red herring - is that the store's VAT Number is NOT sent to the lookup service when I update addresses in My Address Book.
I guess the store VAT Number must be optional with the lookup service... hence I got a positive response and hence, "Your VAT-ID was successfully validated. You will not be charged tax".
In a nutshell, make sure your store's VAT Number does not include a country prefix. When you enter it in Configuration > General > General > Store Information > VAT Number, there is a handy "Validate VAT Number" button that clearly wasn't clicked in my case!