Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Help - is there a way to add customers to a member group at sign up? Rate Topic   - - - - -


Posted 30 April 2013 - 03:57 PM #1

is there a way to automatically add customers to a member group when they sign up?
thanks in advance


Posted 02 May 2013 - 07:06 PM #2

Figured it out. You have to modify the fn.users.php file in the core directory. I suggest backing up the file before making this modification. All you have to do is find the following code:

$user_id = db_query("INSERT INTO ?:users ?e" , $user_data);

and add this below it:

db_query( "INSERT INTO ?:usergroup_links( user_id, usergroup_id, status ) VALUES( $user_id, 5, 'A' )" );

5 is the id for the "members" group and A makes it active right away

I just thought this might benefit someone else in a time of need. Thanks for all the views.

  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1278 posts

Posted 02 May 2013 - 11:17 PM #3

can be done from addon and cs-cart update will work in the future
i ask you here: http://forum.cs-cart...__fromsearch__1