New Zenner
- Join Date:
- Jun 2009
- Posts:
- 42
- Plugin Contributions:
- 0
Making Additional Customer Fields Show Up on Invoices
Greetings,
I am running zc 1.3.8a and not going to be doing the new updates because it's too much work...anyways:
I have gotten the "Extra Field on Customer Sign Up" addon working good in order to add a VAT field in that my international customers can include if they want.
I use Super Orders for printing invoices out for customers when they want it.
What I am trying to do is show the new field on both the normal invoice.php and super_invoice.php. I have located the php files in the admin folder, along with the ones in the language folder. Using the super_invoice.php files as an example:
I have found the lines in the php files I need to change I think. From my understanding, the invoice files point to the orders.php file. I'd like to add a line that says "VAT/Tax ID:" right before the billing phone number. This code should be inserted around line 370 on the orders.php and line 132 on the super_invoice.php (as an example).
I have tried the following on the orders.php:
<tr>
<td class="main"><strong><?php echo ENTRY_EXTRAFIELD; ?></strong></td>
<td class="main"><?php echo $order->customer['vat_taxid']; ?></td>
</tr>
And this on the super_orders.php:
<tr>
<td class="main"><?php echo $order->customer['vat_taxid']; ?></td>
</tr>
I don't know if I need to define the ```php
$order->customer['vat_taxid']
Any help? Thanks