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; ?>


Reply With Quote
