0

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();
 $text_field_value=Mage::getStoreConfig('payment/wirpayment/email_template2',$storeId);

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

5
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.