Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Posts
    4
    Plugin Contributions
    0

    Idea or Suggestion No phone requirement when creating account

    I have saw a few threads in the forum about people wanting to make the phone number NOT REQUIRED during account creation, with no REAL answers as to how to go about doing it.

    Well, I'm not very good with php, but I figured it out, anyway. Thought I'd share.

    in includes/templates/template_default/templates/tpl_modules_create_account.php
    on line 118....


    <?php echo zen_draw_input_field('telephone', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', '40') . ' id="telephone"') . (zen_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?>


    change to....


    <?php echo zen_draw_input_field('telephone', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', '40') . ' id="telephone"') . (zen_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '' . ENTRY_TELEPHONE_NUMBER_TEXT . '(not required)':


    You will also want to do this for the tpl_account_edit_default.php (same folder) on line 57, or if the customer ever changes any details (like password), they would then have to enter a phone number.


    Then in admin-configuration, edit "phone number" to be blank (NOT 0 !!!!).

    Now *(not required) will show up beside the phone number input box in the font color of your body text, all without ANY ERRORS!!

    Best of all, your customers can create an account without that bit of personal information that will run some of them off!


    Helpfull to the community?.......................I hope so. Happy Zenning!
    Last edited by Free*\/*Bird; 16 Aug 2006 at 06:04 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: No phone requirement when creating account


  3. #3
    Join Date
    Aug 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: No phone requirement when creating account

    Yep, you're right gilby, but as you know, a person could spend a lifetime in these forums reading all the problems, answers, fixes, suggestions. Just missed that one. Thanks for the point in that direction.

 

 

Similar Threads

  1. v154 ERROR_CAPCTHA when creating an account
    By corbe23 in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 20 Jun 2015, 05:48 AM
  2. Newsletter Subscribe when creating account
    By dddmx3 in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 6 Oct 2010, 04:07 AM
  3. Error when creating an account.
    By Graphicman in forum General Questions
    Replies: 4
    Last Post: 23 Aug 2010, 10:33 AM
  4. Error when creating new account
    By sinsor in forum Managing Customers and Orders
    Replies: 1
    Last Post: 17 Nov 2009, 10:14 PM
  5. Getting error when creating account
    By shastaMatt in forum General Questions
    Replies: 2
    Last Post: 24 Apr 2007, 08:39 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