Zen Cart Logo
Forums / Basic Configuration / How to disable registration and only admin create accounts

How to disable registration and only admin create accounts

Locked

Views: 2,183

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
27 Jul 2008, 2:57 AM
#1
anguz avatar

anguz

New Zenner

Join Date:
Dec 2003
Posts:
56
Plugin Contributions:
1

How to disable registration and only admin create accounts

I want to disable registration of new accounts by users, so that only I, as an administrator, can create the accounts, no one else. How can I accomplish this? Thanks in advance.

27 Jul 2008, 3:17 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to disable registration and only admin create accounts

How do you intend on knowing that a potential customer wants to have an account created?

27 Jul 2008, 3:22 AM
#3
anguz avatar

anguz

New Zenner

Join Date:
Dec 2003
Posts:
56
Plugin Contributions:
1

Re: How to disable registration and only admin create accounts

The thing is that the owner of the store I'm setting up, has his list of wholesale clients that he wants to give access to the store and doesn't want other people that browses the website to get in there, or even try to create an account, at least not for now. So he wants to give the accounts to the people he chooses to, rather than have people create them and wait for authorization.

In the future, there may be a selection of product models for retail, then the registration will be open for everyone and I'll have to figure out how to give privileged access to the wholesalers to view the whole catalog and limit the products the others can see.

27 Jul 2008, 3:39 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to disable registration and only admin create accounts

You will have to alter the login code to remove the linkage to the create account function and the tpl's for these pages to remove the display's for create account.

This way the login link will only disaplay the form for entering the email and pass - NO create account display or code used

This is in several files in /includes/modules and includes/templates/your template/templates

27 Jul 2008, 3:51 AM
#5
anguz avatar

anguz

New Zenner

Join Date:
Dec 2003
Posts:
56
Plugin Contributions:
1

Re: How to disable registration and only admin create accounts

I see, then there's no easy setting in the admin area. Okay. Now, removing the links wouldn't stop someone from just typing the registration URL if he knows it, right? Then I'd need to remove that file as well? And how can I, as an admin, add new accounts?

Thanks for your help.

27 Jul 2008, 3:55 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to disable registration and only admin create accounts

Now, removing the links wouldn't stop someone from just typing the registration URL if he knows it, right?
This is why I stated altering the code and Removing the create account references and displays - displays are the tpl files and the actual form & processing code is the module files

Remove them both and no url entry will access it as it does not exist

Then I'd need to remove that file as well? And how can I, as an admin, add new accounts?
Look in the downloads section for a 3rd party module to allow an admin to create an account

27 Jul 2008, 3:59 AM
#7
anguz avatar

anguz

New Zenner

Join Date:
Dec 2003
Posts:
56
Plugin Contributions:
1

Re: How to disable registration and only admin create accounts

Thank you very much for your help. :)

What do you suggest I do for the future change in registration, where I only some chosen products can be viewed be every customer or visitor and only a chosen group of accounts has access to all the models in the catalog?

27 Jul 2008, 4:12 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to disable registration and only admin create accounts

What do you suggest I do for the future change in registration, where I only some chosen products can be viewed be every customer or visitor and only a chosen group of accounts has access to all the models in the catalog?
Search the forum for similar requests/ideas, get more familiar with Zen Cart, search the downloads for 3rd party modules that either do this or can be a starting place for you to customize for your client

27 Jul 2008, 4:22 AM
#9
anguz avatar

anguz

New Zenner

Join Date:
Dec 2003
Posts:
56
Plugin Contributions:
1

Re: How to disable registration and only admin create accounts

Thank you very much.