Zen Cart Logo
Forums / General Questions / Deny registration

Deny registration

Locked

Views: 1,836

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
5 Nov 2006, 11:41 PM
#1
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Deny registration

I thought this would be easy but I can't figure it out.

I want to deny registration on the front end. Registration will take place on the back end only.

How do I do this?

Thanks,

scottb

6 Nov 2006, 7:11 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Deny registration

If I got what you want correct look in the admin > configuration > customer details > Customer Approval Status - Authorization Pending > and set to one of the selections available. You then have the ability to approve/disapprove registration

6 Nov 2006, 8:05 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Deny registration

This appears to be related to your prior post:
http://www.zen-cart.com/forum/showthread.php?t=50465

A number of steps are involved, including:

a. in the tpl_login_default.php, remove the call to the create_account module. (the section related to New Customers)

b. rename the /includes/modules/pages/create_account folder to create_account_OFF
this will cause page_not_found to trigger if someone mistakenly attempts to access the create_account page

c. You may have to alter the zen_customer_greeting() function if you plan to use the greeting feature, so that it doesn't offer a link to the create_account page. However, it's likely easier to simply remove the "create an account" text from the TEXT_GREETING_GUEST definition in english.php

d. the on_load_main.js file in the includes/modules/pages/login will have to be adjusted to not check the create_account form contents

6 Nov 2006, 1:47 PM
#4
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Deny registration

Thanks, I'll give this a try.

6 Nov 2006, 4:26 PM
#5
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Deny registration

That did just what I wanted. Thanks.

Is there a back-end method to add customers except exporting to the database?

6 Nov 2006, 9:56 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Deny registration

scottb:

Is there a back-end method to add customers except exporting to the database?

Not at the present time.

With some programming, you could do things a bit differently and deny access to the create_account module for all IP addresses besides yours, and then use the actual create-account screen to manually register the user, assuming you know the password they used to create their membership.

Otherwise, just insert related records into the 3 tables:

  • customers (related to address_book by customers_default_address_id to address_id)
  • address_book (related by customers_id)
  • customers_info (related by customers_id, and all other fields are optional)

Be sure to use the zen_encrypt_password() function to convert password from clear-text to the proper encrypted format for Zen Cart to use when the customer logs in.

7 Nov 2006, 12:00 AM
#7
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Deny registration

Thanks for the DB info.

Where can I find where the values are for the address book so I can convert the values for:

entry_country_id                      
entry_zone_id

Are these necessary for proper functioning? We market in the US only.

Everything else seems pretty straight forward.

I will have to look at the zen_encrypt_password() function to see what issues there might be.

7 Nov 2006, 12:02 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Deny registration

countries and zones tables, respectively

9 Nov 2006, 3:29 PM
#9
scottb avatar

scottb

Zen Follower

Join Date:
Mar 2006
Location:
St. Louis area
Posts:
205
Plugin Contributions:
0

Re: Deny registration

Not at the present time.

With some programming, you could do things a bit differently and deny access to the create_account module for all IP addresses besides yours, and then use the actual create-account screen to manually register the user, assuming you know the password they used to create their membership.

Where would start to do this as it is needed in another store?

No public registration.