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,795
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.
.
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.
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"
.
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.
Tell staff why this post should be reviewed.