Logos in HTML emails

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

Related: Using your logo on packing slips and invoices.

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

Replace this file with your logo, then update the following two files:

  • admin/includes/languages/english/email_extras.php.
  • includes/languages/english/YOURTEMPLATE/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');

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 Image 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 Options setting.




Still have questions? No problem! Just 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 September 19, 2020 by Scott C Wilson (782635f).