Magento Forum

   
Page 1 of 2
How do I edit the email templates? 
 
mdumka
Member
 
Avatar
Total Posts:  56
Joined:  2008-02-28
 

To start ... how do I edit the new account email template?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
golles
Sr. Member
 
Total Posts:  257
Joined:  2008-01-15
 
mdumka - 19 August 2008 05:03 AM

To start ... how do I edit the new account email template?

Thanks

to create a new template:
admin>system>transactional emails>add new template>choose the base template from the drop down and the edit as appropriate

then in admin>system> configuration>customers>customer configuration>create new account options

change the template to the new one your created above.

hope that helps

 
Magento Community Magento Community
Magento Community
Magento Community
 
Priest
Jr. Member
 
Total Posts:  20
Joined:  2008-04-21
 

Is there something else to be done once you edit the templates?  I’ve edited the email templates, saved them and then refreshed the cache - yet, I still receive the default emails instead of my updated template.

Thanks!
Priest

 
Magento Community Magento Community
Magento Community
Magento Community
 
golles
Sr. Member
 
Total Posts:  257
Joined:  2008-01-15
 
Priest - 19 August 2008 07:08 AM

Is there something else to be done once you edit the templates?  I’ve edited the email templates, saved them and then refreshed the cache - yet, I still receive the default emails instead of my updated template.

Thanks!
Priest

did you do the 2nd bit?

then in admin>system> configuration>customers>customer configuration>create new account options

change the template to the new one your created above.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mdumka
Member
 
Avatar
Total Posts:  56
Joined:  2008-02-28
 

There is no way to edit the current one?

 
Magento Community Magento Community
Magento Community
Magento Community
 
lisali
Enthusiast
 
Avatar
Total Posts:  888
Joined:  2008-04-28
London, UK
 

Yes there is.

Open any of the .html templates in the directory below with your favourite HTML editor and save. If you do that, then the modified default template will automatically be called:

app/locale/en_US/template/email

and

app/locale/en_US/template/email/sales

I wish the templates were easier to edit/customise from the backend - for example, I would like to apply the same header/footer to all of them, instead of having to change every single one of them, and that has to be done mostly by hand, as the provided templates are not consistent. I’ve tried adding header and footer with php include function, but that did not work.

Good luck!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Priest
Jr. Member
 
Total Posts:  20
Joined:  2008-04-21
 
golles - 19 August 2008 07:10 AM

did you do the 2nd bit?

Thanks, it all makes sense to me now.  I have the Sample Data loaded while I’m learning Magento and it actually comes with several email templates.  I just thought they were their by default.  I didn’t realize they were actually extra and that I’d also have to assign them as in the 2nd bit.

Thanks!
Priest

 
Magento Community Magento Community
Magento Community
Magento Community
 
mdumka
Member
 
Avatar
Total Posts:  56
Joined:  2008-02-28
 

Thanks lisali

 
Magento Community Magento Community
Magento Community
Magento Community
 
maleika
Jr. Member
 
Total Posts:  15
Joined:  2008-08-15
 

http://www.magentocommerce.com/wiki/welcome_to_the_magento_user_s_guide/chapter_6#editing_email_templates

 
Magento Community Magento Community
Magento Community
Magento Community
 
Thejosh13
Sr. Member
 
Total Posts:  252
Joined:  2008-06-23
 

I still don’t understand, it seems like there are only 3 email options to switch out in the configuration, but there are about 20 email notifications available to edit?

 
Magento Community Magento Community
Magento Community
Magento Community
 
lisali
Enthusiast
 
Avatar
Total Posts:  888
Joined:  2008-04-28
London, UK
 

Hi Thejosh,

Those 20 or so are the DEFAULT ones. They will be called if you do not specify something else, or if you do not have other templates defined. If it just says “default template”, the APPROPRIATE default template will automatically be called from those 20 or so. If you have other custom templates defined, you will see those options as well in the drop-down.

Hope this helps!
Good luck smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
setanta
Member
 
Total Posts:  33
Joined:  2007-11-01
 

Is it possible to edit those html template files so they call variables for the store name?

For example in the file account_new_confirmation.html from line 22

<td valign="top">
                            <
p><strong>Dear {{var customer.name}}</strong>, <br/> Welcome to Magento Demo Store.</p>

Is it possible to change this to

<td valign="top">
                            <
p><strong>Dear {{var customer.name}}</strong>, <br/> Welcome to {{var store.name}}</p>

Or how do I call the store name as a variable

 
Magento Community Magento Community
Magento Community
Magento Community
 
Wes Vance
Jr. Member
 
Total Posts:  3
Joined:  2008-10-12
 

if you have perl installed, you can cd into the templete directory (/app/locale/en_US/template/email) and enter:

perl ---'s/Magento Demo Store/{{var store.name}}/g' `find | grep .html`
perl ---'s/dummyemail\@magentocommerce.com/CustomerService\@yourdomain.com/g' `find | grep .html`
perl ---'s/magento\@varien.com/CustomerService\@yourdomain.com/g' `find | grep .html`
perl ---'s/\(800\) DEMO-STORE/\(555\) 555-5555/g' `find | grep .html`
perl ---'s/alt=\"Magento\"/alt=\"Your Site\"/g' `find | grep .html`

replace with your info.
You will still need to change the logo_email.gif.

 
Magento Community Magento Community
Magento Community
Magento Community
 
hulaqueen
Jr. Member
 
Total Posts:  19
Joined:  2008-09-20
 

For changing the template to call variables instead of hard coding see: http://www.magentocommerce.com/boards/viewreply/69549/

 
Magento Community Magento Community
Magento Community
Magento Community
 
rockbochs
Jr. Member
 
Total Posts:  11
Joined:  2008-06-28
 
golles - 19 August 2008 07:10 AM

Priest - 19 August 2008 07:08 AM
Is there something else to be done once you edit the templates?  I’ve edited the email templates, saved them and then refreshed the cache - yet, I still receive the default emails instead of my updated template.

Thanks!
Priest

did you do the 2nd bit?

then in admin>system> configuration>customers>customer configuration>create new account options

change the template to the new one your created above.

I’ve followed these instructions closely, however it keeps sending out the default template.  Anything else I should look for?

 
Magento Community Magento Community
Magento Community
Magento Community
 
inzition
Jr. Member
 
Total Posts:  13
Joined:  2009-02-03
 

Ok, i have the default demo store logo on all customer emails. 

I changed the email templates in locale.  cache refreshed.
store has a different theme.
logo links to right store.

i changed the url in the email template and still.

anyone have any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2