2013-10-29 144 views
0

我正在開發自定義擴展功能。我面臨兩個問題。magento中的電子郵件模板

1)我在Locale->en_Us->template->email->testEmail.hmtl中創建了一個自定義html頁面。 這是我的配置,.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> 

當我嘗試加載它在我的控制器它reutrns我空的。這是我的訪問模板的代碼。

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

2)我想加載事務和通訊模板由有ids.I有ID,但不知道如何使用我的自定義模板emails.I只想要代碼訪問類的模板沒有比這更多的了。我可以在我的自定義電子郵件中使用該模板嗎?由於

+0

喜PLZ檢查的system.xml – shivam

+0

@magExp電子郵件模板路徑謝謝,但我沒有在system.xml中使用它?你在哪裏看到system.xml –

+0

檢查這個http://stackoverflow.com/questions/9017951/loading-a-magento-mail-template-and-fill-its-vars-from-code – shivam

回答