Forums / General Questions / Printer Friendly Button ?

Printer Friendly Button ?

Locked

Views: 3,553

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
16 Jun 2008, 5:25 PM
#1
alex123 avatar

alex123

New Zenner

Join Date:
Jul 2006
Posts:
43
Plugin Contributions:
0

Printer Friendly Button ?

Hi everyone,

I would like to add a “Printer Friendly” button on the Product’s info page.
Does anybody know, what is the best way to go about it?

Thank you.

17 Jun 2008, 6:18 AM
#2
alex123 avatar

alex123

New Zenner

Join Date:
Jul 2006
Posts:
43
Plugin Contributions:
0

Re: Printer Friendly Button ?

Should I just look for a java script and add it to the product_info.php ? or is it more complicated than that ?

Thanks

17 Jun 2008, 6:35 AM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Printer Friendly Button ?

You can edit print_stylesheet.css to hide unwanted elements and adjust some facets of the display when printing a page.

By using #productInfoBody .yourProductInfoClass {}, print style alterations can be limited to the product info page.

17 Jun 2008, 7:56 AM
#4
alex123 avatar

alex123

New Zenner

Join Date:
Jul 2006
Posts:
43
Plugin Contributions:
0

Re: Printer Friendly Button ?

Thank you gjh42 for the info,

Maybe I am missing something, but I still don't understand how to create a "Printer Friendly" link on the product page.

Thanks.

17 Jun 2008, 10:32 AM
#5
cjpinder avatar

cjpinder

Totally Zenned

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

Re: Printer Friendly Button ?

Alex123:

Maybe I am missing something, but I still don't understand how to create a "Printer Friendly" link on the product page.

You don't need to. You just adjust the print_stylesheet.css file until the page prints out how you want.

Regards,
Christian.

18 Jun 2008, 5:42 AM
#7
alex123 avatar

alex123

New Zenner

Join Date:
Jul 2006
Posts:
43
Plugin Contributions:
0

Re: Printer Friendly Button ?

Yes thats that is what I mean Steven.. Just a simple button where soemone can click in order to print the page. In some cases ( but I guess this would need more customization ) the page that is going to be printed pops-up so you know what you are going to be printing.

Is this button easy to impement ?

Thanks

18 Jun 2008, 6:16 AM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Printer Friendly Button ?

The print_stylesheet when properly filled out makes a printer-friendly page output without a separate button or javascript code required. It does not affect the screen view.

18 Jun 2008, 10:58 PM
#11
drbyte avatar

drbyte

Sensei

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

Re: Printer Friendly Button ?

Christian and Glenn are correct. Zen Cart added the print stylesheet support for this very reason. If the customer clicks the regular print button in their browser, it'll print using the print stylesheet to override portions of the main stylesheet, allowing you to customize the printed content without having to mess with javascript or any addons.

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

19 Jun 2008, 4:15 AM
#12
alex123 avatar

alex123

New Zenner

Join Date:
Jul 2006
Posts:
43
Plugin Contributions:
0

Re: Printer Friendly Button ?

Thank you ALL very much, for your suggestions.

I will work more with the print_stylesheet.css, it does seem to have a lot of possibilities.

Regards
Alex