Zen Cart Logo
Forums / Upgrading to 1.5.x / Adding Custom Field to Invoice from Admin (Backend)

Adding Custom Field to Invoice from Admin (Backend)

Views: 912

Results 1 to 1 of 1
11 Jul 2012, 9:11 PM
#1
futurist71 avatar

futurist71

New Zenner

Join Date:
Jul 2011
Posts:
24
Plugin Contributions:
0

Adding Custom Field to Invoice from Admin (Backend)

This is a migration from 1.3.9h to 1.5. I already had custom field for invoices in version 1.3.9h, but now when migrating Zencart it doesn't display the Custom field for the column created on table customers as customers_dni

So I edited admin/invoice.php and added this:

<td class="main"><?php echo '<b>' . ENTRY_DNI . "</b> " . $order->customer['customers_dni']; ?></td>

besides in includes/languages/english & spanish i edited invoice.php and added this:

define('ENTRY_DNI', 'DNI:');

So far what I am able to print is "DNI:" but there is no value printed for the that value which is on the DB.

What am I missing. Thanks in advance.