How can i alter the PRINT layout for the invoice and packagingslip?
I'd love to add a centered watermark to the page.
How can i alter the PRINT layout for the invoice and packagingslip?
I'd love to add a centered watermark to the page.
Hi,
You would need to alter the admin/packingslip.php and admin/invoice.php files. They use the admin/includes/stylesheet.css file for styling. They do not have a separate stylesheet for printing but you could add one.
Regards,
Christian.
i figured that... i tried (and succeded) to add the watermark but that does NOT get printed...
So, there has to be a way to make it print and print in the center of the page, that is...
adding the background image to what i see on the screen isn't the issue at all. but i don't want the wtaremark on the screen... i want it on the paper
CJPinder is right.
Here's some additional info that may help steer you in that direction:
The admin has a print stylesheet which is currently used on the Orders page. You could set up the invoice and packingslip to use it also:
change this:to this:Code:<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">Then add suitable print styles to the stylesheet_print.css file.Code:<link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <link rel="stylesheet" type="text/css" media="print" href="includes/stylesheet_print.css">
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Background images don't usually print. That's mostly a browser thing.
You might get around it by changing some browser page-setup preferences.
http://web-graphics.com/mtarchive/001703.php
http://archivist.incutio.com/viewlist/css-discuss/61548
http://www.microsoft.com/enable/trai...ackground.aspx
http://ask.metafilter.com/25297/CSS-...kground-images
http://support.microsoft.com/kb/296326 - "it's by design"
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.