Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default 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
    }
    ?>

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default 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.
    .

    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.

 

 

Similar Threads

  1. Adding customer fax number to admin order display
    By cjsmiff in forum Customization from the Admin
    Replies: 0
    Last Post: 5 Mar 2010, 02:31 AM
  2. Replies: 15
    Last Post: 31 Dec 2008, 03:48 AM
  3. Fax Number in account editing
    By kuroi in forum Bug Reports
    Replies: 2
    Last Post: 15 May 2007, 07:25 PM
  4. Fax Number: Create Account be required
    By haredo in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 Mar 2007, 06:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg