Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,549
    Plugin Contributions
    28

    Default Change width of input boxes on login page

    My layout is not right and I think it's the width of input boxes that's the problem.

    http://www.photopetmemorials.com/ind...ain_page=login

    How do I shorten the display length of the Company Name, Street Address and Email Address fields? I can't seem to find where that is controlled.

  2. #2
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: Change width of input boxes on login page

    includes/templates/youtemplate/templates/tpl_modules_create_account.php

    Line 37 and line 566 you will change the 40 to a smaller number until it fits.

    <label class="inputLabel" for="company"><?php echo ENTRY_COMPANY; ?></label>
    <?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company"') . (zen_not_null(ENTRY_COMPANY_TEXT) ? '<span class="alert">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?>
    </fieldset>

    Then find and change the same for Street Address and email address

  3. #3
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,549
    Plugin Contributions
    28

    Default Re: Change width of input boxes on login page

    Bingo! That did it.

    Thanks!

  4. #4
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: Change width of input boxes on login page

    Hi, ZenCart user.

    I wont in my Login page to delete some fild like name or adress.
    Hay to remove thet field, thet costumer don't have to input thet information.

    Thenks,

  5. #5
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,549
    Plugin Contributions
    28

    Default Re: Change width of input boxes on login page

    Quote Originally Posted by kobra8 View Post
    Hi, ZenCart user.

    I wont in my Login page to delete some fild like name or adress.
    Hay to remove thet field, thet costumer don't have to input thet information.

    Thenks,
    The file you need to edit is includes/templates/YOURTEMPLATE/templates/tpl_modules_create_account.php

    Remove any fields you don't want.

  6. #6
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: Change width of input boxes on login page

    Thenks on respons, bay hay to Remove fields?

    I wont to remove last name fild.
    To delete:

    <label class="inputLabel" for="lastname"><?php echo ENTRY_LAST_NAME; ?></label>
    <?php echo zen_draw_input_field('lastname', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_lastname', '40') . ' id="lastname"') . (zen_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="alert">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?>
    <br class="clearBoth" />


  7. #7
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: Change width of input boxes on login page

    Hay to edit the file includes/templates/YOURTEMPLATE/templates/tpl_modules_create_account.php

    To remove any fields I don't want.

  8. #8
    Join Date
    Oct 2005
    Location
    Chicago, IL USA
    Posts
    1,549
    Plugin Contributions
    28

    Default Re: Change width of input boxes on login page

    Yes, you can delete those lines of code and you should be fine.

    Be sure you're editing the file in /YOURTEMPLATE/ folder and not /default_template/

  9. #9
    Join Date
    Mar 2009
    Location
    Serbia
    Posts
    349
    Plugin Contributions
    0

    Default Re: Change width of input boxes on login page

    Thenks, it works

 

 

Similar Threads

  1. v150 Change display-width of account input fields
    By mi16chap in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 8 May 2012, 12:41 PM
  2. Extra input boxes on login page???
    By mikestaps in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Nov 2010, 08:10 PM
  3. change width on the categories page (price width)
    By oberheimer in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Sep 2010, 05:53 PM
  4. How to change light blue in input boxes
    By audleman in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Sep 2007, 09:29 PM
  5. login page input boxes maxlength = 0 or 1
    By styol in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 17 Mar 2007, 02:34 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR