I have created a custom select field in system->configuration->sales->payment method to select the custom email template.I got its id=20 by using this code

 $storeId = Mage::app()->getStore()->getId();

but I need its template name from this template id.How can i get it?

echo Mage::getModel('core/email_template')->load(1)->getTemplateCode(); 

Replace 1 with your template Id.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.