- Posts: 75
- Thank you received: 6
Add customer to Joomla User Group in registration form
6 years 4 months ago - 6 years 4 months ago #319399
by nico1979
Add customer to Joomla User Group in registration form was created by nico1979
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.18
Hi,
when a customer makes a registration he goes to "Registered" Joomla user group.
Is it possible to add a checkbox in registration form that add the customer to another additional User Group?
Ex.
As admin I create the user group Registered > VIP
As user, in registration form, i found a check box. If I flag it my account is listed in Registered and Registered > VIP
Thank you
Nicolò
-- Joomla version -- : 3.9.18
Hi,
when a customer makes a registration he goes to "Registered" Joomla user group.
Is it possible to add a checkbox in registration form that add the customer to another additional User Group?
Ex.
As admin I create the user group Registered > VIP
As user, in registration form, i found a check box. If I flag it my account is listed in Registered and Registered > VIP
Thank you
Nicolò
Last edit: 6 years 4 months ago by nico1979.
Please Log in or Create an account to join the conversation.
6 years 4 months ago #319400
by nicolas
Replied by nicolas on topic Add customer to Joomla User Group in registration form
Hi,
You can try to do this:
First, create a custom field of the table "user" and of the type "checkbox" with one value via the menu Display>Custom fields so that customers can get that checkbox on the user registration form.
Then, create a mass action on the trigger "after a user is created" with a filter on that custom field column being equal to the value you entered in the custom field, and an action to add a user group.
That way, the mass action will trigger automatically after the registration, check the value of the custom user field and add the group to the user if it corresponds to the value
You can try to do this:
First, create a custom field of the table "user" and of the type "checkbox" with one value via the menu Display>Custom fields so that customers can get that checkbox on the user registration form.
Then, create a mass action on the trigger "after a user is created" with a filter on that custom field column being equal to the value you entered in the custom field, and an action to add a user group.
That way, the mass action will trigger automatically after the registration, check the value of the custom user field and add the group to the user if it corresponds to the value
Please Log in or Create an account to join the conversation.
Time to create page: 0.165 seconds