I work on the invoice template and almost i finished.
I need only one thing.
I want to display a custom message due to the order status.
For example, if the order status is processing and press the print button i want in one table to saw "Copy for Company"
When the order is completed and press to print then this change and print "Copy for Customer"
I made it with this code
Code: Select all
<?php if($invoice_no){ ?>
<tr>
<td><b><?php echo "Name:"; ?></b></td>
<td><?php echo "Copy for Customer"; ?></td>
</tr>
<tr>
<td><b><?php echo $text_invoice_no; ?></b></td>
<td><?php echo $invoice_prefix . $invoice_no; ?></td>
</tr>
<?php } else { ?>
<tr>
<td><b><?php echo "Name:"; ?></b></td>
<td><?php echo "Copy for Company"; ?></td>
</tr>
<?php } ?>
and now think this could "pass" through order status.
I cant find html tags for order status.
Could someone help me? Thanks