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,586

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,515
Plugin Contributions:
176

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.

.
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.

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,515
Plugin Contributions:
176

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

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

.
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.