Re: [Released] Prof. Invoice and Packingslip
Posted: Fri Jan 06, 2012 4:30 pm
Make it right so we can use your vqmod version 

OpenCart Community Forum - Discuss shopping cart and e-commerce solutions.
https://forum.opencart.com/
olimax wrote:you have to generate it, for some reason, under Order Details
I think the corner is images, if it is, you can overvrite them with transparent pictures.Ozfarmer wrote:Lovely mod!! the only issue I am having are the borders around the shipping and sold to details. It views fine in a browser but when I print preview or print the borders are dashed. Any bright ideas anyone
PetracheNicolae wrote:this will be nice to have in opencart 1.5.1.1. it is greati2Paq wrote:The guy I made it with has been absent for quite a while, when 1.5 is stable I will try and update it or have it updated.FTW wrote:are you intend to make a version for OC v1.5.0.x??
I answar you about this before, but now i understand your problem.Ozfarmer wrote:Lovely mod!! the only issue I am having are the borders around the shipping and sold to details. It views fine in a browser but when I print preview or print the borders are dashed. Any bright ideas anyone
Code: Select all
<td><table width="100%" border="0">
<tbody><tr>
<td valign="top" width="350" align="left">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td width="11"> <img src="view/osc_invoice/mainwhite_01.gif" alt="" width="11" height="16"></td>
<td><img src="view/osc_invoice/mainwhite_02.gif" alt="" width="320" height="16"></td>
<td width="19"> <img src="view/osc_invoice/mainwhite_03.gif" alt="" width="19" height="16"></td>
</tr>
<tr>
<td><img src="view/osc_invoice/mainwhite_04.gif" alt="" width="11" height="118"></td>
<td align="center" bgcolor="#ffffff"> <table class="main" width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td valign="top" align="left"><b><?php echo $text_to; ?></b></td>
</tr>
<tr>
<td valign="bottom" align="left"><img src="view/osc_invoice/pixel_trans.gif" alt="" width="1" border="0" height="5"></td>
</tr>
<tr>
<td><?php echo $order['payment_address']; ?></td>
</tr>
<tr>
<td><img src="view/osc_invoice/pixel_trans.gif" alt="" width="1" border="0" height="1"></td>
</tr>
<tr>
<td> </td>
</tr>
</tbody></table></td>
<td><img src="view/osc_invoice/mainwhite_06.gif" alt="" width="19" height="118"></td>
</tr>
<tr>
<td width="11"> <img src="view/osc_invoice/mainwhite_07.gif" alt="" width="11" height="18"></td>
<td><img src="view/osc_invoice/mainwhite_08.gif" alt="" width="320" height="18"></td>
<td width="19"> <img src="view/osc_invoice/mainwhite_09.gif" alt="" width="19" height="18"></td>
</tr>
</tbody></table></td>
<td> </td>
<td valign="top" width="350" align="right">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td width="11"> <img src="view/osc_invoice/mainwhite_01.gif" alt="" width="11" height="16"></td>
<td><img src="view/osc_invoice/mainwhite_02.gif" alt="" width="320" height="16"></td>
<td width="19"> <img src="view/osc_invoice/mainwhite_03.gif" alt="" width="19" height="16"></td>
</tr>
<tr>
<td><img src="view/osc_invoice/mainwhite_04.gif" alt="" width="11" height="118"></td>
<td align="center" bgcolor="#ffffff"> <table class="main" width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td valign="top" align="left"><b><?php echo $text_ship_to; ?></b></td>
</tr>
<tr>
<td valign="bottom" align="left"><img src="view/osc_invoice/pixel_trans.gif" alt="" width="1" border="0" height="5"></td>
</tr>
<tr>
<td valign="bottom" align="left"><?php echo$order['shipping_address']; ?></td>
</tr>
<tr>
<td valign="bottom" align="left"> </td>
</tr>
</tbody></table></td>
<td><img src="view/osc_invoice/mainwhite_06.gif" alt="" width="19" height="118"></td>
</tr>
<tr>
<td width="11"> <img src="view/osc_invoice/mainwhite_07.gif" alt="" width="11" height="18"></td>
<td><img src="view/osc_invoice/mainwhite_08.gif" alt="" width="320" height="18"></td>
<td width="19"> <img src="view/osc_invoice/mainwhite_09.gif" alt="" width="19" height="18"></td>
</tr>
</tbody></table>
Did you actually change anything in this code? when I compare this code with my original it shows no changes.Xciso wrote:I answar you about this before, but now i understand your problem.Ozfarmer wrote:Lovely mod!! the only issue I am having are the borders around the shipping and sold to details. It views fine in a browser but when I print preview or print the borders are dashed. Any bright ideas anyone
Change to this code inside the file osc_order_invoice.tpl. I think it starts around line 47.Code: Select all
<td><table width="100%" border="0"> <tbody><tr> <td valign="top" width="350" align="left"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td width="11"> <img src="view/osc_invoice/mainwhite_01.gif" alt="" width="11" height="16"></td> <td><img src="view/osc_invoice/mainwhite_02.gif" alt="" width="320" height="16"></td> <td width="19"> <img src="view/osc_invoice/mainwhite_03.gif" alt="" width="19" height="16"></td> </tr> <tr> <td><img src="view/osc_invoice/mainwhite_04.gif" alt="" width="11" height="118"></td> <td align="center" bgcolor="#ffffff"> <table class="main" width="100%" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td valign="top" align="left"><b><?php echo $text_to; ?></b></td> </tr> <tr> <td valign="bottom" align="left"><img src="view/osc_invoice/pixel_trans.gif" alt="" width="1" border="0" height="5"></td> </tr> <tr> <td><?php echo $order['payment_address']; ?></td> </tr> <tr> <td><img src="view/osc_invoice/pixel_trans.gif" alt="" width="1" border="0" height="1"></td> </tr> <tr> <td> </td> </tr> </tbody></table></td> <td><img src="view/osc_invoice/mainwhite_06.gif" alt="" width="19" height="118"></td> </tr> <tr> <td width="11"> <img src="view/osc_invoice/mainwhite_07.gif" alt="" width="11" height="18"></td> <td><img src="view/osc_invoice/mainwhite_08.gif" alt="" width="320" height="18"></td> <td width="19"> <img src="view/osc_invoice/mainwhite_09.gif" alt="" width="19" height="18"></td> </tr> </tbody></table></td> <td> </td> <td valign="top" width="350" align="right"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td width="11"> <img src="view/osc_invoice/mainwhite_01.gif" alt="" width="11" height="16"></td> <td><img src="view/osc_invoice/mainwhite_02.gif" alt="" width="320" height="16"></td> <td width="19"> <img src="view/osc_invoice/mainwhite_03.gif" alt="" width="19" height="16"></td> </tr> <tr> <td><img src="view/osc_invoice/mainwhite_04.gif" alt="" width="11" height="118"></td> <td align="center" bgcolor="#ffffff"> <table class="main" width="100%" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td valign="top" align="left"><b><?php echo $text_ship_to; ?></b></td> </tr> <tr> <td valign="bottom" align="left"><img src="view/osc_invoice/pixel_trans.gif" alt="" width="1" border="0" height="5"></td> </tr> <tr> <td valign="bottom" align="left"><?php echo$order['shipping_address']; ?></td> </tr> <tr> <td valign="bottom" align="left"> </td> </tr> </tbody></table></td> <td><img src="view/osc_invoice/mainwhite_06.gif" alt="" width="19" height="118"></td> </tr> <tr> <td width="11"> <img src="view/osc_invoice/mainwhite_07.gif" alt="" width="11" height="18"></td> <td><img src="view/osc_invoice/mainwhite_08.gif" alt="" width="320" height="18"></td> <td width="19"> <img src="view/osc_invoice/mainwhite_09.gif" alt="" width="19" height="18"></td> </tr> </tbody></table>
Thanks m8.. that did the trickjstrouse wrote:To delete the invoice #, remove it from the template (admin/view/template/sale/osc_order_invoice.tpl). I think just find this text and remove it.
<?php echo $text_invoice_id; ?> <?php echo $order['invoice_id']; ?>
Did you ever work this out? I have been trying for months to get Opencart to print each order on a separate page.kgerken wrote:Thanks for providing the Page break Solution. I can't get this to work on the Packing slip when multiple are selected. It still puts them on one page. Any other suggestions?Tiger1937 wrote:
As for page breaks... in the tpl files, I added :-
<?php foreach ($orders as $order) { ?>
<div style="page-break-after: always;"> <<<<----Added This Line
<!-- body_text //-->
&
</table>
<!-- body_text_eof //-->
</div> <<<<----Added This Line
<?php } ?>
------
Sorry Xciso, that makes it worse. Ended up deleting all references to mainwhite and it looks ok now with no borders.Xciso wrote:I changed so the borders not are background and fixed the length to be correct.
It works for me, so test and see
You have to set you browser to print the Background and Images.Ozfarmer wrote:Lovely mod!! the only issue I am having are the borders around the shipping and sold to details. It views fine in a browser but when I print preview or print the borders are dashed. Any bright ideas anyone