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.
Views: 3,553
New Zenner
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.
New Zenner
Should I just look for a java script and add it to the product_info.php ? or is it more complicated than that ?
Thanks
Black Belt
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.
New Zenner
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.
Totally Zenned
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.
Totally Zenned
Alex123:
I would like to add a “Printer Friendly” button
Do you mean like on this page?
http://www.pilonidalproducts.com/privacy.html
Mods: Admin Activity Report || PO Box Ban || Empty Cart Manager || Autoresponder+ || Zip Validator || Desktop Data || SRiC
New Zenner
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
New Zenner
Here is an example: http://www.arlisa-bijoux.com/marcasite-butterfly-p-61.html of what I mean.
Look at the "Printer Friendly Page" link
Thanks
Black Belt
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.
Totally Zenned
Alex123, here's a link to how I added the button, although Glenn's approach sounds much better to me.
Mods: Admin Activity Report || PO Box Ban || Empty Cart Manager || Autoresponder+ || Zip Validator || Desktop Data || SRiC
Sensei
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.
New Zenner
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
Tell staff why this post should be reviewed.