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 files which specify this filename and the logo’s dimensions.

For admin, this file is admin/includes/languages/english/email_extras.php. 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');

For the storefront, copy the file includes/languages/english/email_extras.php to includes/languages/english/YOURTEMPLATE/email_extras.php and update the same block of define statements.

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.

**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 August 8, 2020 by Scott C Wilson (392e8f6).