Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / "Powered By" Email Footer Location (Not email_extras.php)

"Powered By" Email Footer Location (Not email_extras.php)

Locked

Views: 2,583

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
27 Nov 2007, 2:12 PM
#1
rtx avatar

rtx

New Zenner

Join Date:
Oct 2007
Posts:
26
Plugin Contributions:
0

"Powered By" Email Footer Location (Not email_extras.php)

I have read the book... When I choose to send an email from Admin->Tools->Send Email I get a "Copyright (c) 2007 Zen Cart. Powered by Zen Cart" footer. But I have overridden the email_extras.php file by putting a copy in my template folder in the store/includes/languages/english directory. In my overriding version, I have changed the copyright etc. to my site. The override seems to have worked for the automatically generated e-mails (when someone creates an account, for example). That is, my amended correct footer is used! But it is not being used on the Admin->Tools->Send Email. I cannot find another file that has this text (related to e-mails). Please could someone point me in the right direction?

One other thing. Am I right that I cannot override the email html files in store/email by creating an override file in that directory? I have to actually edit the "native" files?

Thanks,
RtX

27 Nov 2007, 2:25 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: "Powered By" Email Footer Location (Not email_extras.php)

RtX:

I have read the book... When I choose to send an email from Admin->Tools->Send Email I get a "Copyright (c) 2007 Zen Cart. Powered by Zen Cart" footer. But I have overridden the email_extras.php file by putting a copy in my template folder in the store/includes/languages/english directory. In my overriding version, I have changed the copyright etc. to my site. The override seems to have worked for the automatically generated e-mails (when someone creates an account, for example). That is, my amended correct footer is used! But it is not being used on the Admin->Tools->Send Email. I cannot find another file that has this text (related to e-mails). Please could someone point me in the right direction?There is an email_extras.php file in your admin folder structure too. You'll need to edit both.

You can locate files containing the text you want to change by searching your server using the Developers Toolkit, or searching your own PC.
FAQ:
https://www.zen-cart.com/tutorials/index.php?article=39
https://www.zen-cart.com/tutorials/index.php?article=38

RtX:

One other thing. Am I right that I cannot override the email html files in store/email by creating an override file in that directory? I have to actually edit the "native" files?

Correct. At the present time you must edit the original files in the /email folder.

27 Nov 2007, 3:19 PM
#3
rtx avatar

rtx

New Zenner

Join Date:
Oct 2007
Posts:
26
Plugin Contributions:
0

Re: "Powered By" Email Footer Location (Not email_extras.php)

Many thanks.

So I found email_extras.php in store/admin/includes/languages/english. I copied it to an override sub-directory of the same directory. I still had the same problem: Copyright (c) Zen-Cart etc. If I edit the file in store/admin/includes/languages/english and it seems to work. I think I remember reading that overrides do not work in admin, so this is not a surprise and I have solved my problem (if not really very elegantly). Are there plans to have an override system within admin? If so, I'll leave my override directory on the file system. If not, I'll delete it. One suggestion I would make is that the "sent by admin" e-mails should use the definitions used by the "automatic" e-mail sender.

Many thanks again,
RtX

27 Nov 2007, 3:26 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: "Powered By" Email Footer Location (Not email_extras.php)

You can safely remove your "override" folder from the admin for now.