简体   繁体   English

Magento 事务性电子邮件不工作

[英]Magento Transactional Emails Not Working

We have amended transactional emails in Magento's admin panel and I can see these 'correct' versions in the mage_core_email_template table in the MySQL database.我们在 Magento 的管理面板中修改了交易电子邮件,我可以在 MySQL 数据库的 mage_core_email_template 表中看到这些“正确”版本。

However, the emails that turn up after a transaction are using the template files from /public_html/app/locale/en_GB/template/email(/sales) - note the en_GB folder in the middle.但是,交易后出现的电子邮件使用/public_html/app/locale/en_GB/template/email(/sales)中的模板文件 - 请注意中间的 en_GB 文件夹。

These are an exact copy of the template files from the en_US folder.这些是en_US文件夹中模板文件的精确副本。 I'm not sure, but we may have foolishly done this after amending the admin panel templates - ho hum: I'm new to Magento.我不确定,但我们可能在修改管理面板模板后愚蠢地这样做了 - 哼哼:我是 Magento 的新手。

Do the admin panel templates write to the the template file folders ( en_GB )?管理面板模板是否写入模板文件夹 ( en_GB )? And if so, if I delete the template files from the en_GB folder will they do it automatically or do I need to initiate it somehow (and how)?如果是这样,如果我从en_GB文件夹中删除模板文件,它们会自动执行还是我需要以某种方式(以及如何)启动它?

If none of these, how do I get Magento to use the admin panel templates rather than the files in the locale folders?如果这些都不是,我如何让 Magento 使用管理面板模板而不是语言环境文件夹中的文件?

Defining an email template in the Admin is not sufficient, once created proper templates you have to associate them in the System, Configuration settings (changing Store View Scope) to override the default behavior that is applying templates from the file system.在 Admin 中定义 email 模板是不够的,一旦创建了适当的模板,您必须在系统、配置设置(更改存储视图范围)中关联它们以覆盖从文件系统应用模板的默认行为。 Maybe you were missing that final step.也许你错过了最后一步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM