Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2013
    Location
    Montenegro
    Posts
    72
    Plugin Contributions
    0

    help question No header image in my store emails

    Hi,

    I can't get a header image in my zen email although I've tried many different options to set up regarding this. First of all, there is a similar thread that I read carefully but couldn't find a solution for my issue.

    https://www.zen-cart.com/showthread....-jpg-in-folder

    1. There is the header image on my server: root/email/header.jpg
    2. Email templates have a path to the header image:
    <!-- Header Section -->
    <div class="header">
    <img src="email/header.jpg" alt="logo" />
    </div>


    3. There are .htaccess files on both locations, in root and email folders. I have tried removing .htaccess file in email folder and renaming .htaccess file on root location (.htaccess_bak) but nothing has changed.

    I CAN open the header image typing this address in a web broser: www.MY_DOMAIN/email/header.jpg

    Any idea about this!

    This is how .htaccess in email folder looks like:

    # deny *everything*
    <FilesMatch ".*">
    Order Allow,Deny
    Deny from all
    </FilesMatch>

    # but now allow just *certain* necessary files:
    <FilesMatch "(?i).*\.(jpe?g|gif|png)$">
    Order Allow,Deny
    Allow from all
    </FilesMatch>

    IndexIgnore */*


    ## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
    # OPTIONS -Indexes -ExecCGI


    This is how .htaccess file on root location looks like:

    # Handles the new URL formats
    RewriteRule ^(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$4&cPath=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$4&cPath=$2&%{QUERY_STRING } [L]

    # Original (unchanged) URL formats
    RewriteRule ^(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-m-([0-9]+)(.*)$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-ezp-([0-9]+)(.*)$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]
    RewriteRule ^(.*)-c-([0-9_]+)(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

    # Rewrite all other requests (if the file / directory does not exist)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L]


    Many thanks!
    Last edited by Laki; 3 Sep 2015 at 01:49 PM.

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default Re: No header image in zen emails

    First of all, are you looking at the HTML email or the plain text version? Only HTML emails contain the image.

    Next, if you are looking at the HTML email, can you check the email source code in your email client? How does the image path look like? It must include the domain name and full path to the image, it can't just have a relative path. If you're seeing this:
    Code:
    <img src="email/header.jpg" alt="logo" />
    in the email source code, then something is wrong and you need to check why it's not adding the domain to the path.

    Pozdrav!

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: No header image in zen emails

    What's the URL of your store?
    .

    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.

  4. #4
    Join Date
    Aug 2013
    Location
    Montenegro
    Posts
    72
    Plugin Contributions
    0

    Default Re: No header image in zen emails

    Hi guys,

    I fixed this issue enabling HTML emalis in Configuration / E-mail option. It was set up as false by default.

    Thanks for helping me.

    Pozdrav! (Regards)

 

 

Similar Threads

  1. How do I change header image in emails?
    By Brainteaser in forum General Questions
    Replies: 2
    Last Post: 1 Nov 2010, 07:18 PM
  2. Help with header image and store width
    By cindyi in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Aug 2009, 12:42 AM
  3. Change Header in Emails sent from Store
    By scribbles in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 30 May 2007, 05:53 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR