Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Date of Birth


Yari

Recommended Posts

Is it possible to keep the registration field Date of Birth but remove the check of the length of it ? Different countiries have different leghth of the Date of Birth.

 

I want to keep that field but I want to remove the check of the lenght the customers write in the field, is this possible ?

Link to comment
Share on other sites

Is it possible to keep the registration field Date of Birth but remove the check of the length of it ? Different countiries have different leghth of the Date of Birth.

 

I want to keep that field but I want to remove the check of the lenght the customers write in the field, is this possible ?

 

Have you tried a length that does not work? I see a mim length being set in the admin but no max so it is probably set in the database. If you want to allow shorter than 10 just adjust it in your admin under Minimum Values. If you need something longer than what is allowed then just go to your database using phpmyadmin and change the field length.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

No it didn't work :( There is in english.php and other languages this

 

 ////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_pnummer_raw($date, $reverse = false) {
return substr($date, 0, 4) .  substr($date, 4, 2) . substr($date, 6, 2) . substr($date, 8, 5);
}

 

and other files that check the date of birth, is there a way to remove that check ?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...