Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Jul 2006
    Posts
    48
    Plugin Contributions
    0

    Default Removing phone number in registration.

    I actually searched it and found an answer but it didn't work. It was by adding ''vs' to the line. I'm assuming the post was refering to an older version. Anyone have any ideas on how to take it out?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Removing phone number in registration.

    If you set the Minimum Values to blank, not 0 ... but blank ... and edit the define for the * to '' in english.php
    define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');
    Then it is still there but not required ...


    To remove it 100%, set the minimum value to blank ... then you can edit the files:
    tpl_modules_create_account.php
    tpl_account_edit_default.php
    and anywhere else you do not wish to see the phone number ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jul 2006
    Posts
    48
    Plugin Contributions
    0

    Default Re: Removing phone number in registration.

    Thanks for the tip. I understood the first two parts in setting to zero and editing the *. But the telephone field is still there in registration. So I looked up the other two TPL files and I'm not sure how to edit them.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Removing phone number in registration.

    To completely remove it from everywhere there will be quite a few edits ...

    tpl_modules_create_account.php for example would need to have this section removed in your overrides file:
    PHP Code:
    <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>'''); ?>
    You may find it easier to just not make it a required file than to try to remove it totally ...

    NOTE: to make it not require, leave it blank not set at 0
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    May 2006
    Posts
    98
    Plugin Contributions
    0

    Re: Removing phone number in registration.

    I'm trying to make the phone number field not required, but still have it present (optional) on the account creation page. I've made the minimum value blank and removed the asterisk from the english.php file, and I thought all was well. However, upon going live this morning, a customer wrote in the following:

    "Since your site is new, I wanted to let you know about a little bit of a bug
    I ran into while placing my order. The phone number isn't required, but
    then when I went to place the order, it errored out because it didn't have
    my phone number. Then there isn't any place to put in the phone number
    there, so I had to go out of the ordering screen, go into "My Account" and
    add my phone and then go back and place the order again."

    Any ideas? I'm on the latest release 1.3.02, and here's the url: superbuzzy.com

    Thanks in advance for your help!

  6. #6
    Join Date
    May 2006
    Posts
    98
    Plugin Contributions
    0

    Default Re: Removing phone number in registration.

    As a follow up to my question, I just viewed the profile for one of my customers and found that the birthdate and phone number are still listed as required in the Admin section although I set both of those values to blank in the minimum values section. Does this help point the way to a solution? I'd like both birthdate and phone number fields to be on the form, but optional. Thanks again.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,705
    Plugin Contributions
    12

    Default Re: Removing phone number in registration.

    Please read the first part of Ajeh's post (number 2 above). It tells you exactly how to do that.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  8. #8
    Join Date
    May 2006
    Posts
    98
    Plugin Contributions
    0

    Default Re: Removing phone number in registration.

    Thanks, but unless I'm missing something, that's exactly what I've already done... set the minimum values to blank and removed the asterisks in the english.php file. That's why I'm posting...

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Removing phone number in registration.

    Under Customer Details ...
    Date of Birth
    Display date of birth field during account creation and with account information
    NOTE: Set Minimum Value Date of Birth to blank for not required
    Set Minimum Value Date of Birth > 0 to require
    Then edit the language file to remove the * require:
    define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)');
    Set the Minimum Value for Telephone to blank, not 0 then edit the language file for the require:
    define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');
    Now they are on the forms but not required ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Removing phone number in registration.

    One question
    When I go to Admin
    Configuration->Customer Details
    I dont see any field for telephone number
    Why like that?
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Add Phone Number to Contact Us - phone number is not on the emails?
    By ljdream00 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 18 Apr 2012, 10:37 PM
  2. Removing customer phone number
    By daviddarmody in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Oct 2011, 02:08 AM
  3. phone only product type change phone number
    By fabbabyjulia in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 13 May 2011, 11:50 AM
  4. Phone number error when trying a test registration
    By Shawn_nwahS in forum Managing Customers and Orders
    Replies: 4
    Last Post: 10 Jun 2009, 01:33 AM
  5. How to remove phone/fax number from registration form...?
    By threemiles in forum Managing Customers and Orders
    Replies: 20
    Last Post: 4 Mar 2009, 10:30 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