0

カスタム拡張機能に取り組んでいます。2 つの問題に直面しています。

1) でカスタム HTML ページを作成しましたLocale->en_Us->template->email->testEmail.hmtl。そして、これは私のconfig.xmlコードです:

   <template>    <email>
    <mymodule_email_settings_client_email_template>
                    <label>Follow up Emails</label>
                    <file>test_email.html</file>
                    <type>html</type>
                </mymodule_email_settings_client_email_template>
                </email>
            </template>

コントローラーにロードしようとすると、空が返されます。これは、テンプレートにアクセスするコードです。

$emailTemplate  = Mage::getModel('core/email_template')->loadDefault('mymodule_email_settings_client_email_template');   

2) ID を使用してトランザクション テンプレートとニュースレター テンプレートをロードしたいカスタムメールでそのテンプレートを使用しますか? ありがとう

4

1 に答える 1

0

カスタムメールテンプレートを定義するために使用する次のリンクを確認してください

http://www.excellencemagentoblog.com/magento-sending-custom-emails

http://www.atwix.com/magento/emails-for-custom-events/

これがあなたを助けることを願っています

于 2013-10-29T06:23:03.680 に答える