Page 1 of 1
Invoice Print Error
Posted: Wed Oct 05, 2016 7:34 pm
by Nordikota
New & clean OC2302 install. No MODs or themes installed.
Added 2 dummy orders. If you try to print both by clicking the tickbox and selecting print, It looks OK on the preview page but when you try to print you get an overlap of columns on the 2nd page:
Any ideas anyone?
Re: Invoice Print Error
Posted: Fri Oct 21, 2016 9:39 pm
by insomniak
Hi, I have been having the same issue and it appears to have just come out of nowhere.
I have tested it on 3 different Open Cart installations and different versions and it's present on all of them.
It used to work fine and there hasn't been any changes made to any of the installs so I can only assume its a bug within the browser, try it on Mozilla Firefox and see if that helps. I normally use Chrome and the issue occurs on this and as yet I haven't found a fix.
Luckily its only a minor glitch at the moment and isn't causing too many problems but I would still like to get it back to how it should be.
Re: Invoice Print Error
Posted: Tue Oct 25, 2016 1:51 pm
by Nordikota
I reported it as a bug but no response

Re: Invoice Print Error
Posted: Tue Oct 25, 2016 2:56 pm
by pm-netti
Nordikota wrote:New & clean OC2302 install. No MODs or themes installed.
Added 2 dummy orders. If you try to print both by clicking the tickbox and selecting print, It looks OK on the preview page but when you try to print you get an overlap of columns on the 2nd page:
Any ideas anyone?
Hi
You can try do this test to file admin/view/template/sale/order_invoice.tpl lines 14-16:
Code: Select all
<div class="container">
<?php foreach ($orders as $order) { ?>
<div style="page-break-after: always;">
change to:
Code: Select all
<div style="page-break-after: always;" class="container">
<?php foreach ($orders as $order) { ?>
<div>
Re: Invoice Print Error
Posted: Tue Oct 25, 2016 3:24 pm
by Nordikota
Thanks for answering :-)
Tried that. The site logo appears at the top & bottom of the 1st page now, and there is still a mix of text on the 2nd page..
Re: Invoice Print Error
Posted: Tue Oct 25, 2016 4:46 pm
by pm-netti
Nordikota wrote:Thanks for answering :-)
Tried that. The site logo appears at the top & bottom of the 1st page now, and there is still a mix of text on the 2nd page..
This can change now only to way:
Code: Select all
<body style="page-break-after: always;" >
You can also test then that first print it to PDF file.
Re: Invoice Print Error
Posted: Tue Oct 25, 2016 6:25 pm
by insomniak
Hi,
As I said above I don't think this is a bug in OpenCart as if you print preview in Firefox the glitch does not appear.
Also I have not made any changes to my OpenCart installations and this invoice glitch appeared overnight and all 3 of my OpenCart stores.
Re: Invoice Print Error
Posted: Tue Oct 25, 2016 6:33 pm
by insomniak
Nordikota wrote:New & clean OC2302 install. No MODs or themes installed.
Added 2 dummy orders. If you try to print both by clicking the tickbox and selecting print, It looks OK on the preview page but when you try to print you get an overlap of columns on the 2nd page:
Any ideas anyone?
Hi again, I've just installed Chrome Beta browser
https://www.google.co.uk/chrome/browser/beta.html and now the glitch is not appearing in print preview but the invoices text is now smaller.
So as I suspected its just a browser bug!
Re: Invoice Print Error
Posted: Wed Oct 26, 2016 12:57 am
by Nordikota
Looks like you are right.
In Chrome, the mixed text in the headers has gone from Page 2, but the font size is really small.
Works fine in Firefox and MS Edge
Re: Invoice Print Error
Posted: Wed Nov 02, 2016 3:28 am
by Rainforest
YES!!!!
Omg, this was driving me NUTS.
Printing invoices now and the text is REALLY small.
I used a FREE chrom extension, Print Friendly & PDF
we are using that till Chrome gets better/
Re: Invoice Print Error
Posted: Wed Nov 02, 2016 8:58 am
by IP_CAM
knowband.plugins wrote:You can also use ...
Something to fix!
Ernie