This is what i have in tpl_modules_create_account
<fieldset>
<legend><?php echo CATEGORY_COMPANY; ?></legend>
<label class="inputLabel" for="company"><?php echo ENTRY_COMPANY; ?></label>
<?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company"') . (zen_not_null(ENTRY_COMPANY_TEXT) ? '<span class="alert">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?>
<label class="inputLabel" for="taxid"><?php echo ENTRY_TAXID; ?></label>
<?php echo zen_draw_input_field('taxid', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_taxid', '40') . ' id="taxid"') . (zen_not_null(ENTRY_TAXID_TEXT) ? '<span class="alert">' . ENTRY_TAXID_TEXT . '</span>': ''); ?>
</fieldset>
This is What i did in Admin/customers.php
IN THE FILE - admin/customers.php
FIND
if (customers_email_address == "" || customers_email_address.length < <?php echo ENTRY_EMAIL_ADDRESS_MIN_LENGTH; ?>) {
error_message = error_message + "<?php echo JS_EMAIL_ADDRESS; ?>";
error = 1;
}
ADD THIS AFTER
if (entry_taxid == "" || entry_taxid.length < <?php echo ENTRY_TAXID_MIN_LENGTH; ?>) {
error_message = error_message + "<?php echo JS_TAXID; ?>";
error = 1;
}
FIND
<?php
if ($error == true) {
if ($entry_company_error == true) {
echo zen_draw_input_field('entry_company', $cInfo->entry_company, zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', 50)) . ' ' . ENTRY_COMPANY_ERROR;
} else {
echo $cInfo->entry_company . zen_draw_hidden_field('entry_company');
}
} else {
echo zen_draw_input_field('entry_company', $cInfo->entry_company, zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', 50));
}
?></td>
</tr>
ADD THIS AFTER
<tr>
<td class="main"><?php echo ENTRY_TAXID; ?></td>
<td class="main">
<?php
if ($error == true) {
if ($entry_taxid_error == true) {
echo zen_draw_input_field('entry_taxid', $cInfo->entry_taxid, 'maxlength="25"') . ' ' . ENTRY_TAXID_ERROR;
} else {
echo $cInfo->entry_taxid . zen_draw_hidden_field('entry_taxid');
}
} else {
echo zen_draw_input_field('entry_taxid', $cInfo->entry_taxid, 'maxlength="25"', true);
}
?> </tr>
FIND
$entry_country_id = zen_db_prepare_input($_POST['entry_country_id']);
ADD THIS AFTER
$entry_taxid = zen_db_prepare_input($_POST['entry_taxid']);
FIND
'entry_country_id' => $entry_country_id);
AND REPLACE WITH
'entry_country_id' => $entry_country_id,
'entry_taxid' => $entry_taxid);
if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_taxid'] = $entry_taxid;
FIND
a.entry_company, a.entry_street_address, a.entry_suburb,
AND REPLACE WITH
a.entry_company, a.entry_taxid, a.entry_street_address, a.entry_suburb,
FIND:
case "company":
$disp_order = "a.entry_company";
break;
case "company-desc":
$disp_order = "a.entry_company DESC";
break;
ADD THIS AFTER:
case "taxid":
$disp_order = "a.entry_taxid";
break;
case "taxid-desc":
$disp_order = "a.entry_taxid DESC";
break;
FIND:
<td class="dataTableHeadingContent" align="left">
<?php echo (($_GET['list_order']=='company' or $_GET['list_order']=='company-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_COMPANY . '</span>' : TABLE_HEADING_COMPANY); ?><br>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=company', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='company' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=company-desc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='company-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
</td>
ADD THIS AFTER:
<td class="dataTableHeadingContent" align="left">
<?php echo (($_GET['list_order']=='taxid' or $_GET['list_order']=='taxid-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_TAXID . '</span>' : TABLE_HEADING_TAXID); ?><br>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=taxid', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='taxid' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=taxid-desc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='taxid-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
</td>
FIND:
$new_fields=', c.customers_telephone, a.entry_company, a.entry_street_address, a.entry_city, a.entry_postcode, c.customers_authorization, c.customers_referral';
IN-LINE FIND:
a.entry_company,
ADD AFTER:
a.entry_taxid,
FIND:
$customers_query_raw = "select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_group_pricing, a.entry_country_id, a.entry_company, ci.customers_info_date_of_last_logon, ci.customers_info_date_account_created " . $new_fields . " from " . TABLE_CUSTOMERS . " c left join " . TABLE_CUSTOMERS_INFO . " ci on c.customers_id= ci.customers_info_id left join " . TABLE_ADDRESS_BOOK . " a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id " . $search . " order by $disp_order";
IN-LINE FIND:
a.entry_company,
ADD AFTER
a.entry_taxid,
FIND:
<td class="dataTableContent"><?php echo $customers->fields['entry_company']; ?></td>
ADD THIS AFTER:
<td class="dataTableContent"><?php echo $customers->fields['entry_taxid']; ?></td>
Can someone please help