English 中文(简体)
为什么Magento没有为交易电子邮件订单收集我的主题模板?
原标题:Why is Magento not picking up my theme template file for transactional email order?

我对后面的Magento sNew Order交易电子邮件模板做了一些模板改动。 电子邮件顶端的文字改动(按照“你的命令......”栏)是罚款的。 但是,当我改变命令细节模板时,这些模板没有出现在我的电子邮件中。

我在我的模板中设立了两个档案,我认为这些档案将超越电子邮件:

  1. app/design/frontend/default/mythemehere/template/email/order/items.phtml
  2. app/design/frontend/default/mythemehere/template/email/order/items/order/default.phtml

这些内容见我的销售文件 申请/设计/对抗/default/mythemehere/layout

<sales_email_order_items>
    <block type="sales/order_email_items" name="items" template="email/order/items.phtml">
        <action method="addItemRender"><type>default</type><block>sales/order_email_items_order_default</block><template>email/order/items/order/default.phtml</template></action>
        <action method="addItemRender"><type>grouped</type><block>sales/order_email_items_order_grouped</block><template>email/order/items/order/default.phtml</template></action>
        <block type="sales/order_totals" name="order_totals" template="sales/order/totals.phtml">
            <action method="setLabelProperties"><value>colspan="2" align="right" style="padding:3px 9px"</value></action>
            <action method="setValueProperties"><value>align="right" style="padding:3px 9px"</value></action>
            <block type="tax/sales_order_tax" name="tax" template="tax/order/tax.phtml">
                <action method="setIsPlaneMode"><value>1</value></action>
            </block>
        </block>
    </block>
    <block type="core/text_list" name="additional.product.info" />
</sales_email_order_items>

然而,当我发布命令时,我在电子邮件中获得基数模板。

如果我把Magento的卡迪纳尔·辛拿归为压倒性的基础模板档案(app/ Design/frontend/base/default/template/email/orders)。 页: 1 Seems Magento非常热衷于使用其基础模板。

我在销售款次(例如:sales/order/view.phtml>sales/order/print.phtml)中高于其他模板,而Magento各论坛的各种职位则表明Im在概念上做了正确的事情。 但!! 它只是不为我工作。

最佳回答

我有同样的问题。 我发现,这些电子邮件将在基数模板之前使用/应用程序/设计/对抗/default/default模板。 因此,如果你将基数模板复制到缺省/违约时,你的档案不会因为更新而过时。

然而,这仍不理想,因为这仍然超出了你的主题范围,但比使用基本档案更好。 我仍然没有找到真正的解决办法。

问题回答

利用您的习俗主题文件发布电子邮件:“申请/设计/对抗/default/mythemehere/template/email/order/items.phtml”

In the admin go to System->configuration->design

Select your website from the top left Now in the themes template uncheck the checkbok and add the theme name.

这种情况之所以发生,是因为如果我们在<编码>中提及错误的价值观的话。 系统设计/编码部分

“Magentoault

我们有两种情景。

(1) 带有习惯设计的过失包

“default

“default

(2) 习俗包

“custom

“custom

如果我们不填补Current书状<>/strong>栏下的正确数值,那么就会出现问题。

It happened with me when I was using a custom package but had given value as default under Current Package Name field.

我们应当妥善配置这个主题,使Magento能够适当跟踪主题。

<代码>base/defaultdefault/default上的校外模板强烈劝阻,因为更新Magento将超越这些名录。

我的工作(通过电子邮件)是将经过修改的档案置于<条码>适用/设计/对抗/your_设计_包装/default/templates/之下。





相关问题
Angle brackets in php

I want to store angle brackets in a string in PHP because i want to eventually use mail() to send an HTML email out. The following is the code that doesn t seem to work. while(...) { $msg .= "<...

authlogic auto_register feature using my options

I have auto registration working with authlogic using gaizka s version of authlogic_openid which I found on Github since pelle s original addition of the feature seemed to cause issues. http://...

Zend 邮件问题,涉及外国char子+ com子

泽斯德邮局在名称被定为具有外国性质(如“保”)和 com(”)的物品时,就放弃了一种例外(因为邮局(邮局)退回假)。 重新提出以下守则。

How to track an email in Java?

How I can track an email? I m using java on the server side for sending emails. I want to track whether it is delivered , opened, etc... How I can do that ?

Web Link in a mail is not rendering as link in yahoo

string from = "abc@gmail.com"; string to = "xyz@gmail.com,xyz@yahoo.co.in"; string password="abcxyz"; MailMessage mail = new System.Net.Mail.MailMessage(); mail.To.Add(to); mail.From = new ...

SharePoint - Approaching Website Storage Limit Email

How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it s size limit? Thanks for your ...

How to create an email mailing list

Im creating a coming soon page for a website im developing, and im adding an option for the user to enter their email address so we can email them when the site is up. How do I do this?

CCNet email does not include MSBuild results

We re using CCNet 1.4.4.83 but when an MSBuild task fails, we don t get the MSBuild results (i.e. missing file or whatever reason the compile failed) in the email notification. I do see the build ...