Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2005
    Posts
    3
    Plugin Contributions
    0

    Default User Registration - Birthday Question - skip the year please ?

    Hi...

    I would like to change the birthday requirements to ask for only the Day and Month. We need no age verification, but do want the Day/Month so we can use it for a "Birthday Club" type gift certificate and/or acknowledgment.

    I've searched the forums and have had no luck so far. I'm sure I'm not the first one to ask this, I just haven't found any reference to it.

    Thanks in advance!

    ~Don~
    [FONT=Arial]Laziness is often mistaken for patience.[/FONT]

  2. #2
    Join Date
    Apr 2005
    Posts
    3
    Plugin Contributions
    0

    Default Re: User Registration - Birthday Question - skip the year please ?

    Wow... I guess no one knows. Lot's of views, but no replies.

    Thanks for looking! :)
    ~Don~
    [FONT=Arial]Laziness is often mistaken for patience.[/FONT]

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: User Registration - Birthday Question - skip the year please ?

    This would be a programming job, and there would be a fair bit of it too. Nothing major, just lots of tentacles.

    The main changes would be to the create_account template where the input form would need changing to ask for day and month instead of date; the equivalent module file whose validation of the DOB would need to change and the database write further down for which a year would still be needed because of the database structure, but could be a default year that you use for all customers; the javascript that validates the page would also need to be changed and the language file entries that give an example of the date format and the error messages would need amendment.

    Then with those changes out of the way you would need to track down all other places where the DOB is used. The customer page in admin and the account edit in the catalog are two that spring to mind. And a quick search of a Zen Cart release package suggests other possibilities that may or may not need to be amended.

    I would rate this as needing an intermediate level of Zen Cart and PHP programming skill.
    Kuroi Web Design and Development | Twitter

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

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: User Registration - Birthday Question - skip the year please ?

    I have not had to alter this but it is contained in the DB customers table and the customers_dob record.
    Changing this might not get it all as the files might specify the required fields and if not found break things I would start with the create account files and see where they lead.

    And Kuroi to the rescue while I was looking
    Last edited by kobra; 17 Aug 2007 at 10:46 PM. Reason: Added
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Apr 2005
    Posts
    3
    Plugin Contributions
    0

    Default Re: User Registration - Birthday Question - skip the year please ?

    Wow... Thanks Kuroi & Kobra!

    I really appreciate both of you taking the time to research and answer my question. I'm sorry that your effort will probably be in vain since I'm only a notch or two above "computer idiot" and have zero programming knowledge.

    The basic/beginner Zen Cart stuff is mind boggling enough for right now. :)

    Thanks again!

    Have a great day!
    ~Don~
    [FONT=Arial]Laziness is often mistaken for patience.[/FONT]

 

 

Similar Threads

  1. new user registration failing - need ZC expert help please
    By mark.moby in forum General Questions
    Replies: 5
    Last Post: 22 Jun 2011, 12:45 AM
  2. New User registration question
    By agile4 in forum Basic Configuration
    Replies: 5
    Last Post: 14 Jul 2010, 10:50 AM
  3. Replies: 2
    Last Post: 2 Oct 2009, 04:24 PM
  4. Question about user registration
    By oashiraz in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Jun 2009, 06:42 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