Add customer to Joomla User Group in registration form

  • Posts: 7
  • Thank you received: 1
  • Hikashop Business
1 week 4 days ago #319399

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.18

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?
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

Last edit: 1 week 4 days ago by nico1979.

Please Log in or Create an account to join the conversation.

  • Posts: 69451
  • Thank you received: 10401
1 week 4 days ago #319400


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.054 seconds
Powered by Kunena Forum