Registration With Group Selector
Let's create a simple registration page with the customer group selector.
Please see a live example here: online demo
#
Create registration formsCreate forms for each account type.
Configure registration parameters of each form.
tip
You can quickly create forms by importing them form the sample forms folder from the plugin zip archive or from the Installation with Composer documentation page.
#
Create new CMS pageCreate new CMS page from the Content > Pages admin section.
warning
Turn off the visual editor!
Insert the following code in the Content area;
form_id="1" - ID of the web-form for Individual accounts.
form_id="2" - ID of the web-form for Company accounts.
#
Rewrite default registration pageReplace the default registration page with the custom CMS page from the Marketing > URL Rewrites admin section.
Create new rule by clicking on the Add URL Rewrite button.
Specify parameters:
Request Path = customer/account/create
Target Path = /Your CMS Page url key/
- Save the rule.