管理システム構成でカスタム メール テンプレートを取得する必要があります。
システム.xml
これは私の電子メール テンプレート フィールド コードです。
<email_template>
<label>Email Template</label>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<sort_order>5</sort_order>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_email_template</source_model>
</email_template>
config.xml
<template>
<email>
<custom_email_template translate="label" module="mymodule">
<label>Custom Email Template</label>
<file>mymodule/custom_email.html</file>
<type>html</type>
</custom_email_template>
</email>
</template>
<default>
<mymodulesettings>
<email>
<email_template>custom_email_template</email_template>
</email>
</mymodulesettings>
</default>
そして、私は locale/en_US/template/email/mymodule/ パスに email.html ファイルを追加しました 今、私はこのような出力を得ました
しかし、そのドロップダウンにカスタム メール名を表示する必要があります。お気に入り: