Thread: email overrides

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jun 2009
    Posts
    14
    Plugin Contributions
    0

    Default email overrides

    I have a question about the various email that can be sent and changing the content of that email.

    I am changing the content of the email that is sent from my store to remove the ZenCart logo (sorry folks) and inserting my own for example. My question is, where do I save the changed email files? I've only seen one email directory and that's directly underneath the zencart directory. Assuming the override system works with email also, there must be a way of keeping the original files intact on the server. I do maintain all the original files locally as well as my modified files.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: email overrides

    The /email/ folder is the place where all your rich-text (HTML) email layout templates are stored.
    There are presently only language-specific overrides there, so if you're only using one language, you'll just edit the files in that folder.
    And, to change the logo shown, the simplest way is just to replace the content of the existing /email/header.jpg file. Naturally, you can get more elaborate than that, which would involve editing all relevant email templates in that 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.

  3. #3
    Join Date
    May 2010
    Location
    Texas
    Posts
    508
    Plugin Contributions
    0

    Default Re: email overrides

    So any changes that are made to the files in /email/ will be lost if the an upgrade is made? Meaning there is no real override for this folder?

    Also, it appears that the txt emails are just formed from various defines in php files???

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: email overrides

    yes and yes
    .

    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.

  5. #5
    Join Date
    Oct 2011
    Location
    Colorado Springs, CO
    Posts
    105
    Plugin Contributions
    0

    Default Re: email overrides

    I too am a little confused on how to change the text in the email templates. I purchased the book advertised on ZenCart; e-start your web store with Zen Cart. So far it is great, a lot of help. But I cannot figure out how to change the text in emails sent to customers to be what I want it to say.

    In the book, on page 49 it says. "to customize the text in any
    emails, you should go through the section [of this book] “The Template Override System” before returning to this page because that section shows you how to utilize the Override System to edit files properly and also covers some of the terminology we shall be using in this section."

    I checked out that part of the book, page 286, and it talks about the override system, but says absolutely nothing about where it is and how to use it.

    I have also read the part about the Developers Tool Kit, but that only shows you the line where the changeable text is, but when you open the respective file up in an editor, that line is not there, just $EMAIL_WELCOME, or whatever the case may be. You can't see the text you need to change.

    Help!!

  6. #6
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: email overrides

    Changing the header image and changing the text are two different animals. While changing the header image is done by editing the files in the /email folder and there is no overrrides system, changing the text is done by editing the associated language files and there is an overrides system:

    includes/languages/english/your_template/checkout_process.php

    define('EMAIL_THANKS_FOR_SHOPPING'

    includes/languages/english/your_template/create_account.php

    define('EMAIL_TEXT'

  7. #7
    Join Date
    Oct 2011
    Location
    Colorado Springs, CO
    Posts
    105
    Plugin Contributions
    0

    Default Re: email overrides

    Sorry about that. I did a search and read quite a few threads on the subject and not one fully answered the question. I got confused as to which one I was replying to. But I thank you for your answer. It is a little closer to what I want. Please, I am a worthless newbie. Could you be specific as to HOW to do the change, step by step. Or direct me to a thread that is step by step.

  8. #8
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: email overrides

    Quote Originally Posted by FukienMan View Post
    Sorry about that. I did a search and read quite a few threads on the subject and not one fully answered the question. I got confused as to which one I was replying to. But I thank you for your answer. It is a little closer to what I want. Please, I am a worthless newbie. Could you be specific as to HOW to do the change, step by step. Or direct me to a thread that is step by step.
    Download the files I've listed above, one set to a folder named "backup", and another set to a folder named "edit". Open one of the files from the "edit" folder with a plain text editor. I'll use checkout_process.php as the example.

    define('EMAIL_TEXT_SUBJECT', 'Order Confirmation');
    define('EMAIL_TEXT_HEADER', 'Order Confirmation');
    define('EMAIL_TEXT_FROM',' from '); //added to the EMAIL_TEXT_HEADER, above on text-only emails
    define('EMAIL_THANKS_FOR_SHOPPING',' Thanks for shopping with us today! ');
    define('EMAIL_DETAILS_FOLLOW','The following are the details of your order.');
    define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');
    ...

    The text in red is what you would change. After you've made your changes upload the file to includes/languages/english/your_template/

    If you screw up, just upload the file from the backup folder you created.

  9. #9
    Join Date
    Oct 2011
    Location
    Colorado Springs, CO
    Posts
    105
    Plugin Contributions
    0

    Default Re: email overrides

    Thank you RescoCCC, that is exactly what I needed. I hope this is helpful to others as well.

  10. #10
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: email overrides

    You're welcome. It wasn't that long ago that I was asking similar questions.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Overrides
    By logicalstep in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 9 Feb 2011, 02:18 PM

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