Required Fields on Registration Form?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 12 ans
Hello All,
Is there a way to make a field required on the registration form?  I want to make company name required.  Also, is it difficult to extend the fields in the registration form?

Thanks for the help!
Il y a 12 ans
madv1457 wrote:
Is there a way to make a field required on the registration form?

1. Open \Presentation\Nop.Web\Validators\Customer\RegisterValidator.cs file
2. Add the following line to it: RuleFor(x => x.Company).NotEmpty().WithMessage("Company is required");

madv1457 wrote:
Also, is it difficult to extend the fields in the registration form?

No. Have a look at changeset a179ce882d6b (will be included in v2.20)
Il y a 12 ans
Thanks Andrei, so it looks like I need to be running the source for this to make the change correct?
Il y a 12 ans
Right
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.