I want to have the email header image displayed in every email that comes from zen.
I'm using a stock cart 155f, php 7.1.
Looking at includes/functions/functions_email.php
PHP Code:
if (!isset ($block['EMAIL_LOGO_FILE']) || $block['EMAIL_LOGO_FILE'] == '') {
if (IS_ADMIN_FLAG === true) {
$block['EMAIL_LOGO_FILE'] = HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'email/' . EMAIL_LOGO_FILENAME;
} else {
$block['EMAIL_LOGO_FILE'] = HTTP_SERVER . DIR_WS_CATALOG . 'email/' . EMAIL_LOGO_FILENAME;
if I change the code to this:
PHP Code:
if (!isset ($block['EMAIL_LOGO_FILE']) || $block['EMAIL_LOGO_FILE'] == '') {
if (IS_ADMIN_FLAG === true) {
$block['EMAIL_LOGO_FILE'] = HTTP_SERVER . DIR_WS_CATALOG . 'email/' . EMAIL_LOGO_FILENAME;
} else {
$block['EMAIL_LOGO_FILE'] = HTTP_SERVER . DIR_WS_CATALOG . 'email/' . EMAIL_LOGO_FILENAME;
ALL emails sent live or admin have an image displayed when before the code change there were images missing.
I checked and HTTP_CATALOG_SERVER - and - HTTP_SERVER have exactly the same data in every instance found in the site correctly.
That means there is a problem with $block['EMAIL_LOGO_FILE'] not being set?
or there is a problem with IS_ADMIN_FLAG === true not being set?
I'm not looking to do this... although this produced a testable result... that pointed at a problem with the actual code.https://www.zen-cart.com/showthread.php?75245-NO-IMAGES-or-html-in-emails
Bookmarks