Я пытаюсь добавить таблицу стилей в страницу pagina в Magento, используя файл local.xml в папке с дизайном.Magento :: Как добавить шаблон на страницу печати с помощью local.xml
Я пытаюсь распечатать с страницы продаж/заказа/подробностей. Я знаю, что эта привычка стилю напечатанный документ, но это стиль HTML-документ
Вот что я имею в моем local.xml:
<print>
<block type="page/html" name="root" output="toHtml" template="page/print.phtml">
<block type="page/html_head" name="head" as="head">
<action method="addCss" name="global">
<stylesheet>css/global.css</stylesheet>
</action>
</block>
</block>
</print>
Это то, что я вытащил из page.xml. Это, Что в базовой page.xml:
<print translate="label" module="page">
<label>All Pages (Print Version)</label>
<!-- Mage_Page -->
<block type="page/html" name="root" output="toHtml" template="page/print.phtml">
<block type="page/html_head" name="head" as="head">
<action method="addJs"><script>prototype/prototype.js</script></action>
<action method="addJs"><script>mage/translate.js</script></action>
<action method="addJs"><script>lib/ccard.js</script></action>
<action method="addJs"><script>prototype/validation.js</script></action>
<action method="addJs"><script>varien/js.js</script></action>
<action method="addCss"><stylesheet>css/styles.css</stylesheet></action>
<action method="addItem"><type>skin_css</type><name>css/styles-ie.css</name><params/><if>lt IE 8</if></action>
<action method="addCss"><stylesheet>css/widgets.css</stylesheet></action>
<action method="addCss"><stylesheet>css/print.css</stylesheet><params>media="print"</params></action>
<action method="addItem"><type>js</type><name>lib/ds-sleight.js</name><params/><if>lt IE 7</if></action>
<action method="addItem"><type>skin_js</type><name>js/ie6.js</name><params/><if>lt IE 7</if></action>
</block>
<block type="core/text_list" name="content" as="content" translate="label">
<label>Main Content Area</label>
</block>
</block>
</print>
, но все, что я получаю пустую страницу. Пожалуйста посоветуй!