首页 文章

Magento覆盖电子邮件页眉和页脚

提问于
浏览
0

我正在研究新的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

我不确定为什么它不会调用我的新文件,因为电子邮件没有 Headers .

请指教

1 回答

  • 0

    您只需在系统>配置>可视>交易电子邮件中编辑配置

相关问题