Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to Create and Configure Csutom Transactional Email Templates
 
shajar
Jr. Member
 
Total Posts:  3
Joined:  2012-06-11
 

Hi!
Hope everyone is fine here.... I make a lot of Search to create custom transactional email templates and i done it but I dont find a way that how to configure this template at backend. So please anybody help me for this

Here is my transactional email template Code
Path of this file is
htdoc/magento/local/en_US/template/email/custom_template.html

<!--@subject custom Email for {{var customVar}} @-->
<!--@vars
{"store url=\"\"":"Store Url”,
“var logo_url":"Email Logo Image Url”,
“var logo_alt":"Email Logo Image Alt”,
}
@-->
<!--@styles
body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
@-->
<body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
<div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
Hi {{var custName}}<br>
Thank you for sending email. Your logo path is {{var logo_url}}
<br/>
Regards:

</div>
</body>

Path and Code for Configuration file is

App/code/community/namespace/module/etc/config.xml

<?xml version="1.0"?>
<config>
<modules>
<Btech_Custmail>
<version>1.0.0</version>
</Btech_Custmail>
</modules>

<global>
<models>
<custmail>
<class>Btech_Custmail</class>

</custmail>
</models>
<events>
<sales_order_save_commit_after>
<observers>
<mail_status_change>
<type>singleton</type>
<class>custmail/observer</class>
<method>invoicedStatusChange</method>
</mail_status_change>
</observers>
</sales_order_save_commit_after>
</events>
<default>
<Btech_Custmail>
<sendemail>
<template>test_email_template</template>
</sendemail>
</Btech_Custmail>
</default>
<template>
<email>
<test_email_template translate="label" module="Btech_Custmail">
<label>Test Email Template</label>
<file>custom_template.html</file>
<type>html</type>
</test_email_template>
</email>
</template>
</global>
</config>

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top