Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/259.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 产品的magento打印友好页面_Php_Mysql_Magento - Fatal编程技术网

Php 产品的magento打印友好页面

Php 产品的magento打印友好页面,php,mysql,magento,Php,Mysql,Magento,在magento中,是否已经有了一种实现友好打印页面的方法 就在我编写自己的块来执行此操作之前,我不确定是否有可以编辑的默认/现有块……) 干杯 Shane我认为Magento中没有任何默认的打印机友好型产品。为此,您需要编写自己的代码 此链接可能有助于:- [链接不工作] 更新: 这里有一个免费的Magento扩展到实际上,我想我可以通过打印css来实现这一点。。。我要试一试 是的,他使用了defualt print.css,但是改变了它,让它看起来像我想要的那样,工作完成了 据我所知,虽然有

在magento中,是否已经有了一种实现友好打印页面的方法

就在我编写自己的块来执行此操作之前,我不确定是否有可以编辑的默认/现有块……)

干杯


Shane

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

此链接可能有助于:-

[链接不工作]

更新:


这里有一个免费的Magento扩展到

实际上,我想我可以通过打印css来实现这一点。。。我要试一试


是的,他使用了defualt 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已经有了一个打印CSS,它可以很好地工作,特别是对于管理员。拥有一个单独的打印页面是一种浪费。这个链接现在会导致一个404页面,有可能在任何地方有另一个副本吗?这是一篇针对打印机友好型产品的流行文章。我在任何地方都找不到它的副本。@Rathinam Magento Connect已移动到Magento Marketplace。我最近提交了Magento Marketplace的扩展。当他们审查并接受扩展时,它将是实时的。