Validate Vat Number

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi All,

I'm trying to make validation of Vat number on the Customer Info page.

I create a action public JsonResult ValidateVat(string vatNumber); on CustomerController that uses a Verify.cs with the validation routine in Nop.Web.Models.Customer folder.

Place a [Remote("ValidateVat", "Customer")] over the property VatNumber{} in CustomerInfoModel

Build and replace the Nop.Web.exe in the nopCommerce directory.

The same works perfect in one of my plugins but here nothing happens.

What can be missing?

Best Regards.
6 years ago
I need to explain that I do not want validate the Vat number, I'm using the field for two numbers: CPF and CNPJ that are the Brazilian form of EIN of IRS in the USA.
6 years ago
Ok I solve it,

I use the CustomerInfoValidator and the Info is not saved till the CNPJ or CPF are valids.
Only the field is not validated during the data entering.

But I will be waiting for a direction on my initial post.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.