Post by choulio19 » Fri Feb 28, 2020 5:12 pm

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

Newbie

Posts

Joined
Fri Jan 31, 2020 9:45 pm

Post by straightlight » Fri Feb 28, 2020 8:53 pm

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: Google [Bot] and 17 guests