lynnmcdee Posted February 20, 2014 Share Posted February 20, 2014 Hi, When I try to print four different customer packing lists the page breaks are missing and they all continuously print. Which file do i alter and how do i insert a break? Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 20, 2014 Share Posted February 20, 2014 It is supposed to page-break. I hope your browser isn't disagreeing with or ignoring the CSS rules. In the admin skin template orders.print.php, line 11 has: <div class="page-break"> which starts each page. The loop on line 10 iterates through each order, and each order is minimum two pages long (an order summary page to go in the box, and a notes page). The CCS is: .page-break { page-break-after: always; } If the <div> isn't in the file, or the CSS isn't in the admin styles, print.css file, please try to recollect if any changes were made to these files. Hopefully, the browser you are using understands the CSS. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted February 20, 2014 Author Share Posted February 20, 2014 Hi, I have tried printing in explorer and Chrome and it is the same. line 10 :{foreach from=$ORDER_LIST item=order} line 11 : <div class="page-break"> Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 20, 2014 Share Posted February 20, 2014 What about the print.css file? The page-break class will be at the bottom. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted February 20, 2014 Author Share Posted February 20, 2014 print.css file is: <div class="page-break"> I think it could be the order notes that is causing the problem! Can I removed the order notes? Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 20, 2014 Share Posted February 20, 2014 In the print.css file, the code near the bottom should be: .page-break { page-break-after: always; } Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted February 20, 2014 Author Share Posted February 20, 2014 No, I can't see .page-break { page-break-after: always;} Where should I insert this code? Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 20, 2014 Share Posted February 20, 2014 The file, /admin/styles/print.css, lines 1-11, should look like this: /* CSS Document for Print out of Order */ html, body { margin: 0px; padding: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.9em; border: none; } Lines 127-133 should look like this: #footer p { margin: 0px; } .page-break { page-break-after: always; } fieldset If the contents of your print.css do not match the above, then please download a CC5 package and upload to your site just this file, replacing the existing print.css file. Then try printing again. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted February 20, 2014 Author Share Posted February 20, 2014 The contents of the print.css do match the above Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 20, 2014 Share Posted February 20, 2014 Ok, so print.css has the correct contents. We now need to make sure that the printable page sent to the browser is getting and using the CSS. This will take some technical skill. You said you are using Explorer and Chrome. I don't use either, so how the following will be accomplished, I'm not sure. You need to find out if the browser successfully received the print.css file. Then, examining the <div> containing the page-break class, make sure the browser has applied that class to the <div>. This can be done with Firebug, especially when Firebug is integrated with the Firefox browser. Various conversations on other forums discuss, for the Chrome browser, that the CSS property that causes page breaks has had on and off support across version 8 to 11. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted February 20, 2014 Author Share Posted February 20, 2014 Ok, I will try. How do I remove the order notes from the packing slip? Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted February 20, 2014 Author Share Posted February 20, 2014 I Have downloaded Firefox and integrated Firebug as advised. This is what the CSS file is showing: CSS file: html, body { border: medium none; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 0.9em; margin: 0; padding: 0; } hr { background-color: #000000; border: medium none; color: #000000; height: 1px; } #footer p { margin: 0; } .page-break { page-break-after: always; } What do you suggest? Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 20, 2014 Share Posted February 20, 2014 First of all, did Firefox print the multiple orders form-feeding the pages separately as necessary? Knowing that Firefox did request and receive the CSS file is a very good start. "How do I remove the order notes from the packing slip?" In the admin template file orders.print.php, find this line of code (near line 76): {if !empty($order.notes)} Make it look like this: {if false && !empty($order.notes)} Then, in admin, Maintenance, Rebuild tab, check the box for Clear cache, and click Submit. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted February 21, 2014 Author Share Posted February 21, 2014 No, unfortunately Firefox did not print the multiple orders form-feeding the pages separately. What do you suggest now I have now removed the order notes - big thank you. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 21, 2014 Share Posted February 21, 2014 "What do you suggest now?" Try a different printer? Being serious now, we have three browsers sending the (essentially) same document to the printer. The HTML and the CSS should cause page breaks. When you get the window that has the document to be printed, cancel the Print job but keep the window open. Hopefully, this window will have a command menu bar so that you can have the browser give you a "Print Preview". Observe if there are appropriate page breaks in the browser Print Preview display. If so, the only remaining suspect, however improbable, must be the printer. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted February 23, 2014 Author Share Posted February 23, 2014 I think this is just something i will have to live with. I can print preview and manually change the page breaks as I go. Thanks for all your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.