【问题标题】:Magento overriding the email header and footerMagento 覆盖电子邮件页眉和页脚
【发布时间】: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


    【解决方案1】:

    您只需要在 System > Configurations > Visual > Transactional Emails 编辑配置

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-24
      • 2015-12-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多