Zen Cart Logo
Forums / General Questions / Tell a friend page - remove admin email?

Tell a friend page - remove admin email?

Locked

Views: 2,774

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
2 May 2008, 1:28 PM
#1
lisali avatar

lisali

New Zenner

Join Date:
Apr 2008
Posts:
11
Plugin Contributions:
0

Tell a friend page - remove admin email?

Hello,

On the "Tell a friend page", underneath the fom, there is a disclaimer saying "...If you feel that you have received this email in error, please send an email to [email protected]".

Now, I do not want the email to be publicly available there. I have tried editing the corresponding .php file that contains the definition, but if I remove the email, none of the pages load.

Any suggestion?

Thanks!:unsure:

2 May 2008, 1:41 PM
#2
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Tell a friend page - remove admin email?

It sounds like you might have made some type of syntax error whilst editing. I made this same change on my site a while back so this is what I did:

Make a copy of includes\languages\english\email_extras.php

and put it into your custom template.

Open up the copy and at around line 33, I changed..

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");

to..

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 visit our website and contact us using our contact form.');
2 May 2008, 1:53 PM
#3
lisali avatar

lisali

New Zenner

Join Date:
Apr 2008
Posts:
11
Plugin Contributions:
0

Re: Tell a friend page - remove admin email?

Hello Steven300,

Many thanks for your reply, much appreciated. I have tried making the change as suggested to the original .php file and it works! Do not know what I did wrong, and I did try everything. Many thanks again!

Just one question - you say to copy the file into my custom template - where there? Should it go just under includes/templates/MY_TEMPLATE/ or somewhere else? Is that the override I have seen mentioned here on the boards?

Many thanks!!:clap:

2 May 2008, 2:03 PM
#4
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Tell a friend page - remove admin email?

You need to start making use of the overide system if you want to keep all your changes, otherwise you'll lose everything during your next upgrade.

If you have done this, then all you need to do is wherever you see a folder called Classic, just create another folder beside it with the same name as your template and then any files which you put in there will automatically overide the files in the directory above.

This might explain it better..
http://www.zen-cart.com/wiki/index.php/Customisation_-_Templates

3 May 2008, 4:27 PM
#6
lisali avatar

lisali

New Zenner

Join Date:
Apr 2008
Posts:
11
Plugin Contributions:
0

Re: Tell a friend page - remove admin email?

Many thanks Steven300 - you're a STAR!
:clap:

9 Jun 2008, 12:38 PM
#7
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: Tell a friend page - remove admin email?

Alternatively, again from includes/languages/english/Your_Template/email_extras.php at around line 33, replace this line:

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");

with this:

  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 contact the <a href="' . zen_href_link(FILENAME_CONTACT_US) . '">store owner</a>.<br /><br />');

This alternative has the contact us href built in. I copied it from the create_account_success.php page.