Thread: Date of Birth

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    May 2005
    Posts
    13
    Plugin Contributions
    0

    Default Date of Birth

    How can I modify the code so it does not check the format on the birthday field.
    I want to use it for some other number so I don't need to be exactly like 6/06/2009, rather only a number 123456

    thank you

    Adrian

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Date of Birth

    Could you provide a link to your site?

    In almost all cases, the DOB field isn't necessary, and can be turned off in admin.

  3. #3
    Join Date
    May 2005
    Posts
    13
    Plugin Contributions
    0

    Default Re: Date of Birth

    I would like still to use it, but for something else.
    Like an association number, since each of my members uses association numbers.

    thanks

    Adrian

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Date of Birth

    THis is also a great example of asking a question different from what you want to know.

    It looks like you really don't want to re-program the DOB field, but want a number associated with each customer.

    Try describing exactly what you want to do, and I'd guess someone here will have a suggestion for you.

  5. #5
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Date of Birth

    http://www.zen-cart.com/index.php?ma...roducts_id=587
    This module will help you add additional custom fields to the account form.

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  6. #6
    Join Date
    May 2005
    Posts
    13
    Plugin Contributions
    0

    Default Re: Date of Birth

    thank you for the modul, I will try it out.

    To describe the date questions. I want to eliminate the script checking the format of the entry x/xx/xxxx . Since I want to user to be able to type numbers or letters.
    The date fields is in 90% not usefull anyways.

    thanks

    Adrian

  7. #7
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Date of Birth

    Quote Originally Posted by adrianlew View Post
    thank you for the modul, I will try it out.

    To describe the date questions. I want to eliminate the script checking the format of the entry x/xx/xxxx . Since I want to user to be able to type numbers or letters.
    The date fields is in 90% not usefull anyways.

    thanks

    Adrian
    Then disable the DOB field completely from admin. Now, add your own custom field using the mod provided in post # 5 above.

  8. #8
    Join Date
    May 2005
    Posts
    13
    Plugin Contributions
    0

    Default Re: Date of Birth

    Is it not easier to just disable the script checking the specific date entered?
    I read that custom modules can cause problems.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Date of Birth

    To enable the customer to add the date of birth as optional, you just need to configure the DOB correctly ...

    Go to the Configuration ... Customer Details ... and set to: true
    Date of Birth
    Display date of birth field during account creation and with account information
    NOTE: Set Minimum Value Date of Birth to blank for not required
    Set Minimum Value Date of Birth > 0 to require
    Now go the the Configuration ... Minimum Values ... and set to blank, not 0 but blank as in nothing in the input box, as instructed:
    Date of Birth
    Minimum length of date of birth
    Now the date of birth will display, but is not required ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    May 2005
    Posts
    13
    Plugin Contributions
    0

    Default Re: Date of Birth

    thanks :)

    but will it still need if entered to be the specific xx/xx/xxxxx format?
    I would like this field do be used as alpha numeric, not only as strictly date type.


    Adrian

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Date of Birth
    By adb34 in forum General Questions
    Replies: 0
    Last Post: 20 Mar 2014, 07:01 PM
  2. Replies: 2
    Last Post: 8 Jan 2012, 12:31 AM
  3. date of birth
    By ronron in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Mar 2009, 03:47 PM
  4. Date of Birth
    By bonni in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Nov 2006, 09:46 PM

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