Page 1 of 1

Custom text on invoice template

Posted: Fri Feb 28, 2020 5:12 pm
by choulio19
Hi i use OC 2.3.0.2

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 } ?>
. It worked but i tried to "pass" it though proforma invoice but it doesnt get the inv number (correctly)
and now think this could "pass" through order status.

I cant find html tags for order status.
Could someone help me? Thanks

Re: Custom text on invoice template

Posted: Fri Feb 28, 2020 8:53 pm
by straightlight
It worked but i tried to "pass" it though proforma invoice but it doesnt get the inv number (correctly)
and now think this could "pass" through order status.
Contact the extension developer to resolved this issue.