Add customer to Joomla User Group in registration form

  • Posts: 27
  • Thank you received: 1
  • Hikashop Business
3 years 11 months ago #319399

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

Last edit: 3 years 11 months ago by nico1979.

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
3 years 11 months ago #319400

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

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

Time to create page: 0.047 seconds
Powered by Kunena Forum