If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Need Age Verification before entering page

Need Age Verification before entering page

Locked

Started by chachab on 23 Apr 2008, 9:29 PM · Views: 26,756

Results 21 to 23 of 23
This thread is locked. New replies are disabled.
27 May 2010, 9:54 AM
#21
celticsweb avatar

celticsweb

New Zenner

Join Date:
May 2010
Posts:
8
Plugin Contributions:
0

Post #21 by celticsweb

Okay ... Sorry to bother you again .... The script that worked for me was:

<script language="javascript">

var agePrompt=prompt("What is your age?");

if (agePrompt>=18) alert('Welcome!')
else {
alert('Sorry! Come back in a few years!')
document.location="http://disney.go.com";

}
</script>

Celtic

27 May 2010, 10:27 AM
#22
celticsweb avatar

celticsweb

New Zenner

Join Date:
May 2010
Posts:
8
Plugin Contributions:
0

Post #22 by celticsweb

Okay, I now can't seem to get the script to stop asking for the age verification.... :huh::( ... time for bed ....

Goodnight,

Celtic

27 May 2010, 9:07 PM
#23
celticsweb avatar

celticsweb

New Zenner

Join Date:
May 2010
Posts:
8
Plugin Contributions:
0

Post #23 by celticsweb

Is there a setting I have to change for cookies so the verification only asks once? Do I change something in Configuration > Sessions in the zen cart. Please can anyone help?