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
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
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!
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: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:<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>': ''); ?>I have placed all my mods into:<input type="text" name="company" size = "33" maxlength = "32" id="company" />
and about 5 othersincludes/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
Bookmarks