Jump to content

European VAT number module, add customer to a group if valid


Recommended Posts

I am using European VAT number checking module and currently using option: Enable checking of the VAT number with the WebService.


What I need to do is: if VAT number is valid, I want the user to become a member of a specific group. I tried couple of things, but I cannot make it work. If somebody could point me to the right direction, it would be really appreciated.


What I discovered so far:

I can add customer to a group like that I believe: $customer->addGroups(array(2));


I am just struggling with if statement and where to put it at the moment. I am thinking that the code should be put somewhere in Address.php in

public function validateController($htmlentities = true)



If somebody could help me, I would appreciate it.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...