Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Date of Birth NOT working!


jolicatellas

Recommended Posts

I have changed my date format as per the following instructions but I'm still getting the error message: "Your Date of Birth must be in this format: DD/MM/YYYY (eg 21/05/1970)." Even when I put the date in exactly as shown the error message still comes up.

 

16. … Change the date format to DD/MM/YYYY?
Go to catalog/includes/languages/English.php and around line 21
CODE

define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()

change it to
CODE

define('DATE_FORMAT_SHORT', '%d/%m/%Y');  // this is used for strftime()


Then around line 23 find this
CODE
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
and change it to
CODE
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()


You also need to make the same changes in catalog/ADMIN/includes/languages/English.php

 

Also since changing the date formats I'm getting this error message as well:

" Error Please select a state from the States pull down menu. "

Needless to say... there are not states listed in the pull down menu and no matter what I type in the error message remains.

 

Anyone know what I'm missing??

 

Jols

Link to comment
Share on other sites

Need more on what u doing with what & where

 

These may help anyway

 

 

Date of Birth PullDown http://addons.oscommerce.com/info/3778

 

UK DATES

UK-Based osCommerce 2.2 http://addons.oscommerce.com/info/2816

& Pull down UK county list http://addons.oscommerce.com/info/5889

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

thanks for your replies.

 

"Need more on what u doing with what & where"

 

I'm trying to create a customer account & have the date of birth set to Oz. State/Province was working fine til I played around with the dates...

Link to comment
Share on other sites

thats what u want, but done what with what?

#

 

look at the contribs I gave, changes required in many arias

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...