Zen Follower
- Join Date:
- Sep 2006
- Posts:
- 269
- Plugin Contributions:
- 0
Print Syle for invoice and and packaging slip in admin
How can i alter the PRINT layout for the invoice and packagingslip?
I'd love to add a centered watermark to the page.
Views: 2,783
Zen Follower
How can i alter the PRINT layout for the invoice and packagingslip?
I'd love to add a centered watermark to the page.
Totally Zenned
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.
Zen Follower
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
Sensei
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:```
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> ```to this:```
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> [B]<link rel="stylesheet" type="text/css" media="print" href="includes/stylesheet_print.css"> [/B] ```Then add suitable print styles to the stylesheet_print.css file.
Sensei
stevefriedman71:
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
Background images don't usually print. That's mostly a browser thing. :blink:
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/training/ie6/background.aspx
http://ask.metafilter.com/25297/CSS-designs-wont-print-background-images
http://support.microsoft.com/kb/296326 - "it's by design"
Tell staff why this post should be reviewed.