Logos in HTML emails

How do I change the logo in my Zen Cart HTML emails ?

The email logo is contained in the file email/header.jpg.

Replace this file with your logo, then follow these steps:

1.5.8 and above:

Update the following two files:

  • includes/languages/english/YOURTEMPLATE/lang.email_extras.php
  • admin/includes/languages/english/lang.email_extras.php.

In each file, you will want to update the block

    'EMAIL_LOGO_ALT_TITLE_TEXT' => 'Zen Cart! The Art of E-commerce',
    'EMAIL_LOGO_FILENAME' => 'header.jpg',
    'EMAIL_LOGO_WIDTH' => '550',
    'EMAIL_LOGO_HEIGHT' => '110',

If you use the same logo for your site and your email, the values for these defined constants will be the same ones as you entered in your includes/languages/english/YOURTEMPLATE/lang.header.php file.

1.5.7 and below:

Update the following two files:

  • includes/languages/english/YOURTEMPLATE/email_extras.php
  • admin/includes/languages/english/email_extras.php.

In each file, you will want to update the block

  define ('EMAIL_LOGO_FILENAME', 'header.jpg');  //-File is present in /email folder
  define ('EMAIL_LOGO_WIDTH', '550');
  define ('EMAIL_LOGO_HEIGHT', '110');
  define ('EMAIL_LOGO_ALT_TITLE_TEXT', 'Zen Cart! The Art of E-commerce');

If you use the same logo for your site and your email, the values for these defined constants will be the same ones as you entered in your includes/languages/english/YOURTEMPLATE/header.php file.

Caching

Sometimes the change will not show up right away in emails that have already been sent and viewed, due to caching. Simply close your email program and re-open it to see the change take effect. If your email is browser-based, clear your browser cache to see the change. See caching for more details.

NOTE: You must be sending HTML emails for this to work. See the Enable HTML Emails setting in Admin > Configuration > Email setting.




Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified May 17, 2023 by Scott C Wilson (79c0db2b).