Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2011
    Posts
    4
    Plugin Contributions
    0

    Default Extra Fields for Customer Sign Up

    This is a wonderful add on and appears to be working great. I have added an additional "extrafield" for a website url and everything is fine except for one problem

    On the log in page the new extrafield2 shows a default width. I set this at 75 var and it is correct in the database and on the customers profile sheet.

    Where do I change the width of the 2nd extrafield so that it displays on the sign up page correctly?

    Thanks for any help

  2. #2
    Join Date
    Mar 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up

    Got It!!!! For Future Reference for anyone looking to increase the length of the extrafield........

    This file
    tpl_modules_create_account.php

    Original was:
    <!-- start extrafield2 -->
    <?php
    if (DISPLAY_EXTRAFIELD2 == 'true') {
    ?>
    <br class="clearBoth" />
    <label class="inputLabel" for="extrafield2"><?php echo ENTRY_EXTRAFIELD2; ?></label>
    <?php echo zen_draw_input_field('extrafield2', '', 'id="extrafield2"') . (zen_not_null(ENTRY_EXTRAFIELD2_TEXT) ? '<span class="alert">' . ENTRY_EXTRAFIELD2_TEXT . '</span>': ''); ?>
    <?php
    }
    ?>
    <!-- end extrafield2 -->


    Changed to:

    <!-- start extrafield2 -->
    <?php
    if (DISPLAY_EXTRAFIELD2 == 'true') {
    ?>
    <br class="clearBoth" />
    <label class="inputLabel" for="extrafield2"><?php echo ENTRY_EXTRAFIELD2; ?></label>
    <?php echo zen_draw_input_field('extrafield2', '',zen_set_field_length(TABLE_CUSTOMERS, 'customers_extrafield2', '75') . ' id="extrafield2"') . (zen_not_null(ENTRY_EXTRAFIELD2_TEXT) ? '<span class="alert">' . ENTRY_EXTRAFIELD2_TEXT . '</span>': ''); ?>
    <?php
    }
    ?>
    <!-- end extrafield2 -->

  3. #3
    Join Date
    Nov 2011
    Posts
    59
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up

    did you hack this into 1.3.9?

    I tried and it failed right off the bat.

    I went to a lot of trouble comparing every module using beyondcompare and got an error theat killed zancart when I started it - bummer.

  4. #4
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,163
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up

    Jjj,
    this will give you an idea of the structure on how to do this:

    http://www.zen-cart.com/index.php?ma...roducts_id=587
    Mark
    Hare Do

  5. #5
    Join Date
    Nov 2011
    Posts
    59
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up

    Quote Originally Posted by haredo View Post
    Jjj,
    this will give you an idea of the structure on how to do this:

    http://www.zen-cart.com/index.php?ma...roducts_id=587
    thanks much - I sat down and just wrote the code myself last night and it's working great - thanks

  6. #6
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,163
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up

    Your welcome, glad i could assist you ...

    You should submit the code to the Free Software Add Ons for me and fellow zenners to benefit ..
    Mark
    Hare Do

  7. #7
    Join Date
    Nov 2011
    Posts
    59
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up

    Quote Originally Posted by haredo View Post
    Your welcome, glad i could assist you ...

    You should submit the code to the Free Software Add Ons for me and fellow zenners to benefit ..
    there was a lot of hacking to do it and I'd prefer to leave it as is for right now until it's tested more.

    But I did take the embed_products_onto_3rd_party_site add-on and rewrote today so that it takes 1 or more items from the Featured List and displays those on 3rd party sites including the product_name field and make the display look real nice through the use of centering fields putting them in a table etc.

    Displaying featured products in a sidebar on our forum will hopefully help sales.

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

 

 

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. Changing Required Fields for New Customer Sign-Up
    By jackibar in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Aug 2009, 09:43 PM
  3. how to add extra infomation need to new customer sign up?
    By sshhll in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 7 Apr 2008, 07:01 PM
  4. New fields on customer sign up and edit
    By meknownowt in forum Managing Customers and Orders
    Replies: 0
    Last Post: 28 Feb 2008, 06:06 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