If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / How to create Print icon / "Print htis page" for every product?

How to create Print icon / "Print htis page" for every product?

Locked

Started by adi2009 on 17 Feb 2010, 7:02 AM · Views: 3,317

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
17 Feb 2010, 7:02 AM
#1
adi2009 avatar

adi2009

New Zenner

Join Date:
Dec 2009
Location:
Sarajevo
Posts:
80
Plugin Contributions:
0

How to create Print icon / "Print htis page" for every product?

Hello,

I have almost finished my first zen cart web site which I created for my client. He is very satisfied with website but he noticed something interesting o website: there is no print icon for each product on web site which could be useful for end users, for example: if they find some interesting product with large description, they want to print it out directly from website - simply by clicking on print icon.

I am not sure if this possible, does zen cart already has this option so I could activate it or I need to modify some of the files from zen-cart package to make this possible? I searched through forum for similar topic but I couldn find anything like my problem :huh:

Any help is appreciated.
Cheers!:smile:

MY Website
The best of the best: Zen Cart

17 Feb 2010, 7:16 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to create Print icon / "Print htis page" for every product?

Products can require scrolling down to capture the complete details,
So a std print page that would also grab the browser stuff won't do.
I have not seen a contribution for this but have to admit that there are so many now that I have not kept up and you should definately look for your self

I might post back with a bit of starting code

Zen-Venom Get Bitten

17 Feb 2010, 7:47 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to create Print icon / "Print htis page" for every product?

Actually found a thread that deals with printing the center content only -

http://www.zen-cart.com/forum/showthread.php?t=60669

Zen-Venom Get Bitten

17 Feb 2010, 1:14 PM
#4
adi2009 avatar

adi2009

New Zenner

Join Date:
Dec 2009
Location:
Sarajevo
Posts:
80
Plugin Contributions:
0

Re: How to create Print icon / "Print htis page" for every product?

Thank you kobra for quick reply/help!

I will try with this code asap and keep you informed if it works out:lamo:

MY Website
The best of the best: Zen Cart

18 Feb 2010, 9:49 AM
#5
adi2009 avatar

adi2009

New Zenner

Join Date:
Dec 2009
Location:
Sarajevo
Posts:
80
Plugin Contributions:
0

Re: How to create Print icon / "Print htis page" for every product?

huh:blink:I just read all thread and I am not sure if I can make use of it because of this:

I have a print button in tpl_main_page.php that triggers a print function

In my tpl_main_page.php I cant find any print button/option so it looks like I missing that part?

MY Website
The best of the best: Zen Cart

18 Feb 2010, 12:02 PM
#6
llynix avatar

llynix

Zen Follower

Join Date:
Jul 2009
Location:
Texas
Posts:
210
Plugin Contributions:
0

Re: How to create Print icon / "Print htis page" for every product?

adi2009:

In my tpl_main_page.php I cant find any print button/option so it looks like I missing that part?

http://javascript.about.com/library/blprint.htm

DentalPlanet Designed/Administrated by Falls Geek

4 Mar 2010, 5:49 PM
#7
adi2009 avatar

adi2009

New Zenner

Join Date:
Dec 2009
Location:
Sarajevo
Posts:
80
Plugin Contributions:
0

Re: How to create Print icon / "Print htis page" for every product?

kobra:

Actually found a thread that deals with printing the center content only -

http://www.zen-cart.com/forum/showthread.php?t=60669

llynix:

http://javascript.about.com/library/blprint.htm

Thank you very much kobra and llynix! I achieved exactly what I wanted: print only center column.

Cheers:wink:

MY Website
The best of the best: Zen Cart