Jump to content

Packing List Merging on one page


lynnmcdee

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

"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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...