Style the emails that WP e-Commerce sends to your customers.
This plugin lets you style the automated emails that WP e-Commerce sends to your customers, using a simple theme template file.
It’s a little like gift wrapping all your communications.
To use this plugin, you don’t need to know how WP e-Commerce does its emailing, nor necessarily any php.
You DO need to know how to edit your WordPress theme, including what a theme template file is.
The plugin’s settings page walks you through the rest.
This plugin works with the WP e-Commerce customer emails for:
This plugin can also be used to style the other emails that WordPress sends out (blog subscriptions, user registrations, contact forms, etc).
This plugin has an admin page where you can activate live email styling (after your private design testing) or send yourself a test styled email.
In order to maintain readability, line breaks in any original content are automatically replaced with <br /> tags.
Here’s a simple example of what you might put in the wpsc-email_style.php theme template file:
<html><body> <h2 style="color:#016E0F"><?php echo ecse_get_email_subject(); ?></h2> <?php echo ecse_get_email_content(); ?><br /> </body></html>
Of course, you’ll want to add a lot more html, css and maybe even php to achieve your own style.
You may want to consult the ‘nets about how html works inside emails.
Are you familiar with the WordPress template hierarchy theming system?
This plugin creates a template hierarchy just for emails,
allowing you to get fancy and separately style each kind of email.
Or you can just stick to the single wpsc-email_style.php theme template file and keep it simple.
Do you want to style customer receipt content beyond what WP e-Commerce allows in it’s admin settings tab?
This plugin allows you to template the content of customer receipts to make them beautiful,
and even includes a sample set of theme template files for you to copy and adapt as you wish.
The plugin’s other home on the web is over at Schwambell.
/wp-content/plugins/
directoryYou can use this plugin without already having the WP e-Commerce plugin running on a WordPress website.
If you haven’t created the ‘wpsc-email_style.php’ template file and gone to work on it, this plugin will do nothing to your emails.
Also, don’t forget to go to the ‘Store Email Style’ options page and turn on the live customer styling when you’re done testing.
I am happy assist with your web design work – for a fee. Head over to my website, http://schwambell.com
I think these are helpful references:
http://www.campaignmonitor.com/css/
http://www.htmlgoodies.com/beyond/css/article.php/3679231/How-to-Create-Great-HTML-Emails-with-CSS.htm
http://kb.mailchimp.com/article/how-to-code-html-emails
Otherwise, I guess you could try this:
http://lmgtfy.com/?q=html+style+emails
After you’ve created your styling theme template file, you could:
This issue only seems to crop up when you’re not templating the receipt content, you’re on WPEC pre-3.8.9, and you’ve got some HTML in the WPEC layout option for that content.
Why might it happen? When you turn on this plugin and apply style, the plugin will do its best job to make the plain text content look good in HTML.
It does so by converting plain text linebreaks to HTML tags.
But the plugin will only do that if it doesn’t detect HTML in the content already.
So let’s say you’ve put some HTML tags before or after your product list in the WPEC admin settings tab, where you layout the purchase receipt content.
My plugin will detect some HTML, and then it won’t add any HTML of its own to the content. As a result the plain text linebreaks remain, and they don’t mean much in an HTML email.
How might you overcome this issue? Try removing the HTML from the WPEC content. Or even better, use the content templating that this plugin enables.
It’s easy (you can copy sample templates from this plugin’s folder) and your receipts will look better anyway.
This is only an issue before WPEC 3.8.9 though, because WPEC has started generating HTML product lists of its own, using tables.
And obviously if you’re templating the content, you can put your own HTML layout on the product list.
This plugin allows you to be as complicated or as simple with your email wrapper templates as you wish.
You can have different styling for manager emails than from customer emails,
and you can even have different styling just for particular kinds of customer emails.
A template hierarchy diagram can be found through this plugin’s settings page.
The simplest way to style your emails is just to do it all in the ‘wpsc-email_style.php’ template file.
A sample ‘wpsc-email_style.php’ can be copied from this plugin’s “theme” subfolder into your theme.
This only applies to customer receipt emails (including order pending and payment required):
You can now structure the content of receipts using theme template files.
This replaces what WP e-Commerce enables through it’s settings->admin tab.
Content for all non-receipt emails still comes from WP e-Commerce, WordPress or other plugins as appropriate.
To see what it’s all about, copy the sample template files from this plugin’s “theme” subfolder into your theme.
The sample files that I provide are a vast improvement over what WP e-Commerce gives you for receipts,
and you may be happy just leaving them as they are. If you want to stay with what WP e-Commerce creates for receipts,
just remove my sample files from your theme.
Further explanation of the receipt templating system is found on this plugin’s settings page.
Wrapper templates create the gift wrapping around your content. The template hierarchy exists to allow
different kinds of emails to look completely different. For example, you may want a sidebar or a certain kind of
footer for customer emails, but a much simpler email layout for admin/management emails. That’s what the wrapper template
heirarchy allows you to do. And even though the wrapper template heirarchy allows you to be very specific to certain kinds of emails,
wrapper templates are still very different to content templates.
Wrapper template files DO NOT HAVE ACCESS to structured content data – that’s what content templates are for.
Content templating is very specific to purchase receipts (at least for now), and within a content template you
have access to detailed purchase data.
The sample template files bundled in this plugin’s “theme” subfolder will point you in the right direction.
Head over to my website, http://schwambell.com and send me an email. Or use the WordPress Plugin forums.
I’ll try to get back to you in a businesslike fashion, but I can’t promise immediate plugin revisions.