Zen Cart Logo
Forums / General Questions / Add a field into create account

Add a field into create account

Views: 51,600

Results 41 to 60 of 138
3 Dec 2008, 10:11 PM
#41
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Add a field into create account

If you're troubleshooting errors on the admin side, you'll need to put the debug logging utility in the admin folder structure too. And of course ensure that the main cache folder is writable.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Dec 2008, 10:18 PM
#42
wilpackpackaging avatar

wilpackpackaging

New Zenner

Join Date:
Aug 2008
Location:
Rockford, IL
Posts:
60
Plugin Contributions:
1

Re: Add a field into create account

I tried something else. I re-uploaded all my backup files that I saved prior to starting on this tax id thing. Those that created the field, and those that allowed the client to change the field. Everything is back to the way it was when I could load the admin page.

I still get a blank page for the admin page.

I am really lost at this point. I cannot even get in to see the client information when an order comes through. I cannot update orders with the delivery information either.

:oops:

Any help would be greatly appreciated.

You WilPack in the Profits...
By Not Spilling the Beans!

3 Dec 2008, 10:25 PM
#43
wilpackpackaging avatar

wilpackpackaging

New Zenner

Join Date:
Aug 2008
Location:
Rockford, IL
Posts:
60
Plugin Contributions:
1

Re: Add a field into create account

I did put the debug logging utility in the admin folder structure. I cannot tell if the main cache folder is writeable or not and my host does not allow changing permissions.

You WilPack in the Profits...
By Not Spilling the Beans!

3 Dec 2008, 10:33 PM
#44
wilpackpackaging avatar

wilpackpackaging

New Zenner

Join Date:
Aug 2008
Location:
Rockford, IL
Posts:
60
Plugin Contributions:
1

Re: Add a field into create account

Following is the mess I get, what I am supposed to do with the mess I have no idea.

[03-Dec-2008 14:42:31] PHP Warning: main(includes/languages/english/header.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in D:\hshome\auburn\wilpackpackaging.com\catalog\admin\includes\languages\english.php on line 650
[03-Dec-2008 14:42:31] PHP Warning: main(includes/languages/english/header.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in D:\hshome\auburn\wilpackpackaging.com\catalog\admin\includes\languages\english.php on line 650
[03-Dec-2008 14:42:31] PHP Warning: main(includes/languages/english/header.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in D:\hshome\auburn\wilpackpackaging.com\catalog\admin\includes\languages\english.php on line 650
[03-Dec-2008 14:42:31] PHP Fatal error: main() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/english/header.php' (include_path='.;c:\PHP\pear') in D:\hshome\auburn\wilpackpackaging.com\catalog\admin\includes\languages\english.php on line 650

You WilPack in the Profits...
By Not Spilling the Beans!

4 Dec 2008, 12:19 AM
#45
wilpackpackaging avatar

wilpackpackaging

New Zenner

Join Date:
Aug 2008
Location:
Rockford, IL
Posts:
60
Plugin Contributions:
1

Re: Add a field into create account

Nevermind, crisis averted. Somehow I must have overwritten one of my english.php files and saved the wrong one. Fortunately, I have a backup-backup copy at home. After work I uploaded both the english.php files and walah!:clap:

Thank you DrByte for your assistance and patience.

God Save the Zen!

:lamo:

You WilPack in the Profits...
By Not Spilling the Beans!

4 Dec 2008, 12:20 AM
#46
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Add a field into create account

WilpackPackaging:

[03-Dec-2008 14:42:31] PHP Warning: main(includes/languages/english/header.php) function.main: failed to open stream: No such file or directory in D:\hshome\auburn\wilpackpackaging.com\catalog\admin\includes\languages\english.php ...

The message indicates that the "includes/languages/english/header.php" under the /admin/ folder is missing.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Dec 2008, 5:32 PM
#47
wilpackpackaging avatar

wilpackpackaging

New Zenner

Join Date:
Aug 2008
Location:
Rockford, IL
Posts:
60
Plugin Contributions:
1

Re: Add a field into create account

:clap:
I got error messaging to work for the tax id. Here are the steps that I followed. Some of it came from a previous post by kdtaylor, but did not work for some reason. After playing around I have made these changes to get it to work.

**1. **
/includes/languages/YOURTEMPLATE/english.php

A. SEARCH FOR:
define('ENTRY_TAXID_NUMBER_TEXT', '*');

…RIGHT AFTER THAT YOU SHOULD SEE THE FOLLOWING LINE…

define('ENTRY_TAXID_NUMBER_TEXT', '*');

NOTE: YOU SHOULD ALREADY HAVE THESE ON THE PAGE IF YOU HAVE ALREADY SET UP YOUR TAX ID FIELD. IF YOU HAVE NOT ALREADY SET UP YOUR TAX ID FIELDS PLEASE SEE THE PREVIOUS POSTS ON HOW TO SET UP THE FIELD. THESE INSTRUCTIONS DEAL ONLY WITH SETTING UP ERROR MESSAGING!

B. IN BETWEEN THESE TWO LINES INSERT THE FOLLOWING:

define('ENTRY_TAXID_NUMBER_ERROR', 'Your Tax ID Number must contain a minimum of ' . ENTRY_TELEPHONE_MIN_LENGTH . ' characters. Please use format xx-xxxxxxx.');

NOTE: I USED THE “ENTRY_TELEPHONE_MIN_LENGTH” BECAUSE I COULD SET THAT LENGTH IN THE ADMIN SECTION. I SET IT TO A MINIMUM LENGTH OF “10”. IF YOU HAVE THIS SET TO ANOTHER VALUE, EITHER CHANGE THE VALUE OR USE A DIFFERENT MINIMUM ENTRY. YOU CAN ALSO CHANGE THE TEXT OF THE MESSAGE TO SUIT YOUR NEEDS.

**2. **
/includes/modules/pages/create_account/jscript_form_check.php

A. SEARCH FOR:

<?php if ((int)ENTRY_TELEPHONE_MIN_LENGTH > 0) { ?>

check_input("telephone", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TELEPHONE_NUMBER_ERROR; ?>");

<?php } ?>

DO NOT ERASE THE ABOVE CODE. PUT THE NEW CODE DIRECTLY UNDER THE CODE ABOVE, HERE IS THE EXTRA LINE OF CODE.

<?php if ((int)ENTRY_TELEPHONE_MIN_LENGTH > 0) { ?>

check_input("taxid", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TAXID_NUMBER_ERROR; ?>");

<?php } ?>

3.
/includes/modules/pages/account_edit/jscript_form_check.php

A. SEARCH FOR:

<?php if ((int)ENTRY_TELEPHONE_MIN_LENGTH > 0) { ?>

check_input("telephone", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TELEPHONE_NUMBER_ERROR; ?>");

<?php } ?>

DO NOT ERASE THE ABOVE CODE. PUT THE NEW CODE DIRECTLY UNDER THE CODE ABOVE, HERE IS THE EXTRA LINE OF CODE.

<?php if ((int)ENTRY_TELEPHONE_MIN_LENGTH > 0) { ?>

check_input("taxid", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TAXID_NUMBER_ERROR; ?>");

<?php } ?>

**4. **
/includes/modules/create_account.php

A. SEARCH FOR:

if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
$error = true;
$messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
}

DO NOT ERASE THE ABOVE CODE. PUT THE NEW CODE DIRECTLY UNDER THE CODE ABOVE, HERE IS THE EXTRA LINE OF CODE.

if (strlen($taxid) < ENTRY_TELEPHONE_MIN_LENGTH) {
$error = true;
$messageStack->add('create_account', ENTRY_TAXID_NUMBER_ERROR);
}

Good luck with it and have fun.

God save the Zen!
:clap:

You WilPack in the Profits...
By Not Spilling the Beans!

4 Dec 2008, 7:56 PM
#48
mycomputerbuddy avatar

mycomputerbuddy

New Zenner

Join Date:
Sep 2007
Posts:
38
Plugin Contributions:
0

Re: Add a field into create account

I'm having the following problem..

I've successfully added three additional fields as per this thread's instructions.. However there is a problem on the admin panel side.

If I pull up the customers info on the admin panel the 3 added fields appear ...no problem...

However if I go and make changes to the customer account in the admin panel and hit update the 3 added fields go to blank and I lose the customers extra field information.. The database is also blanked...

Any Advice?

Thanks,

4 Dec 2008, 8:16 PM
#49
wilpackpackaging avatar

wilpackpackaging

New Zenner

Join Date:
Aug 2008
Location:
Rockford, IL
Posts:
60
Plugin Contributions:
1

Re: Add a field into create account

I hadn't tested that on my site, but since your post I have tested it and it is working fine on my site.

The best thing I can say is to go back and double check the coding on each and every change that you made.

  1. Double check that the fields in your database are accurately typed in your coding.

  2. Make sure that there are no extra spaces in your coding.

  3. Also, look for '' not to be confused with ". The first is two apostrophies. The second is one quote.

  4. If all else fails, restore a backup of all the pages that you modified and start over.

  5. However, I would recommend that you work with one field start to finish and make sure it works before adding a second or third field.

Good Luck

God save the Zen!

You WilPack in the Profits...
By Not Spilling the Beans!

4 Dec 2008, 8:28 PM
#50
mycomputerbuddy avatar

mycomputerbuddy

New Zenner

Join Date:
Sep 2007
Posts:
38
Plugin Contributions:
0

Re: Add a field into create account

DOH!

$customers_taxid = zen_db_prepare_input($_POST['customers_taxid']);

Didn't add the customers_ infront of field.. in the customers.php file..

Sometimes your to close to the code for too long (I did double check) ..Stepped away and revisited for a 3rd time and voila!

14 Dec 2008, 3:32 PM
#51
tharina avatar

tharina

New Zenner

Join Date:
Oct 2008
Posts:
49
Plugin Contributions:
0

Re: Add a field into create account

If on my login page it displays

Additional Contact Details
Telephone: [input field]*
Fax Number: [input field]
ENTRY_CELLPHONE_NUMBER [input field]ENTRY_CELLPHONE_NUMBER_TEXT

where did I not put in the correct code? I followed the instructions for taxid but replaced it with cellphone

thanks for this step for step thread!!!

Tharina

14 Dec 2008, 3:45 PM
#52
tharina avatar

tharina

New Zenner

Join Date:
Oct 2008
Posts:
49
Plugin Contributions:
0

Re: Add a field into create account

nevermind.... answer in english.php

define('ENTRY_CELLPHONE_NUMBER', 'Cellphone:');
define('ENTRY_CELLPHONE_NUMBER_TEXT', '');

Tharina

14 Dec 2008, 4:12 PM
#53
tharina avatar

tharina

New Zenner

Join Date:
Oct 2008
Posts:
49
Plugin Contributions:
0

Re: Add a field into create account

1054 Unknown column 'customers_cellphone' in 'field list'
in:
[SELECT customers_gender, customers_firstname, customers_lastname, customers_dob, customers_email_address, customers_telephone, customers_fax, customers_cellphone, customers_email_format, customers_referral FROM evergreen_customers WHERE customers_id = 1]

where did I go wrong... I did a step for step but the last cange in the includes/modules/pages/acount_edit/header_php.php must be something I did wrong

any ideas?

Tharina

14 Dec 2008, 6:14 PM
#54
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Add a field into create account

Did you add the new field: customers_cellphone

to your database table? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Dec 2008, 9:18 PM
#55
tharina avatar

tharina

New Zenner

Join Date:
Oct 2008
Posts:
49
Plugin Contributions:
0

Re: Add a field into create account

yes... and I checked if I spelled it right everywhere

Tharina

14 Dec 2008, 10:40 PM
#56
wilpackpackaging avatar

wilpackpackaging

New Zenner

Join Date:
Aug 2008
Location:
Rockford, IL
Posts:
60
Plugin Contributions:
1

Re: Add a field into create account

This is how mine reads, which maybe yours does too, but mine doesn't use [] but rather ""

$account_query = "SELECT customers_gender, customers_firstname, customers_lastname,
customers_dob, customers_email_address, customers_telephone,
customers_fax, customers_taxid, customers_email_format, customers_referral
FROM " . TABLE_CUSTOMERS . "
WHERE customers_id = :customersID";

Also, double check the "Where customers_id =" and compare with your original header_php.php file.

Also, open up your phpMyAdmin and look to see if your field actually shows up correctly.

You WilPack in the Profits...
By Not Spilling the Beans!

15 Dec 2008, 12:30 AM
#57
tharina avatar

tharina

New Zenner

Join Date:
Oct 2008
Posts:
49
Plugin Contributions:
0

Re: Add a field into create account

The error code now fixed... I had my table name as customer_cellphone and not customers_cellphone

but the cellphone field still not showing in the edit account section
going over the steps and can't pick up where I went wrong.

Is there another file I'm missing to add it into the edit account section?

Tharina

15 Dec 2008, 2:18 PM
#58
wilpackpackaging avatar

wilpackpackaging

New Zenner

Join Date:
Aug 2008
Location:
Rockford, IL
Posts:
60
Plugin Contributions:
1

Re: Add a field into create account

Same file you just edited, did you complete this last step?

11c. Now search for:

<tr> <td class="main"><?php echo ENTRY_FAX_NUMBER; ?></td> <td class="main"> <?php if ($processed == true) { echo $cInfo->customers_fax . zen_draw_hidden_field('customers_fax'); } else { echo zen_draw_input_field('customers_fax', $cInfo->customers_fax, zen_set_field_length(TABLE_CUSTOMERS, 'customers_fax', 15)); } ?> </td> </tr>

DO NOT ERASE THIS CODE SIMPLY GO DIRECTLY UNDER THIS CODE AND ADD IN THE FOLLOWING CODE:

<tr> <td class="main"><?php echo ENTRY_TAXID_NUMBER; ?></td> <td class="main"> <?php if ($processed == true) { echo $cInfo->customers_taxid . zen_draw_hidden_field('customers_taxid'); } else { echo zen_draw_input_field('customers_taxid', $cInfo->customers_taxid, zen_set_field_length(TABLE_CUSTOMERS, 'customers_taxid', 15)); } ?> </td> </tr>

You WilPack in the Profits...
By Not Spilling the Beans!

6 Jan 2009, 10:24 PM
#59
tharina avatar

tharina

New Zenner

Join Date:
Oct 2008
Posts:
49
Plugin Contributions:
0

Re: Add a field into create account

I have followed the instructions on this thread and have managed to insert "cellphone number", "occupation", "Number of Children" and "Ages of Children" into the database and it shows when you add a new customer. (data stores perfectly in the database tables)

In editing "MY ACCOUNT" as customer It displays as:
Cellphone: <INPUT FIELD> ENTRY_CELLPHONE_TEXT
label class="inputLabel" for="children">Children: <INPUT FIELD> ENTRY_CHILDREN_TEXT
label class="inputLabel" for="children_ages">Childrens ages: <INPUT FIELD> ENTRY_CHILDREN_AGES_TEXT
label class="inputLabel" for="occupation">Occupation: <INPUT FIELD> ENTRY_OCCUPATION_TEXT

what file do I edit to change it to:
Cellphone: <INPUT FIELD>
Children: <INPUT FIELD>
Children ages: <INPUT FIELD>
Occupation: <INPUT FIELD>
It must be something small I missed!

I attach the steps I did... everything combined in word doc

Tharina

6 Jan 2009, 10:34 PM
#60
tharina avatar

tharina

New Zenner

Join Date:
Oct 2008
Posts:
49
Plugin Contributions:
0

Re: Add a field into create account

word doc did not upload sorry
I replaced taxid with cellphone, children, children_ages and occupation.

BACKUP
0. Backup your database using PHPMyAdmin,
ALSO backup the affected files before making each change.
AFFECTED FILES TO BACKUP:
includes/modules/YOURTEMPLATE/create_account.php
includes/languages/YOURTEMPLATE/english.php
includes/templates/YOURTEMPLATE/templates/tpl_modules_create_account.php
Admin/customers.php
includes/templates/YOUR TEMPLATE/templates/tpl_account_edit_default.php
includes/modules/pages/account_edit/header_php.php
includes/languages/YOURTEMPLATE/english.php
includes/modules/pages/create_account/jscript_form_check.php
includes/modules/pages/account_edit/jscript_form_check.php
includes/modules/create_account.php

ADD TABLE TO DATABASE:

  1. Go to PHPMyAdmin and select your database from the pulldown.

  2. On the left sidebar of PHPMyAdmin click on the table "customers"

  3. On the right side of the screen you will see all the fields like customers_telephone, customers_fax and so-on... Now scroll below this and you should see a way to add a field, in mine I saw:

The "Add" text box should contain "1", in the field(s) section, select the "At end of table" radio button, leave everything else as it is and then click the "GO" button.

This sent me to another page to name my field and stuff so I named it "customers_taxid" (no quotation marks).
Then I selected "VarChar" and a length of "32"(or whatever length in characters you want your new entry field),
Collation = (it was blank and I left it blank),
Attributed = (it was blank and I left it blank),
Null = NULL

Then I clicked "SAVE"

  1. I then saw my new field in the table it was on the bottom of all the other ones that were previously there.

  2. Close PHPMyAdmin

TO ADD FIELD FOR NEW CUSTOMERS:
6. Open file includes/modules/YOURTEMPLATE/create_account.php
(or if your template did not override this then simply use the one in modules folder)

7a. Now search for the following:

$fax = zen_db_prepare_input($_POST['fax']);

DO NOT ERASE THE ABOVE CODE. PUT THE NEW CODE DIRECTLY UNDER THE CODE ABOVE, HERE IS THE EXTRA LINE OF CODE:

$taxid = zen_db_prepare_input($_POST['taxid']);

7b. Next search for:

'customers_fax' => $fax,

DO NOT ERASE THE ABOVE CODE. PUT THE NEW CODE DIRECTLY UNDER THE CODE ABOVE, HERE IS THE EXTRA LINE OF CODE:

'customers_taxid' => $taxid,

8a. Now open file: includes/languages/YOURTEMPLATE/english.php
(or if your template did not override this then simply use the one in languages folder)

8b. Search for the following code:

define('TABLE_HEADING_PHONE_FAX_DETAILS', 'Additional Contact Details');

this is the heading for the section on the form that houses the telephone number and fax number inputs, I changed it to this:

define('TABLE_HEADING_PHONE_FAX_DETAILS', 'Additional Details');

this allowed my heading to say "Additional Information" instead of the original text of "Additional Contact Details" *

8c. Also add the following code:

define('ENTRY_TAXID_NUMBER', 'TAX ID:');

define('ENTRY_TAXID_NUMBER_TEXT', '');

to be tidy, this entry should be added to where all the other "define('ENTRY..." statements are.

  1. Now open file: includes/templates/YOURTEMPLATE/templates/tpl_modules_create_account.php

9a. Now search for the following code:

<?php if (ACCOUNT_FAX_NUMBER == 'true') { ?> <br class="clearBoth" /> <label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label> <?php echo zen_draw_input_field('fax', $account->fields['customers_fax'], 'id="fax"') . (zen_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?> <?php } ?>

DO NOT ERASE THE ABOVE CODE, ONLY PASTE THE NEW LINES OF CODE BELOW THE CODE ABOVE, here is the new code to paste under the code above:

<br class="clearBoth" /> <label class="inputLabel" for="taxid"><?php echo ENTRY_TAXID_NUMBER; ?></label> <?php echo zen_draw_input_field('taxid', $account->fields['customers_taxid'], 'id="taxid"') . (zen_not_null(ENTRY_TAXID_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_TAXID_NUMBER_TEXT . '</span>': ''); ?>

TO ADD FIELD UNDER ADMIN FOR EDITING EXISTING CUSTOMERS:
10. Now go to Admin/customers.php and edit this file.
(editing this file will allow you to see the taxid field when you edit customer information in the administrative section)

  1. Search for:

$customers_fax = zen_db_prepare_input($_POST['customers_fax']);

DO NOT ERASE THE ABOVE CODE. PUT THE NEW CODE DIRECTLY UNDER THE CODE ABOVE, HERE IS THE EXTRA LINE OF CODE:

$customers_taxid = zen_db_prepare_input($_POST['customers_taxid']);

11a. Now search for:

'customers_fax' => $customers_fax,

DO NOT ERASE THE ABOVE CODE. PUT THE NEW CODE DIRECTLY UNDER THE CODE ABOVE, HERE IS THE EXTRA LINE OF CODE:

'customers_taxid' => $customers_taxid,

11b. Now search for:

a.entry_country_id, c.customers_telephone, c.customers_fax,

REPLACE THIS CODE WITH THE FOLLOWING CODE BELOW:

a.entry_country_id, c.customers_telephone, c.customers_fax, c.customers_taxid,

(ALL I DID WAS ADD "c.customers_taxid," TO THE END OF THE EXISTING CODE.)

11c. Now search for:

<tr> <td class="main"><?php echo ENTRY_FAX_NUMBER; ?></td> <td class="main"> <?php if ($processed == true) { echo $cInfo->customers_fax . zen_draw_hidden_field('customers_fax'); } else { echo zen_draw_input_field('customers_fax', $cInfo->customers_fax, zen_set_field_length(TABLE_CUSTOMERS, 'customers_fax', 15)); } ?> </td> </tr>

DO NOT ERASE THIS CODE SIMPLY GO DIRECTLY UNDER THIS CODE AND ADD IN THE FOLLOWING CODE:

<tr> <td class="main"><?php echo ENTRY_TAXID_NUMBER; ?></td> <td class="main"> <?php if ($processed == true) { echo $cInfo->customers_taxid . zen_draw_hidden_field('customers_taxid'); } else { echo zen_draw_input_field('customers_taxid', $cInfo->customers_taxid, zen_set_field_length(TABLE_CUSTOMERS, 'customers_taxid', 15)); } ?> </td> </tr>
  1. In the file \includes\templates<YOUR TEMPLATE>\templates\tpl_account_edit_default.php (it wasn't there for us so we copy-pasted it from the template_default folder)

Right after:
<label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label>

<?php echo zen_draw_input_field('fax', $account->fields['customers_fax'], 'id="fax"') . (zen_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?> <br class="clearBoth" />

Inserted:
<label class="inputLabel" for="taxid"><?php echo ENTRY_TAXID_NUMBER; ?></label>

<?php echo zen_draw_input_field('taxid', $account->fields['customers_taxid'], 'id="taxid"') . (zen_not_null(ENTRY_TAXID_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_TAXID_NUMBER_TEXT . '</span>': ''); ?> <br class="clearBoth" />
  1. In the file \includes\modules\pages\account_edit\header_php.php:

a) After:
$fax = zen_db_prepare_input($_POST['fax']);
Inserted:
$taxid = zen_db_prepare_input($_POST['taxid']);

b) After:
array('fieldName'=>'customers_fax', 'value'=>$fax, 'type'=>'string'),
Inserted:
array('fieldName'=>'customers_taxid', 'value'=>$taxid, 'type'=>'string'),

c) Within the array:
$account_query = "SELECT customers_gender, customers_firstname, customers_lastname,
customers_dob, customers_email_address, customers_telephone,
customers_fax, customers_email_format, customers_referral
FROM " . TABLE_CUSTOMERS . "
WHERE customers_id = :customersID";

Added customers_taxid, as follows:
$account_query = "SELECT customers_gender, customers_firstname, customers_lastname,
customers_dob, customers_email_address, customers_telephone,
customers_fax, customers_taxid, customers_email_format, customers_referral
FROM " . TABLE_CUSTOMERS . "
WHERE customers_id = :customersID";

Tharina