Comments 1Elix started the conversationSeptember 30, 2021 at 10:29amHi , I just wanted to set a different User Role when someone register with a agent ID. How could I do this.I don't know where to check the condition and apply the change. (Programmatically)Some code like that : on registration form or just after if(agent_id === ' empty '){ user set_role(customer)}else {user set_role(client_vip)}Please help me out on this , it's the only things left for me to do. WebWizards replied privately 1Elix repliedSeptember 30, 2021 at 11:50amThank you so much , it working very well , you resolve this so fast . Thanks again 1 Like 1,906WebWizards repliedSeptember 30, 2021 at 2:09pmGlad to hear that worked! Have a great day ahead, Sign in to reply ...
Hi , I just wanted to set a different User Role when someone register with a agent ID. How could I do this.
I don't know where to check the condition and apply the change. (Programmatically)
Some code like that :
on registration form or just after
if(agent_id === ' empty '){
user set_role(customer)
}else {
user set_role(client_vip)
}
Please help me out on this , it's the only things left for me to do.
Thank you so much , it working very well , you resolve this so fast .
Thanks again
Glad to hear that worked!
Have a great day ahead,