Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Jun 2007
    Posts
    11
    Plugin Contributions
    0

    Default Customer telephone required?

    Can I turn off or remove the requirement for the customer's telephone number in the account creation? My products are all virtual and I really don't have a need for the number.

    Thanks!

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Customer telephone required?

    Quote Originally Posted by tammyt View Post
    Can I turn off or remove the requirement for the customer's telephone number in the account creation? My products are all virtual and I really don't have a need for the number.

    Thanks!
    T,
    Yes you can, you half to edit two files

    1. admin panel/ configuration/ minimum values
    A. set this to 0
    2. this will make a little adjustment
    3. If you do not want it to show you will half to edit the english.php
    Last edited by haredo; 22 Apr 2008 at 06:51 PM.

  3. #3
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Customer telephone required?

    Quote Originally Posted by tammyt View Post
    Can I turn off or remove the requirement for the customer's telephone number in the account creation? My products are all virtual and I really don't have a need for the number.

    Thanks!
    Just an update:
    If you want to totally remove the Telephone & Fax Lines from the Customer Registration:

    includes/ templates/ your_custom_template/ template/ tpl_modules_create_account.php

    Find the following:
    PHP Code:
    <fieldset>
    <legend><?php echo TABLE_HEADING_PHONE_FAX_DETAILS?></legend>
    <label class="inputLabel" for="telephone"><?php echo ENTRY_TELEPHONE_NUMBER?></label>
    <?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>'''); ?>

    <?php
      
    if (ACCOUNT_FAX_NUMBER == 'true') {
    ?>
    <br class="clearBoth" />
    <label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER?></label>
    <?php echo zen_draw_input_field('fax''''id="fax"') . (zen_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="alert">' ENTRY_FAX_NUMBER_TEXT '</span>'''); ?>
    <?php
      
    }
    ?>
    </fieldset>
    Just copy and delete the code from the .php file
    1. Save
    2. ftp back up on the server

  4. #4
    Join Date
    Jun 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Customer telephone required?

    Thank you so much!
    It worked perfectly!

  5. #5
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Customer telephone required?

    You are most welcome, Glad I could assist you..

  6. #6
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Customer telephone required?

    Hello,

    Haredo I implemented this mod a while back and then a few months ago came across this problem.. any ideas on how to fix this?

    I'm using Zen Cart v1.3.9c

    Thanks.
    Last edited by gaffettape; 29 May 2010 at 11:50 PM.

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Customer telephone required?

    Try this mod

    http://www.zen-cart.com/index.php?ma...roducts_id=495

    tested and works on 1.3.9

  8. #8
    Join Date
    Oct 2010
    Location
    Idaho
    Posts
    292
    Plugin Contributions
    0

    Default Re: Customer telephone required?

    Frank18, that mod looks great, and I want to try it, but I have an english.php file in includes/languages/CUSTOM directory, that I think was installed by a different mod, but I'm not sure.

    What to do, what to do. Suppose I'll have to compare the two english.php files line-by-line and merge the differences. Darn.

  9. #9
    Join Date
    Oct 2010
    Location
    Idaho
    Posts
    292
    Plugin Contributions
    0

    Default Re: Customer telephone required?

    Great mod, but I've decided not to use this mod for a couple of reasons.

    1. There are too many improvements since 2006 (when these files were released) in the two create_account files. I don't want to overwrite the newer/better create_account files with these older files.

    2. The custom english.php is only used to remove the asterisk and store a custom copy of the english.php instead of altering Zen Cart's native english.php. Since I only really want to remove the asterisk (after setting minimum value to 0 or blank), I can do that with one very simple code edit in my current, 2010, custom english.php.

    This mod is cool, but I don't need to remove the Telephone field entirely from the Create Account page, and the old 2006 create_account files are outdated, at least in terms of code improvement/refinement since then. However, the guts of this mod could still be used (econcepts code in both create_account files) w/ Zen Cart's newer create_account files, to have the best of both worlds.

    Jim

  10. #10
    Join Date
    Oct 2010
    Location
    Idaho
    Posts
    292
    Plugin Contributions
    0

    Default Re: Customer telephone required?

    I really went and did it this time!

    Just kidding.

    Anyone know how to do the uninstall jazz for the admin panel so that showing/hiding Telephone Number won't be a choice in Customer Details? I got rid of the custom create_account files that I had installed with the mod, so no need now to have this dead option in Admin Customer Details.

    Thanks..

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. I need telephone number required
    By Invizix in forum Managing Customers and Orders
    Replies: 29
    Last Post: 23 Jun 2010, 03:39 PM
  2. telephone not required on signup
    By clydejones in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Feb 2008, 01:57 PM
  3. Address or telephone info not required
    By maxis in forum Managing Customers and Orders
    Replies: 0
    Last Post: 18 Jul 2007, 03:36 AM
  4. Telephone Not Required
    By StephenInThailand in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Jan 2007, 04:52 PM
  5. telephone required
    By keystonewebworks in forum General Questions
    Replies: 1
    Last Post: 2 Jul 2006, 06:00 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