Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    528
    Plugin Contributions
    2

    Default Registration fields

    I need to have two new fields for my customers.

    I see an option in phpMy Admin to insert new fields into a table. I would like to include optional fields for company registration to include CO and VAT registration #'s

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

    Default Re: Registration fields

    This is a little story on adding new fields to the customers tables:
    customers
    customers_info
    address_book

    http://www.zen-cart.com/forum/showth...t=address_book

    Perhaps it will help you organize how you want to do this and which table to put your new fields in to hold the information ...

    Then it is a matter of trace the fields and clone the adding/editing/display features throughout the Catalog and Admin ...
    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: v1.5.5]
    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 2005
    Location
    Hoedspruit
    Posts
    528
    Plugin Contributions
    2

    Default Re: Registration fields

    I have been through a fairly long process already, using the DTK and thought that I was finished, but for a couple of things:

    I have cloned the code to read eg:
    <legend><?php echo CATEGORY_VAT_NUMBER; ?></legend>
    <label class="inputLabel" for="vatnumber"><?php echo ENTRY_VAT_NUMBER; ?></label>
    <?php echo zen_draw_input_field('vatnumber', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_vatnumber', '12') . ' id="vatnumber"') . (zen_not_null(ENTRY_VAT_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_VAT_NUMBER_TEXT . '</span>': ''); ?>
    having replaced the original: "entry_company" etc. I also created a field in the database table address_book called "entry_vatnumber" , but can't find the string that defines the box size:
    <input type="text" name="company" size = "33" maxlength = "32" id="company" />
    I have placed all my mods into:
    includes/templates/template_default/templates/parafanaylya/tpl_modules_address_book_details.php
    includes/templates/template_default/templates/parafanaylya/tpl_modules_checkout_new_address.php
    includes/templates/template_default/templates/parafanaylya/tpl_modules_create_account.php
    admin/includes/languages/parafanaylya/english.php
    and about 5 others

 

 

Similar Threads

  1. Additional registration fields
    By richard.rodriguez in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Nov 2009, 11:51 AM
  2. Registration form fields
    By ajaysingh in forum General Questions
    Replies: 2
    Last Post: 16 Sep 2009, 08:11 AM
  3. Additional Fields in Registration?
    By uruharacosplay in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 30 Nov 2007, 03:36 AM
  4. Add fields to registration
    By mystic24 in forum General Questions
    Replies: 0
    Last Post: 6 Sep 2007, 03:26 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