Plugin Author
Diego
(@daigo75)
Since the VAT number is validated correctly on another site with the EU VAT Assistant, the cause of the failed validation is not necessarily our plugin. It’s possible that the site where the validation fails can’t connect to the remote service, and this prevents the validation from working. This is something that your hosting provider can check.
If the site can connect to the VAT validation site, then there could be a conflict preventing the validation from running as it should. In such case, you could try the usual troubleshooting process, disabling other plugins one by one, as well as switching to a basic theme. If the issue disappears when a plugin is disabled, then it’s possible that such plugin causes a conflict.
For more information, please refer to this post, which lists the possible causes of a failed validation and suggested troubleshooting actions: https://wordpress.org/support/topic/faq-vat-is-not-deducted-when-entering-a-valid-vat-number/
Plugin Author
Diego
(@daigo75)
In addition to the above, the message saying “You must enter a valid EU VAT number to complete the purchase” is displayed when the VAT number is set to “required”, and it’s either not entered, or not validated.
When the Debug Mode is enabled, the EU VAT Assistant logs the result of the attempted validations. You can enable that flag and find the location of the log file in WooCommerce > EU VAT Assistant > Support. You can then retry the validation, open the log file, and you should see a message indicating why the number was not validated.
Good morning,
Thank you for your answer
I found the problem and It’s not linked to your plugin but the change of the ‘billing_country’ field in Woocommerce which removes the basic select and so impact the validation of your plugin.
Thank you again for your help
-
This reply was modified 8 years, 7 months ago by
Loïc Parent.