0

I have a question about how to make the Tax / VAT Number field validate depending on the selected country in the the registration page and the configuration page.

Is there a way to do it in the admin configuration or should it be done with javascript?

Greetings and have a good day!

Angel

New contributor
Angel Vil is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

Please check this documentation, I think this is doing already what you need.


LE: This refers only to the part where the taxes are adjusted based on the customer VAT ID. for the validation of the customer input in the VAT ID field, you will have to add your own validation.

4
  • Hi @diana-botean. Thank you very much for answering. I have tried to follow those steps as indicated. But when I try to edit the Tax / VAT Number field in the preferences that the client has, it doesn't validate it and I can put a random value. Do you think that for this case I would need javascript? – Angel Vil Feb 22 at 14:04
  • yes, i think that you will need that in order to validate that the VAT number is correct. – Diana Botean Feb 22 at 14:19
  • Ok, I'll get to work! Thank you very much Diana!! – Angel Vil Feb 22 at 14:30
  • you're welcome! i suggest you mark the answer as solved if you found the answer you were looking for so others can see it too. – Diana Botean Feb 22 at 14:34

Your Answer

Angel Vil is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.