Zen Cart Logo
Forums / Bug Reports / FAX number entry in account edit, when it's disabled in admin

FAX number entry in account edit, when it's disabled in admin

Locked

Views: 1,287

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
8 Oct 2009, 8:42 AM
#1
lat9 avatar

lat9

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 } ?>
8 Oct 2009, 5:35 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: FAX number entry in account edit, when it's disabled in admin

It's not a bug. It's functioning as it was designed.
The customer can still edit the details even if you set it as no-longer-collected from within the admin settings.
It's not a "required" field, so they are not forced to enter a value there.