Page 1 of 1

How can I print out the Product Details page?

Posted: Fri Jan 16, 2009 10:32 am
by hblueair
Hi,

Does anyone know how to print the product Details page??? ??? ???

I have search a lot on the Forum however, still can't find a solution for this.
I have created a Details template inside the Product Module and linked with a page called "Product_details"

i.e Product_details -> {content}
                                      '-> Details template  printlink} it still printing "Product_details" content instead of
the Details template content.

What should I do??

Thanks a lot a lot!!

Thanks,
Hebee

Re: How can I print out the Product Details page?

Posted: Tue Jan 20, 2009 2:46 am
by hblueair
Hi everyone,

Did I post it in a wrong area>

I really want to know why my {print} function can't print out the Product Details page.

Please help!!!!! Anyone?

Thanks,
Hebee

Re: How can I print out the Product Details page?

Posted: Tue Jan 20, 2009 2:48 am
by JeremyBASS
Like print return?  that be {$foo|print_r}

hope that helps...

jeremyBass

Re: How can I print out the Product Details page?

Posted: Wed Jan 21, 2009 7:56 am
by hblueair
Hi jeremyBass,

Thanks a lot for your reply, however it shows an number 1 on the page after I insert {$foo|print_r}.

I notice that in the News module would have an file call action.print.php and template file called articleprint.tpl
so that why the News section can print out each article.

Could the Product have the same function so that I can use {$entry->printlink}?

But I don't know how to make this work out. Could you help?

Thanks,
Hebee

Re: How can I print out the Product Details page?

Posted: Wed Jan 21, 2009 4:31 pm
by JeremyBASS
:) ... I sorry... your not suppose to put {$foo|print_r} in ... your suppose to use |print_r.. put it at the end of some {var} to print return the posible array... but that seems to be off what you want...

looks to me like you just need to use the print mod that is installed on the core or CMSMS... and then adjust your template and CSS so that the new article has a id that the CSS, under media print, would be display:block, and set everything else to display:none.... take a look at the default setup of CMSMS...  there is a print icon there.. ;)  really you can make the print look nothing like what is on screen.

Hope this helps...
cheers
jeremyBass