I want to set a customer group as first time user for that I am using an observer so that I can update the customer group just after or on the same time of registration.
Magento2 Event Observer – How to Update Customer Group on Customer Register Success
customer-groupevent-observermagento2
Best Answer
First create your configuration file in
Vendor\Module\etc\frontend\events.xml
:Then create the observer
Vendor\Module\Observer\ChangeCustomerGroupId.php
NB: don't forget to replace
2
with the id of the customer group you want to use.