cancel
Showing results for 
Search instead for 
Did you mean: 

VAT Validation & auto group assignment during registration not working

VAT Validation & auto group assignment during registration not working

I have added the VAT and address fields to my magento website for the create a new customer page.

I have a problem that the auto VAT validation and therefore the auto group assignment is not working ( actually not initiated ) because it seems the VAT field is updating the wrong variable OR the VAT validation is looking in the wrong variable.

When i create a customer and add the VAT number in the field during registration, the customer gets created with:

  • VAT number in the admin customer "Account information" page
  • The default billing and shipping address have no VAT number assigned
  • No VAT validation is performed, not group assignment

When i create a customer without filling in the VAT number during registration, go to edit the address and fill in the VAT number here:

  • NO VAT number in the admin customer "Account information" page
  • VAT number added to the default billing AND shipping address
  • VAT validation performed and customer added to the correct group

So it seems the VAT field during registration is using the Taxvat variable while the VAT validation is using the VatId variable.

Is this a known problem? I have a virtual stock demo site that has this same behaviour so it's not due to any 3rd party modules.

Why is there a difference between the account VAT and address VAT value?

I added the address fields using this module:

https://github.com/karliuka/m2.ShowAddressFields

Any help would be appreciated! Thank you.

1 REPLY 1

Re: VAT Validation & auto group assignment during registration not working

No, not really. I posted this on stackexchange a few weeks ago, without reply.