Current Support Thread at Zen Cart Forums: https://www.zen-cart.com/showthread.php?218418-Common-Email-Styling-Support-Thread
In the current implementation of the Zen Cart emails, each HTML email template is stand-alone. If you want to replace the header image (header.jpg) with a beautiful gif-image that you just created, you'll edit all thirteen (13) templates1. If you want to change the background and/or text coloring to get a consistent look-and-feel for your store, you'll edit all thirteen templates.
Once Common Email Styling is installed, if you want to change the name or dimensions of your HTML emails' logo, you make those changes in two (2) places … one for the store-side emails and one for those sent from your admin. When you want to change the styling for your emails, you simply edit the file /email/email_common.css
and the styling applies to all email templates.
1I'm not counting the email_template_tell_a_friend.html file, which is no longer used by any of the as-shipped Zen Cart processing.
This plugin modifies all of the built-in Zen Cart HTML email templates:
email_template_checkout.html
, the id is checkout
.To customize your emails, you'll edit (using a text-file editor like Notepad++) one of three files:
/email/email_common.css
. This file contains the CSS styling that is applied to every HTML email sent from your store./includes/languages/english/YOUR_TEMPLATE/email_extras.php
. This file has been updated to include constants that define the emails' logo file-name, text to be used for the alt/title tage and the image's width/height dimensions. There's also, starting with v1.1.0, a constant with which you can add some "extra" information to each email's logo/header area (like the store address or phone number)./YOUR_ADMIN/includes/languages/english/email_extras.php
. This file contains the same five (5) constants as the store-side language file, which should mimic the store-side settings.There are core-file overwrites in this plugin, but no database changes; you should always backup your cart's database and files prior to making any changes.
Replace all of the files copied to install the plugin with the version captured when you backed up.