bkng Posted September 26, 2002 Posted September 26, 2002 Anyone any idea on how ti switch of some of the required fields when creating new account. Example: i dont need a birthdate of my clients and now its a reguired field. Sure apreciate any help. :?
Ian Posted September 26, 2002 Posted September 26, 2002 Look in application_top.php // Control what fields of the customer table are used define('ACCOUNT_GENDER', 'true'); define('ACCOUNT_DOB', 'true'); define('ACCOUNT_COMPANY', 'false'); define('ACCOUNT_SUBURB', 'true'); define('ACCOUNT_STATE', 'true'); Trust me, I'm an Accountant.
bkng Posted September 27, 2002 Author Posted September 27, 2002 I used it and the fields no longer show up. But for the field DOB i want to have it optional and not required. Were can i switch to optional or required for the fields. Also, where can i switch of the required telephone number field? Thanx for your help mate.
Ian Posted September 28, 2002 Posted September 28, 2002 Date of birth, I'm extemporising here. First to remove the 'required' text edit includes/languages/english.php define('ENTRY_DATE_OF_BIRTH_TEXT', ' <small>(eg. 05/21/1970) <font color="#AABBDD">required</font></small>'); to define('ENTRY_DATE_OF_BIRTH_TEXT', ' <small>(eg. 05/21/1970) </small>'); then to stop a blank entry causing errors edit catalog/create_account_process.php and look for this 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))) { $entry_date_of_birth_error = false; } else { $error = true; $entry_date_of_birth_error = true; } } and change to if (ACCOUNT_DOB == 'true') { if (!$dob) { if (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4))) { $entry_date_of_birth_error = false; } else { $error = true; $entry_date_of_birth_error = true; } } } HTH Trust me, I'm an Accountant.
Trusten Posted September 28, 2002 Posted September 28, 2002 don't you mean (ACCOUNT_DOB == 'false) not (ACCOUNT_DOB == 'true') regardless of which, do this, go into admin, and make the 'minimum' requirements blank, that way, it won't require them to make things a certain length try that. that's what i did for phone and that's what i did for a few other stuff.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.