osCmax v2.5 User Manual
Results 1 to 4 of 4

Date proble in signup

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

      
  1. #1
    New Member
    Join Date
    Sep 2004
    Posts
    6
    Rep Power
    0


    Default Date proble in signup

    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

  2. #2
    Active Member
    Join Date
    May 2003
    Posts
    148
    Rep Power
    0


    Default

    catalog/create_account.php,

    around line # 79

    Code:
    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);
          }
        }
    this is what u need to change, play with strings n u shall have your desired results

  3. #3
    New Member
    Join Date
    Sep 2004
    Posts
    6
    Rep Power
    0


    Default Thanks

    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

  4. #4
    New Member
    Join Date
    Dec 2004
    Posts
    10
    Rep Power
    0


    Default RE: Thanks

    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
    Trevor Locke
    Consultant
    www.b2bwebconsultants.co.uk

Similar Threads

  1. affiliate signup error!!! PLEASE HELP!!!!!!
    By acurals7 in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 07-20-2006, 05:42 PM
  2. Can't login/signup new customer
    By jbianco in forum osCommerce 2.2 Installation Help
    Replies: 7
    Last Post: 04-06-2004, 12:56 PM
  3. Modifying Signup (Register) Page
    By terabite.com in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 02-03-2003, 06:55 PM
  4. Signup referring URL/METHOD question
    By CharlesE in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 12-03-2002, 11:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •