This PR will update this plugin to store all validations into the database.
If a VIES call was successful it will store a new record into the database based on the address id, country id and vat number.
These records will contain whether the VAT number is valid, when it was checked and if it is invalid, when it was last checked as valid.
Whether the customer can buy without TAX is after this PR not depending on the user group but on the VAT validation stored in the database based on the address.
At the point of writing this I still kept the user groups active for administration purposes.
This PR will update this plugin to store all validations into the database. If a VIES call was successful it will store a new record into the database based on the address id, country id and vat number. These records will contain whether the VAT number is valid, when it was checked and if it is invalid, when it was last checked as valid. Whether the customer can buy without TAX is after this PR not depending on the user group but on the VAT validation stored in the database based on the address.
At the point of writing this I still kept the user groups active for administration purposes.
TODO: