- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2 - Custom Registration Form For A Specific Customer Group
Yes, it will call whenever the registration happens. Doesn't matter in which page it is happening as it is a backend event. So, please add validations to check whether group id is there or not. Allow assigning the group id only if the param exists.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2 - Custom Registration Form For A Specific Customer Group
Marvellous! I'll give it a go and let you know how I get on. Thanks for your clear explanations.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2 - Custom Registration Form For A Specific Customer Group
Glad that you can make some progress. Please reach us if you have any trouble.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2 - Custom Registration Form For A Specific Customer Group
Submitting the form works however the customer group seems to stay as the default. Is there a way to see if my controller is being fired?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2 - Custom Registration Form For A Specific Customer Group
After clearing the caches I get the following:
When submitting the default registration form I see:
Parse error: syntax error, unexpected 'Namespace' (T_NAMESPACE), expecting identifier (T_STRING) in /app/code/Inco/CustomerRegistrationGroup/Observer/SaveCustomerGroupId.php on line 3
If I remove the line 'namespace Module\Namespace\Observer;' I then get:
Fatal error: Cannot declare class SaveCustomerGroupId, because the name is already in use in /app/code/Inco/CustomerRegistrationGroup/Observer/SaveCustomerGroupId.php on line 7
If I submit the new form it redirects to the default form. Occasionally it shows the same errors as above.
- « Previous
-
- 1
- 2
- Next »