To change the content of a Magento mail template by its id, use the following code:
1 2 3 4 |
$mailTemplate = Mage::getModel('core/email_template'); $feedbackTemplate = $mailTemplate->load($templateId); $feedbackTemplate->setData('template_text', 'new text goes here'); $feedbackTemplate->save(); |
Changing mail template content by id programmatically
You want or need help implementing this solution? Maybe you did not find what you were looking for? Contact me and I will assist you with whatever Magento problem troubles you!