on 2019 Apr 03 1:25 PM
For training purpose I'm trying to add a custom field (phoneNumber) to the registration page of the B2C. After doing the tutorial trails and going through the several related questions in this community I'm still having difficulties understandting the logic behind this.
I extended the RegisterData bean in facades and Customer type in core to add a phoneNumber attribute and this works as expected. But, I'm confused about the next steps for this customization. I guess I have to create a CustomRegisterForm to add the phoneNumber field and create a CustomLoginPageController to implement the method that transfer the data from CustomRegisterForm to RegisterData using custom populators for this.
Any help would be really appreciated! Thanks
Request clarification before answering.
Great job 😄
You will need a form and validator for this form.
Go to the storefront and to the registration and login page, put your validator and form instead of the registerForm. Make sure you save the number in the database as well
you can check this old answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.