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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer / Opencart Tester


Legendary Member

Posts

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

Users browsing this forum: No registered users and 1 guest