Hi
I'm using OScommerce 2.2 on a SUSE9.1 Linux machine
when a new customer sign up they have to enter there Date Of Birth but its in amercan i.e mm/dd/yyyy this i wish to change to dd/mm/yyyy
Can anybody help
Many Thanks
EnergeeUK
This is a discussion on Date proble in signup within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi I'm using OScommerce 2.2 on a SUSE9.1 Linux machine when a new customer sign up they have to enter ...
Hi
I'm using OScommerce 2.2 on a SUSE9.1 Linux machine
when a new customer sign up they have to enter there Date Of Birth but its in amercan i.e mm/dd/yyyy this i wish to change to dd/mm/yyyy
Can anybody help
Many Thanks
EnergeeUK
catalog/create_account.php,
around line # 79
this is what u need to change, play with strings n u shall have your desired resultsCode:if (ACCOUNT_DOB == 'true') { if (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false) { $error = true; $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR); } }![]()
Thanks for that but i'm still non the wiser. lol
I'm new to this PHP stuff
Also when a customer goes to change there data the date of birth comes up sayin tue/jan/1967 if you just click continue it errors
any help please
I am getting the same problem despite changing the code in english.php and create_account.php
What would be useful is some actual coding which works, so we can copy it
Bookmarks