OFFICIAL SUPPORT THREAD for the following contribution:
Extra Fields for Customer Sign Up
Zen Cart 1.3.9
Not yet in the downloads section, but has been submitted.
Enjoy!
OFFICIAL SUPPORT THREAD for the following contribution:
Extra Fields for Customer Sign Up
Zen Cart 1.3.9
Not yet in the downloads section, but has been submitted.
Enjoy!
UPDATE: module can now be downloaded from here:
http://www.zen-cart.com/index.php?ma...oducts_id=1694
I have downloaded your contribution, and it works fine for me! Tx!
I'm using this field for the tax number of my costumer.
I wonder how to add this additional field (code) on the invoice.php (Admin section) and packingslip.php, so it will appear on the order when i'm printing it!
Could you help me out with this one?
eOstrE, I haven't tried this yet, but in another thread a user posted this solution:
Original thread: http://www.zen-cart.com/forum/showthread.php?t=73181
I have pasted the code in the document as shown, and i get this error message:
1054 Unknown column 'c.customers_taxid' in 'field list'
in:
[SELECT o.customers_id, c.customers_taxid from zenbooksorders o, zenbookscustomers c WHERE c.customers_id= o.customers_id and o.orders_id = '93806']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
This is rather Chinese to me...
Ahh... sorry that must have been personalized to the name of their custom field. If you installed the module exactly as I built it, the custom field will be named "customers_extrafield"
So, I *think* this would be the correct code instead. Give it a shot and see what happens :)
Add this code at line 28:
so now you can use the $customers_extrafield variable where you want, for example in one of the table cells:Code:$oID = zen_db_prepare_input($_GET['oID']); //start extrafield $sql = "SELECT o.customers_id, c.customers_extrafield from " . TABLE_ORDERS . " o, " . TABLE_CUSTOMERS . " c WHERE c.customers_id= o.customers_id and o.orders_id = '" . $oID . "'"; $chk_customers_extrafield = $db->Execute($sql); $customers_extrafield = $chk_customers_extrafield->fields['customers_extrafield']; //end extrafield
Code:<?php echo ENTRY_EXTRAFIELD; ?></b><?php echo ' ' . $customers_extrafield; ?>
And it worked!
Thank you so much!
Using V. 1.3.9, fresh install
Almost worked perfect for me, got this on the sign-up page:
EIN Number: (with a box)
ENTRY_EXTRAFIELD (box) ENTRY_EXTRAFIELD_TEXT
Cyndi,
Try step 3 of the installation process:
3. Open the 2 language files and define the names of your new field:
/includes/languages/english/extra_definitions/extrafield_defines.php
/admin/includes/languages/english/customers.php
I'll try again, I thought I did that but I may have mistyped too...be right back and thanks for the awesome quick answer.
Bookmarks