Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2014
    Posts
    13
    Plugin Contributions
    0

    Default Setting minimum age to 18 on sign up

    Hey everyone,
    I'm trying to make it so when customers sign up they have to enter their DoB and if they aren't over 18 it pops up saying "Sorry you need to be 18 to buy our products".

    In "Customer Details" I have set "date of birth" to True and on the "Minimum Values" page I have set "Date Of Birth" to >18.

    I have also followed what it says on the following link but it still doesn't work. https://www.zen-cart.com/content.php...people-over-18

    If some signs up it allows them no matter what age they put. Any ideas what I'm doing wrong

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Setting minimum age to 18 on sign up

    Quote Originally Posted by TheBlueDragon View Post
    Hey everyone,I'm trying to make it so when customers sign up they have to enter their DoB and if they aren't over 18 it pops up saying "Sorry you need to be 18 to buy our products".In "Customer Details" I have set "date of birth" to True and on the "Minimum Values" page I have set "Date Of Birth" to >18.I have also followed what it says on the following link but it still doesn't work. https://www.zen-cart.com/content.php...people-over-18If some signs up it allows them no matter what age they put. Any ideas what I'm doing wrong
    Because of the lack of detail provided, I anticipate the line of questioning to be slow and tedious, but here goes:In what specific file (including path from the cart's root) did you make the edits suggested by the above FAQ? Is this file an override file for includes/modules/create_account.php? Is there an override file for your active template of that main file?To explain a little, unless you have specifically used the dob minimum constant in the code of the above link differently than provided from what appears to be in the section of code for create_account is a check to see if anything is entered, not a date of any specific length or value but if a date is entered with slashes there should be no more than 2 slashes. Further if such a mod is/was used what was the specific text entered in the minimum values field? Was it '>18' or was it simply '18'?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2010
    Posts
    48
    Plugin Contributions
    1

    Default Re: Setting minimum age to 18 on sign up

    the dob minimum values referrers to the string length entered not the age of your customer
    see my solution at
    https://www.zen-cart.com/showthread....80#post1314280

 

 

Similar Threads

  1. v151 Customers minimum age
    By ajmn in forum Managing Customers and Orders
    Replies: 2
    Last Post: 11 Jul 2016, 11:45 PM
  2. Minimum age for customer
    By GerryTheMole in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 5 Jul 2009, 08:47 AM
  3. Adding products as a %age of total order with minimum value
    By gaekwad in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 9 Jul 2007, 10:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg