Add user to certain user group during registration

  • Posts: 137
  • Thank you received: 2
13 years 2 weeks ago #27539

Hi!

For statistical reasons we would like to group our users in e.g. 3 groups. Is it possible to add a parameter to the registration URL and therefore the user will be added to a certain user group during the registration or a custom field in the profile will be set?

Thanks in advance

Best regards

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
13 years 2 weeks ago #27540

Hi,

That's not possible. The default user group can be changed in the user configuration of joomla but you can have different user groups based on parameters in the URL. Not unless you modify the registration view to add an hiddne input field for that parameter and create a user plugin to change the user group of new users based on that hidden field value.

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

  • Posts: 137
  • Thank you received: 2
13 years 1 week ago #27572

And if we use a hidden custom field of HikaShop instead of user groups? The same problem?

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
13 years 1 week ago #27585

I don't see what you can do with custom fields which would help...The group to set in the user is retrieved from the joomla option. The only solution is to make a user plugin like explained above.

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

  • Posts: 30
  • Thank you received: 0
8 years 6 months ago #238682

Hikashop Starter 2.6.2
Hikamarket 1.6.7
Joomla 3.5.1
PHP 5.4.38

Similar problem here, I'm using Hikamarket and I have vendors and regular clients. Let's consider each vendor has its own joomla user. There are Hikashop-powered registration pages for Vendor and regular clients, is there a way to assign vendors to a group and clients to another? One of the groups can be the regular 'Registered' group.

Last edit: 8 years 6 months ago by zaratustra27. Reason: Added info

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
8 years 6 months ago #238686

That's not really the same problem.
In your case, I would recommend to look at this plugin:
extensions.4u2.co.il/hikasop-user-group-ftw
It allows you to assign a customer to a user group based on the value of a custom field.

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

  • Posts: 30
  • Thank you received: 0
8 years 6 months ago #238791

Thanks, but that plugin requires HS Essential or Business, as stated before, I use Starter Edition

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

  • Posts: 82723
  • Thank you received: 13338
  • MODERATOR
8 years 6 months ago #238814

Hi,

Well, I don't know of another solution. You can potentially develop a plugin to add that yourself. But it would be cheaper to use what's already there unless you're a developer yourself and have the time.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum