Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jan 2014
    Location
    Florida
    Posts
    39
    Plugin Contributions
    0

    Default Email Header not showing

    When I send an email from the Admin panel, the image doesn't render in the email. I get the generic missing picture icon. I have updated the header.jpg file to my own, it is definitely there, I have verified it's path in the browser.

    I looked in the email templates and for those of you who already know this stuff, it appears that the image source is stored in a variable container of some sort.

    HTML Code:
    src="$EMAIL_LOGO_FILE"
    I used the developers toolkit to try to find that text in any file, and it was nowhere other than the email themselves. I thought for sure this would be ste in the CSS file, but no. Where can I find where the path for that image is stored so that I can check and/or fix it as necessary?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Email Header not showing

    You probably didn't update the email_extras.php language file in your admin when you upgraded.

    There are two:
    - /your_admin_folder/includes/languages/english/email_extras.php
    - /includes/languages/english/email_extras.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2014
    Location
    Florida
    Posts
    39
    Plugin Contributions
    0

    Default Re: Email Header not showing

    so if I don't have something in either of those php files, what do I need to add to it in order to get my header image working?

    I tried this based on what I saw in the file already, but it didn't work. Yes, I verified that the path works.

    PHP Code:
    define('EMAIL_LOGO_FILE','http://MYDOMAIN.com/email/header.jpg'); 

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,965
    Plugin Contributions
    96

    Default Re: Email Header not showing

    At the top of the as-shipped versions of the admin and storefront email_extras.php language file, you'll see the following definitions:
    Code:
      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');
    Those constants are used by the zen_mail function, present in /includes/functions/functions_email.php to insert those values into the appropriate spots within your email templates.

  5. #5
    Join Date
    Jan 2014
    Location
    Florida
    Posts
    39
    Plugin Contributions
    0

    Default Re: Email Header not showing

    Interesting. I wonder what I did that overwrote those values. Thanks!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Email Header not showing

    Quote Originally Posted by Kcin View Post
    Interesting. I wonder what I did that overwrote those values. Thanks!
    Probably using language files from an older version of Zen Cart.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Email header logo (header.jpg) not displaying
    By 1100101 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Aug 2010, 10:46 AM
  2. EMAIL header STILL not showing up
    By Craft Magick in forum General Questions
    Replies: 12
    Last Post: 28 Aug 2008, 09:26 PM
  3. email from contact us page showing my email not customers
    By tanik in forum General Questions
    Replies: 3
    Last Post: 22 Jun 2008, 12:08 AM
  4. Header not showing!!
    By pettiger15 in forum General Questions
    Replies: 8
    Last Post: 31 Mar 2007, 11:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg