Public Ticket #2884195

Change User Role On register

Closed
Comments
2 Tickets 1
Elix started the conversation 5 years ago on September 30, 2021 at 10:29am

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.

Sign In