Zen Cart Logo
Forums / General Questions / Date of Birth

Date of Birth

Locked

Views: 3,366

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
27 Jun 2009, 12:29 AM
#1
adrianlew avatar

adrianlew

New Zenner

Join Date:
May 2005
Posts:
13
Plugin Contributions:
0

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

27 Jun 2009, 12:38 AM
#2
stevesh avatar

stevesh

Black Belt

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

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.

27 Jun 2009, 12:43 AM
#3
adrianlew avatar

adrianlew

New Zenner

Join Date:
May 2005
Posts:
13
Plugin Contributions:
0

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

27 Jun 2009, 1:07 AM
#4
stevesh avatar

stevesh

Black Belt

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

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.

27 Jun 2009, 7:12 AM
#6
adrianlew avatar

adrianlew

New Zenner

Join Date:
May 2005
Posts:
13
Plugin Contributions:
0

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

27 Jun 2009, 11:55 AM
#7
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Date of Birth

adrianlew:

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.

28 Jun 2009, 12:18 AM
#8
adrianlew avatar

adrianlew

New Zenner

Join Date:
May 2005
Posts:
13
Plugin Contributions:
0

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.

28 Jun 2009, 2:55 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ... :smile:

28 Jun 2009, 7:47 PM
#10
adrianlew avatar

adrianlew

New Zenner

Join Date:
May 2005
Posts:
13
Plugin Contributions:
0

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

29 Jun 2009, 1:26 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Date of Birth

This is true the format still remains, even with this setting based on the date format validation ...

29 Jun 2009, 5:09 PM
#12
adrianlew avatar

adrianlew

New Zenner

Join Date:
May 2005
Posts:
13
Plugin Contributions:
0

Re: Date of Birth

any way to disable the validation?

adrian

21 Oct 2009, 2:42 PM
#13
amadeusb avatar

amadeusb

New Zenner

Join Date:
Jan 2009
Posts:
7
Plugin Contributions:
0

Re: Date of Birth

I would simply like to have the birth date to display as a day and month - no year. Is this possible?

Regards,

AmadeusB

24 Jun 2010, 8:35 PM
#14
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Re: Date of Birth

hello! I also have the same issue. I have followed the instructions to leave it blank and enable as true. I would like to know how to change the required format so I can use it as a business number field.