【发布时间】:2016-11-17 04:37:14
【问题描述】:
我正在开发新的 Magento 项目。基本上我想修改 Magento 的默认邮件页眉/页脚。
我注意到one question 发布了与此相关的帖子,但似乎没有得到正确的回答。
我在下面添加了我的代码
app/code/local/Toystore/Common/etc/config.xml
<config>
<modules.............>
.......................
</modules>
<global>
<helpers>
...............................
</helpers>
<template>
<email>
<design_email_header2 translate="label" module="toystore_common">
<label>Email - Header</label>
<file>html/headercustom.html</file>
<type>text</type>
</design_email_header2>
<design_email_footer2 translate="label" module="toystore_common">
<label>Email - Footer</label>
<file>html/footercustom.html</file>
<type>text</type>
</design_email_footer2>
</email>
</template>
</global>
</config>
在我的模板中,我添加了如下调用它
{{template config_path="design/email/header2"}}
我的 html 文件位于 app/locale/en_US/template/email/html/headercustom.html
我不确定它为什么不调用我的新文件,因为电子邮件没有标题。
请指教
【问题讨论】:
标签: magento magento-1.9