here is the full code
<?php
//-----------------------------------------------------------------------------------------------------------
//--- Additional customers fields MOD ------------------------------------------------------
//----------------------------------------------------------------------------------------------------------
// --- Coded by TheOracle on May 9, 2007. ----------------------------------------------
// --- Support: <http://www.zen-cart.com/forum> ------------------------------------------
// --- Designed for Zen-Cart v1.3x versions -----------------------------------------------
//----------------------------------------------------------------------------------------------------------
// If you like this MOD, please send a donation to:
[email protected] . --
//---------------------------------------------------------------------------------------------------------
define('BOX_CUSTOMERS_ADDITIONAL_CUSTOMERS_FIELDS', 'Add Customers Fields');
// Additional Customers Fields - Form Type Table Title For Whole Additional Window.
define('ADDITIONAL_CUSTOMERS_FIELDS_FORM_TITLE', 'Additional Customers Fields');
//=========================================================================================================
// Additional Customers Fields - Form Type Table Structure (Input text fields)
// Here's out it works in HTML version for the input text:
// - <input type="text" name="customers_hobbies" value="your content">
// - <input type="text" name="customers_age" value="your content">
// - <input type="text" name="customers_cellphone" value="your content">
// Imagine; almost four years has passed and all the pain we had to push ourselves into.
// This new way is a way for your freedom. All you need to do is to enter "one" title name for
// each additional customers fields you have created from the MOD.
// Remember, a constance of 'two additional customers fields' is needed.
// You can see some example below. As you can see, for the input type, there are no content.
// Of course not, the content is being gathered from the database since no options are required
// in order to ask customers to fill their content. The title should suffise in this case (the same for the textarea type).
//-------------------------------------------------------------------------
// Here's a cheap preview:
// Title | Content
// ------------------------------------------------------------------------
// From your admin/customers.php file, before this MOD was ever built, additional fields required to be
// added manually into the file as expertise were required in order to accomplish the task without
// any damages involved.
// Try it here and time yourself to see how fast you can implement new fields - starting from this point.
// Array functionality:
// As for the other fields type -
// The way arrays work, again, one title only. As for the content, you can add unlimited texts and values inside.
// Ex: ("test1", "test2", "test3") and so on. Remember to add your title first.
// In your admin/customers.php file, the results will output like this if you choose the pull down list type:
// Title | test1
// test2
// test3
// As for your radio title, it will output like this:
// Title | <button> test1 <button> test2 <button> test3
// If you have read this text until here, then you should understand how it works. If not, you can always request support
// from the author for additional help.
// 1st note: If you're worried about having your fields checked by default, don't worry - it is already implemented in the MOD.
// 2nd note: Do NOT add the additional customers name field twice on two different form types. Otherwise, you might alter
// your specific customer's options.
// 3rd note: There are no checkboxes options inside this MOD yet. Reason: Checkboxes are meant for specific actions.
// It cannot be determined on what exacly you'd like to do with these checkboxes (ex: delete, update, select, checked without validations ect ...).
// Below are few examples on how it works. You can customize these names into the fields name you created - the way you like them to be.
// Good luck !
//=========================================================================================================
//$additional_customers_fields_form_input_title['customers_hobbies'] = array('Hobbies: ');
//$additional_customers_fields_form_input_title['customers_age'] = array('Age: ');
//$additional_customers_fields_form_input_title['customers_cellphone'] = array('Cellphone: ');
// Additional Customers Fields - Form Type Table Structure (Textarea fields)
//$additional_customers_fields_form_textarea_title['customers_hobbies'] = array('Hobbies: ');
//$additional_customers_fields_form_textarea_title['customers_age'] = array('Age: ');
//$additional_customers_fields_form_textarea_title['customers_cellphone'] = array('Cellphone: ');
// Additional Customers Fields - Form Type Table Structure (Select fields - title)
//$additional_customers_fields_form_pull_down_title['customers_hobbies'] = array('Hobbies: ');
//$additional_customers_fields_form_pull_down_title['customers_age'] = array('Age: ');
//$additional_customers_fields_form_pull_down_title['customers_cellphone'] = array('Cellphone: ');
//$additional_customers_fields_form_pull_down_content['customers_hobbies'] = array("test1");
//$additional_customers_fields_form_pull_down_content['customers_age'] = array(18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99);
//$additional_customers_fields_form_pull_down_content['customers_cellphone'] = array("test3");
$additional_customers_fields_form_input_title['customers_Medicine_on_prescription'] = array('Medicine on Prescription: ')
$additional_customers_fields_form_input_title['customers_Medicine_Details'] = array('If so, please give details: ');
$additional_customers_fields_form_input_title['customers_Months_Pregnant'] = array('If you are pregant, how many months are you?: ');
$additional_customers_fields_form_input_title['customers_Ongoing_Medical_Conditions '] = array('Please tell us about your medical conditions: ');
$additional_customers_fields_form_input_title['customers_Ongoing_Allergies '] = array('Please list your allergies, if any?: ');
$additional_customers_fields_form_radio_title['customers_Medicine_used_before '] = array('Have you used this medicine before: ');
$additional_customers_fields_form_radio_title['customers_Taking_prescribed_medicine'] = array('Are you taking any prescribed medicines?:');
$additional_customers_fields_form_radio_title['customers_Breast_Feeding'] = array('If you have had a baby, are you breast feeding?: ');
$additional_customers_fields_form_radio_content['customers_Medicine_used_before'] = array(Yes, No);
$additional_customers_fields_form_radio_content['customers_Taking_prescribed_medicine'] = array(Yes, No);
$additional_customers_fields_form_radio_content['customers_Breast_Feeding'] = array(Yes, No);
?>