Forums / Templates, Stylesheets, Page Layout / Print just the product/item?

Print just the product/item?

Started by unsub on 20 Jan 2011, 5:27 AM · Views: 508

Results 1 to 4 of 4
20 Jan 2011, 5:27 AM
#1
unsub avatar

unsub

New Zenner

Join Date:
Dec 2010
Posts:
31
Plugin Contributions:
0

Print just the product/item?

I am looking to print out just the select product from my store.
I don't need the left and right boxes, or a list. When a user clicks through the categories and just gets to a product, how do I add a "print" button / function that will strictly print only that 1 item?

http://dizzydeals.net/index.php?main_page=document_general_info&cPath=1&products_id=7

Any help would be great!

20 Jan 2011, 6:37 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: Print just the product/item?

Use print_stylesheet.css. There is a copy in /includes/templates/template_default/css/; copy it to /your_template/css/ and add rules for the product info page's excess elements to display: none; when printed. This will work without adding a Print button, allowing the browser's regular print function to do the job.

20 Jan 2011, 2:43 PM
#3
unsub avatar

unsub

New Zenner

Join Date:
Dec 2010
Posts:
31
Plugin Contributions:
0

Re: Print just the product/item?

Is there a way to get a Print icon or the words print to show up every time I add a new product? Also, can the Image and Print image be removed?

20 Jan 2011, 3:16 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Print just the product/item?

If you have a Print icon, people will expect it to be a clickable link which will print the page. Don't do it unless you are prepared to code that functionality.

You can include a line at the top of the product area suggesting that the product info can be neatly printed, or will format automatically when printed...
I would add a div to /includes/templates/your_template/templates/tpl_product_info_display.php with this output, and give it an id so you can style it for screen output and hide it for print output.