Forums / Managing Customers and Orders / Registration fields

Registration fields

Locked

Started by parafanaylya on 20 Jul 2006, 11:25 AM · Views: 1,937

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Jul 2006, 11:25 AM
#1
parafanaylya avatar

parafanaylya

Totally Zenned

Join Date:
Jul 2005
Location:
Hoedspruit
Posts:
470
Plugin Contributions:
1

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

20 Jul 2006, 2:01 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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/showthread.php?t=38535&highlight=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!]
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!

20 Jul 2006, 4:00 PM
#3
parafanaylya avatar

parafanaylya

Totally Zenned

Join Date:
Jul 2005
Location:
Hoedspruit
Posts:
470
Plugin Contributions:
1

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