Results 1 to 9 of 9
  1. #1
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default trouble with making birthdates non-required

    Hi -

    I'm trying to make the birthdate an optional field for account creation. I set Configuration->Customer Details->Date of Birth to "true," and per the instructions in the activation panel, I set Config->Minimum Values->Date of Birth to blank. (I tried both blank and 0.)

    The field still appears mandatory in registration. What am I doing wrong?

    www.cinderellaantiques.com

    Thanks.

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

    Default Re: trouble with making birthdates non-required

    Quote Originally Posted by mzimmers View Post
    Hi -

    I'm trying to make the birthdate an optional field for account creation. I set Configuration->Customer Details->Date of Birth to "true," and per the instructions in the activation panel, I set Config->Minimum Values->Date of Birth to blank. (I tried both blank and 0.)

    The field still appears mandatory in registration. What am I doing wrong?

    www.cinderellaantiques.com

    Thanks.
    Mz,
    To enable the customer to add the date of birth as optional, you just need to configure the DOB correctly ...

    Go to the Configuration ... Customer Details ... and set to: true
    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
    Now go the the Configuration ... Minimum Values ... and set to blank, not 0 but blank as in nothing in the input box, as instructed:
    Date of Birth
    Minimum length of date of birth
    Now the date of birth will display, but is not required ...

  3. #3
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: trouble with making birthdates non-required

    OK, so what am I doing wrong here? (screen captures below)






  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: trouble with making birthdates non-required

    Your Date of Birth field is optional. To remove the asterisk and example (if you want) edit line 207 in english.php:

    define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)');

  5. #5
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: trouble with making birthdates non-required

    Well, I'll be danged. Thanks.

    Edit: I bet there's no easy way to make that text non-red for that field only, is there?

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

    Default Re: trouble with making birthdates non-required

    Mz,
    just remove the * and leave the single quotes

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: trouble with making birthdates non-required

    Yup. Remove the red part (in tpl_modules_create_account.php)

    <?php echo zen_draw_input_field('dob','', 'id="dob"') . (zen_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="alert" >' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?>

  8. #8
    Join Date
    May 2008
    Posts
    452
    Plugin Contributions
    0

    Default Re: trouble with making birthdates non-required

    Still red, but it's no big deal.

    EDIT: this reply was to haredo; I haven't tried Steve's work yet.

    Thanks.

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

    Default Re: trouble with making birthdates non-required

    Quote Originally Posted by mzimmers View Post
    Still red, but it's no big deal.

    EDIT: this reply was to haredo; I haven't tried Steve's work yet.

    Thanks.

    Mz,
    includes/ languages/ your_template/ english.php

    1. line 202
    2. define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)');
    3. change to this:
    4. define('ENTRY_DATE_OF_BIRTH_TEXT', '');

 

 

Similar Threads

  1. Making a product non-discountable
    By beadsplease in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 4 Jan 2013, 11:52 AM
  2. Making Attributes Non-Taxable?
    By belaze in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 26 Apr 2012, 06:17 PM
  3. v150 Making Options non mandatory
    By mkyle in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 10 Mar 2012, 12:51 AM
  4. Making 'My Account' Non-SSL
    By garethrooney in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Oct 2010, 03:20 PM
  5. State problem with new account (when making state field not required)
    By earmsby in forum Managing Customers and Orders
    Replies: 9
    Last Post: 13 May 2007, 10:04 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