Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2008
    Posts
    11
    Plugin Contributions
    0

    Idea or Suggestion 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!

  2. #2
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

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

    PHP Code:
    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..

    PHP Code:
    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.'); 

  3. #3
    Join Date
    Apr 2008
    Posts
    11
    Plugin Contributions
    0

    Default 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!!

  4. #4
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default 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.p...on_-_Templates

  5. #5
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Tell a friend page - remove admin email?

    Just to clarify, the copy I use is includes\languages\english\custom\email_extras.php because "custom" is the name of the template I created.

  6. #6
    Join Date
    Apr 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: Tell a friend page - remove admin email?

    Many thanks Steven300 - you're a STAR!

  7. #7
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default 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:
    PHP Code:
    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:
    PHP Code:
      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.

 

 

Similar Threads

  1. Remove Tell a Friend from Product page - Cherry Zen
    By Akoza in forum Addon Templates
    Replies: 6
    Last Post: 24 Apr 2009, 07:32 PM
  2. Refer a friend page or Tell a friend about website, not product
    By dealbyethan.com in forum General Questions
    Replies: 2
    Last Post: 5 Jul 2008, 11:58 AM
  3. Remove Side Boxes From Tell A Friend Page
    By webgaffer in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Oct 2007, 08:48 AM
  4. Tell a friend about this product sending email only to admin
    By audradh in forum General Questions
    Replies: 2
    Last Post: 30 May 2006, 09:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg