Hello Oracle,
I've updated all my files and took another shot at this MOD. The fields are showing up in the login form without repeating as before (hoorah! thanks!!!). However, I'm having problems with the fields in both the admin-end account edit and the customer-end account edit.
On the admin side of account edit, the new fields do not show up at all. On the customer side of account edit, only the framed box with the "Additional Customer Fields" title shows up. I even added a new customer from the storefront and utilized the new fields, hoping that this would make the new fields register in the other two areas. No such luck.
As seen below, my two fields are "In business since: " (customers_bussince) and "Federal ID#: " (customers_fedid).
Here are my files so far containing the two fields:
FILE:
admin/includes/languages/english/extra_definitions/additional_customers_fields.php
PHP Code:
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');
and
PHP Code:
$additional_customers_fields_form_input_title['customers_bussince'] = array('In business since: ');
$additional_customers_fields_form_input_title['customers_fedid'] = array('Federal ID#: ');
?>
FILE:
includes/languages/english/extra_definitions/additional_customers_fields_create_account.php
PHP Code:
// Defines the additional customers fields title in order to show in HTML forms.
define('ENTRY_ADDITIONAL_CUSTOMERS_FIELDS_TITLE', 'Additional Customers Fields');
define('HEADING_ADDITIONAL_CUSTOMERS_FIELDS_CREATE_ACCOUNT_TITLE', '');
// Defines the in business since title name for the additional customers fields.
$additional_customers_fields_form_create_account_input_title['customers_bussince'] = array('In business since: ');
// Defines the federal id title name for the additional customers fields.
$additional_customers_fields_form_create_account_input_title['customers_fedid'] = array('Federal ID#: ');
?>
FILE: includes/languages/english/extra_definitions/additional_customers_fields_account_edit.php
PHP Code:
// Defines the additional customers fields title in order to show in HTML forms.
define('ENTRY_ADDITIONAL_CUSTOMERS_FIELDS_TITLE', 'Additional Customers Fields');
define('HEADING_ADDITIONAL_CUSTOMERS_FIELDS_ACCOUNT_EDIT_TITLE', '');
// Defines the in business since title name for the additional customers fields.
$additional_customers_fields_form_account_edit_input_title['customers_bussince'] = array('In business since: ');
// Defines the federal id title name for the additional customers fields.
$additional_customers_fields_form_account_edit_input_title['customers_fedid'] = array('Federal ID#: ');
?>
FILE: includes/templates/mytemplate/templates/tpl_modules_create_account.php
PHP Code:
<?php // Additional customers fields begins here. ?>
<?php if (function_exists('check_add_customers_fields_records') && check_add_customers_fields_records()) { ?>
<fieldset>
<legend><?php echo ENTRY_ADDITIONAL_CUSTOMERS_FIELDS_TITLE; ?></legend>
<?php
} // End of if statement.
// We now set up an additional customer field for in business since.
echo add_customers_fields_for_create_account('customers_bussince', 'zen_draw_input_field');
// End of additional customer field for in business since.
// We now set up an additional customer field for federal id.
echo add_customers_fields_for_create_account('customers_fedid', 'zen_draw_input_field');
// End of additional customer field for federal id.
?>
</fieldset>
<?php
// End of additional customers fields.
FILE:
…includes/templates/mytemplate/templates/tpl_account_edit_default.php
PHP Code:
// Additional customers fields begins here.
while (!$account->EOF) {
// We now set up an additional customer field for in business since.
if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_bussince") {
echo add_customers_fields_for_account_edit('customers_bussince', 'zen_draw_input_field');
} // End of additional customers fields for in business since.
// We now set up an additional customer field for federal id.
if (isset($account->fields['field_name']) && $account->fields['field_name'] == "customers_fedid") {
echo add_customers_fields_for_account_edit('customers_fedid', 'zen_draw_input_field');
} // End of additional customers fields for federal id.
$account->MoveNext();
} // End of while statement.
// End of additional customers fields.
Any ideas as to why this is not working? If more info is needed, please let me know.
Thank you!