Forums / Templates, Stylesheets, Page Layout / Print Syle for invoice and and packaging slip in admin

Print Syle for invoice and and packaging slip in admin

Locked

Views: 2,795

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
25 Aug 2007, 7:41 PM
#1
stevefriedman71 avatar

stevefriedman71

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.

25 Aug 2007, 8:16 PM
#2
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Print Syle for invoice and and packaging slip in admin

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.

25 Aug 2007, 8:24 PM
#3
stevefriedman71 avatar

stevefriedman71

Zen Follower

Join Date:
Sep 2006
Posts:
269
Plugin Contributions:
0

Re: Print Syle for invoice and and packaging slip in admin

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

25 Aug 2007, 8:24 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Print Syle for invoice and and packaging slip in admin

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.

25 Aug 2007, 8:26 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Print Syle for invoice and and packaging slip in admin

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.