Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: page create account fields

    First, you'll need to find..
    includes/templates/template_default/templates/tpl_modules_create_account.php

    Make a copy of it and put it into your custom template. Then in that file, find..

    PHP Code:
    <?php
      
    if (ACCOUNT_DOB == 'true') {
    ?>
    <fieldset>
    <legend><?php echo TABLE_HEADING_DATE_OF_BIRTH?></legend>
    <label class="inputLabel" for="dob"><?php echo ENTRY_DATE_OF_BIRTH?></label>
    <?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>'''); ?>
    <br class="clearBoth" />
    </fieldset>
    <?php
      
    }
    ?>
    Move the section of code above to a different part of the file, wherever you want it displayed.

    Then find includes/languages/english.php and edit any relevant define statements. The Developer's Tool Kit should prove to be useful here. Don't forget to also overide this file.

    You may find that you run into validation problems doing the above. Zen Cart might expect something in the form of a date to be entered. In that case, you would also need to modify some JavaScript.

    There'll be some admin language files that will require some editing as well. Again, make use of the Developer's Tool Kit.
    Last edited by Steven300; 29 Apr 2008 at 03:34 PM.

 

 

Similar Threads

  1. Extra Fields for Customer Sign Up (Create Account) Page
    By jackie.taferner in forum All Other Contributions/Addons
    Replies: 197
    Last Post: 29 May 2024, 04:03 AM
  2. Remove * from fields on create account page?
    By mw4kids in forum General Questions
    Replies: 2
    Last Post: 31 Oct 2009, 04:13 AM
  3. Remove fields in 'Create Account' page
    By miles in forum General Questions
    Replies: 1
    Last Post: 15 Jun 2008, 12:03 PM
  4. No fields display on create account page
    By jpbakken in forum Managing Customers and Orders
    Replies: 2
    Last Post: 9 Apr 2008, 03:43 PM
  5. reduce fields in create account page
    By skunkworx in forum General Questions
    Replies: 13
    Last Post: 22 Feb 2007, 08:38 AM

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