You can't use those PHP functions (such as: echo $this->linkIcon ) everywhere you want.
Virtuemart developers have defined those parameters in the pages where they are needed. Apparently they didn't define it in manufacturer page, 'cause they didn't think manufacturer page needs to be printed..
You can use this little trick. Follow my steps.. (ohh by the way, this is a custom modification and our free support doesn't cover the custom modification, but i am going to guide you to solve it anyway..)
In Category browse page;
(to this PHP file: ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/category/default.php)
Add this regular Link:
<A HREF="javascript:window.print()">Click to Print This Page</A>
To any where you would like to put the "print icon". BUT this will print the whole page, including menu navigations and everything appears. You might want to hide the unnecessary elements and print only inside the "content" area.
Then you can use include this STYLE lines to category browse page PHP:
<s-tyle type="text/css" media="print">
.no-print-element { display: none; }
</style>
(don't forget to change the
s-tyle to
style. I can't do it here as this rule gets affected in this forum page.)
Since this STYLE Tag has media="print", it will be effective only while printing.
I don't know your website so i don't know which element you should include there with display:none;
But use FireBug (firefox plugin) to determine the unnecessary elements and include them in this STYLE tag with display:none; parameter..
You understand the idea?
For instance, your menu navigation has this DIV ID: <div id="menu"> ...... the menu navigation stays here.... </div>
Then if you add this:
<s-tyle type="text/css" media="print">
#menu { display: none; }
</style>
(don't forget to change the
s-tyle to
style. I can't do it here as this rule gets affected in this forum page.)
And once the
<A HREF="javascript:window.print()">Click to Print This Page</A>
link is clicked, what ever stays inside the <div id="menu">...</div> won't be printed.....
This is the most easiest and efficient way to print the website page. Opening the page in a POPUP page is also a way, but that time you will also need to include the JAVA line to page to start the printing automatically once the page gets loaded. My way is the easiest way. You can google it and find an alternative ways. I would recommend you to take care this without using PHP. Things will be much easier then.
Regards.
Forum Support.