I want to activate a particular user-group automatically, so if a user sign up for the group, it’s immediately activated.
I search the forum and i found the modification to do this, but its written for CS-Cart v1.3.x :
[quote name=‘dab’]In order to automatically activate only your wholesale membership accounts you should replace the following part of code in the “fn_users.php” file located in the “core” directory of your CS-cart installation:
<br />
if (AREA == 'C') {<br />
$_data['membership_status'] = 'P';<br />
}<br />
```<br />
with this one:<br />
```php
<br />
if (AREA == 'C') {<br />
if ($_data['membership_id'] == 'YOUR_WHOLESALE_MEMBERSHIP_ID') {<br />
$_data['membership_status'] = 'A'; <br />
} else {<br />
$_data['membership_status'] = 'P';<br />
}<br />
}<br />
```<br />
where "YOUR_WHOLESALE_MEMBERSHIP_ID" is the id of your wholesale membership.<br />
I hope that will help.[/QUOTE]<br />
<br />
<br />
Does anybody know how tho do this in CS-Cart v. 2.0?<br />
<br />
Thank you in advance:cool: !
[quote name=‘dennis’]Thank you for your post. This option is not selected, but all new accounts still “awaiting approval”.
Is this a CS-Cart bug or can it be solved by another option like my first post?[/QUOTE]
Look in the screenshot he posted above. The option right under the one he mentions says “Administrator must activate new user accounts.” Do not check this option if you want them automatically activated. This will make all accounts activated though. I don’t believe there is a method to only activate certain groups automatically and not others.
[quote name=‘adodric’]Look in the screenshot he posted above. The option right under the one he mentions says “Administrator must activate new user accounts.” Do not check this option if you want them automatically activated. This will make all accounts activated though. I don’t believe there is a method to only activate certain groups automatically and not others.[/QUOTE]
Would be nice to specify on each user group if it requires activation. It would also be nice if you could select one user group as the default. This is on my list of things to add to the Ideas forum once I have some points again.
The second option “Administrator must activate new accounts” is not regarding the user groups… That’s for the customers account activation.
I think you guys don’t understand our point… Users can sign up for a user group but an administrator has to activate them. We are looking for a solution like the one in my first post.
The second option “Administrator must activate new accounts” is not regarding the user groups… That’s for the customers account activation.
I think you guys don’t understand our point… Users can sign up for a user group but an administrator has to activate them. We are looking for a solution like the one in my first post.
Does someone know a solution for this?
Thank you![/QUOTE]
In this case try to replace the following part of code:
Having the same problem. I inserted the code mentioned above in the appropriate spot, but when users are created they are still not automatically assigned to the designated usergroup. Any ideas?