Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,091
- Plugin Contributions:
- 56
FAX number entry in account edit, when it's disabled in admin
Running 1.38a+security+FEC offline.
I've got Configuration->Customer Details->Fax Number set to false. When I created an account no fax number was requested, but when I went to edit the account's information (My Account->View or Change Your Account Information), the Fax number field was displayed for entry.
I think a conditional needs to be added in \includes\templates\template_default\tpl_account_edit_default.php, starting at line 59:
<?php if (ACCOUNT_FAX_NUMBER == 'true') { ?><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" /> <?php } ?>