Before your customer can access a private store, you must add assign their user accounts to be members of the group that corresponds to the private store. wp2print offers 4 different methods for adding user accounts to a group.
You can add members to the private store manually by creating a user for them and checking the box by their name in the group settings page:
You can also add customers to the private store automatically with the Autoregister domain name option. If you configure a domain name such as in the Autoregister domain name field, then any new user that registers an account with an email address using this domain name will automatically be added as a member of the private store.
For example, if mydomain.com is registered in the Autoregister domain name field, then a new user registering an account using the email joe@mydomain.com, would be automatically added as a member of the private store.
The developers Codection have create a plugin called "Import users from CSV with meta". Using this plugin, it is simple to import a CSV file containing a list of users. The import process will automatically create a new account for each row in the CSV file and and each user will be assigned to the group selected.
The CSV file should have 3 columns minimum with the following labels in the first 3 column positions:
username
email
password
The CSV file can optionally contain these columns:
user_nicename
display_name
nickname
first_name
last_name
The screenshot below displays the configuration page for the import process. At the bottom of this page is a field that allows selection of the group to which all the users imported will be assigned:
It is possible to create a registration page that is dedicated to a single group. Any new accounts created with the dedicated registration page will automatically be placed into the group matching the login code. For security reasons, it is safest to place this dedicated registration page into the intranet of the group.
There are 2 fields in this FORM that need to be modified:
Here is the HTML for that should be included in the dedicated private store registration page:
<form class="external-login-form" action="[URL of site]" method="POST">
<input name="external_register" type="hidden" value="true" />
<input name="register_code" type="hidden" value="[Login code for group]" />
<table>
<tbody>
<tr>
<td>First Name:</td>
<td><input style="width: 470px;" name="register_fname" type="text" value="" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input style="width: 470px;" name="register_lname" type="text" value="" /></td>
</tr>
<tr>
<td>Email:</td>
<td><input style="width: 470px;" name="register_email" type="text" value="" /></td>
</tr>
<tr>
<td>Username:</td>
<td><input style="width: 470px;" name="register_username" type="text" value="" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input style="width: 470px;" name="register_password" type="password" value="" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Submit" /></td>
</tr>
</tbody>
</table>
</form>
Here is the HTML for that should be included in the dedicated private store login page:
<form class="external-login-form" action="[URL of site]" method="POST">
<input name="external_login" type="hidden" value="true" />
<input name="login_code" type="hidden" value="[Login code for group]" />
<table>
<tbody>
<tr>
<td>Username:</td>
<td><input style="width: 470px;" name="login_username" type="text" value="" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input style="width: 470px;" name="login_password" type="password" value="" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Submit" /></td>
</tr>
</tbody>
</table>
</form>