More than a month since I posted and I wasn't honoured with a reply to this serious issue of the copyright notice at the bottom of emails sent by admin (like order update) linking to the admin rather than the store directory.
I looked in the Bugs forum and found another thread on this problem recommending change of Email delivery options from PHP to smtpauth. I tried it but unfortunately there was no change.
Another search in the same forum brought up the following thread: http://www.zen-cart.com/forum/showthread.php?t=168153 which gives the reason for this happening. Although it was disputed, the admin/includes/languages/english/email_extras.php file does make the copyright link pointing to the admin directory. The full contents of the 1.3.9h installation file below will prove it. It was reported as a bug of older foreign language packs but it is also the case with the english language pack of 1.3.9h.
PHP Code:
<?php
/**
* @package languageDefines
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: email_extras.php 7161 2007-10-02 10:58:34Z drbyte $
*/
// office use only
define('OFFICE_FROM','<strong>From:</strong>');
define('OFFICE_EMAIL','<strong>Email:</strong>');
define('OFFICE_SENT_TO','<strong>Sent To:</strong>');
define('OFFICE_EMAIL_TO','<strong>To Email:</strong>');
define('OFFICE_USE','<strong>Office Use Only:</strong>');
define('OFFICE_LOGIN_NAME','<strong>Login Name:</strong>');
define('OFFICE_LOGIN_EMAIL','<strong>Login Email:</strong>');
define('OFFICE_LOGIN_PHONE','<strong>Telephone:</strong>');
define('OFFICE_LOGIN_FAX','<strong>Fax:</strong>');
define('OFFICE_IP_ADDRESS','<strong>IP Address:</strong>');
define('OFFICE_HOST_ADDRESS','<strong>Host Address:</strong>');
define('OFFICE_DATE_TIME','<strong>Date and Time:</strong>');
if (!defined('OFFICE_IP_TO_HOST_ADDRESS')) define('OFFICE_IP_TO_HOST_ADDRESS', 'OFF');
// email disclaimer
define('EMAIL_DISCLAIMER', 'This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to %s ');
define('EMAIL_SPAM_DISCLAIMER','This email is sent in accordance with the US CAN-SPAM Law in effect 01/01/2004. Removal requests can be sent to this address and will be honored and respected.');
define('EMAIL_FOOTER_COPYRIGHT','Copyright (c) ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');
define('TEXT_UNSUBSCRIBE', "\n\nTo unsubscribe from future newsletter and promotional mailings, simply click on the following link: \n");
// email advisory for all emails customer generate - tell-a-friend and GV send
define('EMAIL_ADVISORY', '-----' . "\n" . '<strong>IMPORTANT:</strong> For your protection and to prevent malicious use, all emails sent via this web site are logged and the contents recorded and available to the store owner. If you feel that you have received this email in error, please send an email to ' . STORE_OWNER_EMAIL_ADDRESS . "\n\n");
// email advisory included warning for all emails customer generate - tell-a-friend and GV send
define('EMAIL_ADVISORY_INCLUDED_WARNING', '<strong>This message is included with all emails sent from this site:</strong>');
// Admin additional email subjects
define('SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT','[CREATE ACCOUNT]');
define('SEND_EXTRA_TELL_A_FRIEND_EMAILS_TO_SUBJECT','[TELL A FRIEND]');
define('SEND_EXTRA_GV_CUSTOMER_EMAILS_TO_SUBJECT','[GV CUSTOMER SENT]');
define('SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT','[NEW ORDER]');
define('SEND_EXTRA_CC_EMAILS_TO_SUBJECT','[EXTRA CC ORDER info] #');
// Low Stock Emails
define('EMAIL_TEXT_SUBJECT_LOWSTOCK','Warning: Low Stock');
define('SEND_EXTRA_LOW_STOCK_EMAIL_TITLE','Low Stock Report: ');
// for when gethost is off
define('OFFICE_IP_TO_HOST_ADDRESS', 'Disabled');
?>
It was interesting to notice that, as soon as I changed the zen_href_link(FILENAME_DEFAULT) to zen_catalog_href_link(FILENAME_DEFAULT) the link started pointing correctly to the store directory.
If this is really a bug and one of the developers read this post, please have it corrected in the next release. And a note in the section of foreign language packs would warn people and save them some trouble and some security risks.
I wish to thank the user Info2Share from Netherlands for finding the cause and providing the solution. Unfortunately his above thread is closed and I can not post there.
Bookmarks