Magento打印友好页的产品


magento print friendly page for products

在magento中,是否已经有一种方法可以做一个友好的打印页面?

就在我写我自己的块来做这个之前,我不确定是否有一个默认的/现有的我可以编辑....:)

欢呼

Shane

实际上,我认为我可以通过print css…我要试一试!

是的,使用默认的print.css -但改变它看起来像我想要的,工作完成!

据我所知没有,虽然有一个print.css。



我可以想到一些方法来解决这个问题,但它们都不是内置的

1)制作自己的网站专用的print.css(好)
2)用JS制作自己的按钮来显示/隐藏元素(丑)
3)编写自己的Magento代码来生成可打印的页面(困难)
4)获得扩展-有几个PDF生成器在那里,还有一个新的扩展名为CleanPrint,不使用PDF的

打印我的magento页面是链接/文本,没有图像。我确实去了skin>frontend>"theme">default>css>"print.css",发现如果我注释掉"@media print{"之后的所有内容,直到右括号"}",它会完美地打印所有内容。我将添加我现在使用的代码,不包括下面注释掉的代码。

/* ======================================================================================= */
/* Boilerplate Print CSS  ========================START=========================== */
/*
* Media queries for responsive design
* These follow after primary styles so they will successfully override.
*/
@media all and (orientation:portrait) {
 /* Style adjustments for portrait mode goes here */
}
@media all and (orientation:landscape) {
  /* Style adjustments for landscape mode goes here */
}
/* Grade-A Mobile Browsers (Opera Mobile, iPhone Safari, Android Chrome)
  Consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
@media screen and (max-device-width: 480px) {
  /* Uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you
     j.mp/textsizeadjust
  html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
}
/*
 * print styles
 * inlined to avoid required HTTP connection www.phpied.com/delay-loading-your-print-css/
 */
/* Boilerplate Print CSS =========================END============================ */

我不认为Magento中有任何打印机友好产品的默认方式。为此,您需要编写自己的代码。

此链接可能有帮助:-

http://ajmaltash.wordpress.com/2010/05/23/print-link-on-product-detail-page-magento-1-4-0-1/ [LINK NOT WORKING]

更新:

这是一个免费的Magento扩展打印产品&;购物车页面