Post by joegolike » Thu Oct 30, 2008 5:13 pm

I know about checkout_email.tpl for customizing the content/formatting of the order confirmation email, but where is the template that the newsletter uses? I'd like to insert a branding image at the top of every newsletter, as well as an unsubscribe footer.

Anyone know about this?

New member

Posts

Joined
Fri May 23, 2008 3:42 pm

Post by Qphoria » Thu Oct 30, 2008 7:42 pm

There is no template. When you add a new newsletter it simple allows you to send it
The subject line is the subject
and the html stuff is the body.

There is no footer or anything else. You can just add all that to the html description

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by joegolike » Fri Oct 31, 2008 12:30 am

Thanks for the reply Qphoria. I went ahead and made myself a little mod to do what I needed, and thought I'd post it here to help anyone else who might want to create a newsletter template.

Here is the file I modified:

admin/template/default/newsletter.tpl

The original code at line 35 was this:

Code: Select all

<td><textarea name="content" id="content"><?php echo $content; ?></textarea>
I replaced it with this:

Code: Select all

<td>
<textarea name="content" id="content">
        	
<?php
	if ($content) {
		echo $content;		
	} else {
?>

<img src="http://rachelburklund.com/images/newsletter-header.jpg" /><br/><br/>
<p>INSERT NEWSLETTER MESSAGE HERE</p>
<p style="color: #999; font-size: 85%"><br/><br/>
--------------------------------------------<br/>
<strong style="color: #b4985a;">Rachel Burklund Designs</strong><br/>
117 E Louisa St<br/>
Number 126<br/>
Seattle, WA 98102<br/>
(206) 353-6422<br/>
info@rachelburklund.com<br/>
rachelburklund.com<br/><br/>
We hate spam too. If at any point you no longer wish to receive our newsletters, log into your customer account at <strong>http://rachelburklund.com/store</strong> and change your newsletter preferences.</p>
			
<?php
		}
?>
</textarea>
Obviously my template is customized for my client, but it wouldn't be too hard to change it to suit your purposes.

New member

Posts

Joined
Fri May 23, 2008 3:42 pm
Who is online

Users browsing this forum: No registered users and 2 guests