Forums / General Questions / Requiring Account creators to be older than 18

Requiring Account creators to be older than 18

Locked

Started by pointwise on 29 Jul 2009, 9:57 PM · Views: 720

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
29 Jul 2009, 9:57 PM
#1
pointwise avatar

pointwise

New Zenner

Join Date:
Jun 2009
Posts:
8
Plugin Contributions:
0

Requiring Account creators to be older than 18

Hey,

Is there a way to require that you must be at least 18 or older to create an account on the zencart?

I was looking at /includes/modules/MY_TEMPLATE/create_account.php but I am not sure how to add a if/else statement in there.

And I have another question, can you also limit that accounts can only be from USA? We are not interested in accepting accounts/orders from outside the States.

Thanks everyone

29 Jul 2009, 10:20 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Requiring Account creators to be older than 18

Always worth looking in the tutorials.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

29 Jul 2009, 10:31 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Requiring Account creators to be older than 18

For the second, run this in Admin - Tools - Install SQL Patches:

DELETE from countries WHERE countries_iso_code_3 NOT IN('USA');

That will remove all countries except the US from the Create Account dropdown.

Back up your database first.