Greetings SEBLODers!
I have a user registration workflow that requires assigning a user to a specific User Group after they have completed an extended user profile which is initially incomplete upon registration and subscription. To do this, I have purchased the Code Pack plugin and intend to use the Before Store action to set the desired User Group based on other information provided in the user profile. My initial attempts have been unsuccessful, so I've configured a simple test to set the User Group to a specific value until I know it's working, then I will add additional code to evaluate and determine which group to assign.
Problem is, even my simple test isn't working, so I assume that I'm doing something wrong. I've searched the forum thoroughly and followed instructions I found in another post here, but without success. Hopefully someone here will recognize my error and lead me toward a solution.
I've configured the field as follows:
Type: BeforeStore
Mode: Free
Code: $config['storages']['#__users']['groups']='14';
'14' is the group_id of a group I want to assign as a simple test to verify that I'm configuring the plugin correctly and that it works. If I can get this simple test working, I'm confident I can extend the code to handle the evaluation of other fields to determine the correct group to assign.
Thanks for any help!
Denver