Page 7 of 10

Re: [Released] Prof. Invoice and Packingslip

Posted: Fri Jan 06, 2012 4:30 pm
by Xciso
Make it right so we can use your vqmod version :)

Re: [Released] Prof. Invoice and Packingslip

Posted: Fri Jan 06, 2012 4:57 pm
by olimax
OK
Here is the vQmod I made for OC V1.5.1.3 and VQMOD V2
It includes the Tax fixes as mentioned above

Packingslip vQmod for 1.5.1.3 V1.0

You will need to upload the files from the package too

It is for the English version
If you use another language then change the lines that point to the English files to your own

It is not extensively tested but it woks for me
Many thanks to i2Paq for the original
Oli

Re: [Released] Prof. Invoice and Packingslip

Posted: Mon Jan 09, 2012 3:59 am
by Solan
Hi and thanks for this good and free extension.

I have Version 1.5.1.3 in opencart

Everything looks fine exept that the invoicenumber dont show.. se image

Image

Im not really sure what invoicenumber is or do so maybe i dont need to have the invoice no and only use the order id..

How do i make the invoice no work?

Re: [Released] Prof. Invoice and Packingslip

Posted: Mon Jan 09, 2012 10:30 am
by olimax
you have to generate it, for some reason, under Order Details

Prof. Invoice and Packingslip

Posted: Tue Jan 10, 2012 8:45 pm
by thesialtec
I have just uploaded all the file to admin, after loading them my open cart page have lost all the graphics view, it is just simple links now, in other words there are no tabs etc, but simple text links. Even now I have deleted all the files but my open cart is still not gone back to normal. my open cart version is v1.4.9.3

sorry to say I did not have any back to cant to reverse back, pls. help as it looks very untidy to work in that layout.

here is the picture link, how it looks now

https://lh5.googleusercontent.com/-W3JQ ... hboard.png

Re: [Released] Prof. Invoice and Packingslip

Posted: Wed Jan 11, 2012 3:29 am
by Solan
olimax wrote:you have to generate it, for some reason, under Order Details

Super!!! Thanks..

but since i work with an invoice company they are going to have their own invoice number. How do i delete this invoice number so i just have the order date line?

Many thanks from Solan

Re: [Released] Prof. Invoice and Packingslip

Posted: Thu Jan 12, 2012 8:34 am
by jstrouse
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; ?>&nbsp;<?php echo $order['invoice_id']; ?>

Re: [Released] Prof. Invoice and Packingslip

Posted: Sun Jan 15, 2012 3:24 pm
by Ozfarmer
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 :)

Re: [Released] Prof. Invoice and Packingslip

Posted: Sun Jan 15, 2012 9:27 pm
by Xciso
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 :)
I think the corner is images, if it is, you can overvrite them with transparent pictures.

Re: [Released] Prof. Invoice and Packingslip

Posted: Mon Jan 16, 2012 3:59 am
by Ozfarmer
Hi Xciso, sorry I don't understand what you mean?

Re: [Released] Prof. Invoice and Packingslip

Posted: Mon Jan 16, 2012 4:12 am
by Ozfarmer
PetracheNicolae wrote:
i2Paq wrote:
FTW wrote:are you intend to make a version for OC v1.5.0.x??
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.
this will be nice to have in opencart 1.5.1.1. it is great

I have the same issue with all orders. And its not the printer ;)

Re: [Released] Prof. Invoice and Packingslip

Posted: Fri Jan 20, 2012 12:43 am
by Xciso
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 :)
I answar you about this before, but now i understand your problem.

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>&nbsp;</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>&nbsp;</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">&nbsp;</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>

Re: [Released] Prof. Invoice and Packingslip

Posted: Fri Jan 20, 2012 1:24 pm
by Ozfarmer
Xciso wrote:
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 :)
I answar you about this before, but now i understand your problem.

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>&nbsp;</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>&nbsp;</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">&nbsp;</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. ???

Re: [Released] Prof. Invoice and Packingslip

Posted: Fri Jan 20, 2012 4:49 pm
by Xciso
I changed so the borders not are background and fixed the length to be correct.
It works for me, so test and see ;)

Re: [Released] Prof. Invoice and Packingslip

Posted: Fri Jan 20, 2012 11:26 pm
by Solan
jstrouse 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; ?>&nbsp;<?php echo $order['invoice_id']; ?>
Thanks m8.. that did the trick ;)

Re: [Released] Prof. Invoice and Packingslip

Posted: Sat Jan 21, 2012 12:35 pm
by Ozfarmer
kgerken wrote:
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 } ?>

------
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? ???
Did you ever work this out? I have been trying for months to get Opencart to print each order on a separate page.

We have tried every "fix" under the sun but it remains the same.

Re: [Released] Prof. Invoice and Packingslip

Posted: Sat Jan 21, 2012 12:36 pm
by Ozfarmer
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 ;)
Sorry Xciso, that makes it worse. Ended up deleting all references to mainwhite and it looks ok now with no borders.

Re: [Released] Prof. Invoice and Packingslip

Posted: Sat Jan 21, 2012 1:23 pm
by Ozfarmer
Seemed to have fixed the multiple page printing add <div style="page-break-after: always"></div>
after
<?php foreach ($orders as $order) { ?> (notice the </div>)

in osc_order_invoice.tpl

make sure that their is a </div> after <div style="page-break-after: always"> in order_invoice.tpl.

Re: [Released] Prof. Invoice and Packingslip

Posted: Sun Jan 22, 2012 7:41 am
by Ozfarmer
How can I add the customers telephone number in the shipping box? I have tried adding:
<?php echo $text_telephone; ?> <?php echo $order['telephone'];
but this comes back with the store phone.

Re: [Released] Prof. Invoice and Packingslip

Posted: Tue Jan 24, 2012 12:41 am
by i2Paq
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 :)
You have to set you browser to print the Background and Images.

In FF goto File -> Page Setup, then on the Format & Options Tab tick the following box -> Print Background (color & images).

In IE goto File -> Page Setup -> tick the following box -> Print Background Color and Images.