Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2008
    Posts
    164
    Plugin Contributions
    0

    Default Modify Email Templates

    I'm looking to re-configure how the e-mails look and the information they contain, and I can find them in the zencart/emails folder, but there are variables that I'm unable to find.

    Where is the text built?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Modify Email Templates

    This same document is contained in your /docs/ folder of the original Zen Cart zip file: https://www.zen-cart.com/tutorials/i...hp?article=113
    .

    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
    Nov 2008
    Posts
    164
    Plugin Contributions
    0

    Default Re: Modify Email Templates

    So it is - thanks. I was still unable to find where the text is actually defined - it mentions a few files but I can't seem to find the actual text anywhere (and developer's toolkit isn't helping).

    For example, where do I find-$EMAIL_WELCOME ?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Modify Email Templates

    That comes from whatever you've defined in your language file for EMAIL_WELCOME.
    .

    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
    Nov 2008
    Posts
    164
    Plugin Contributions
    0

    Default Re: Modify Email Templates

    I think I'm starting to understand this - it's the individual pages themselves that send the emails so aside from the page text being defined in the /includes/languages/english/templates/YOUR_TEMPLATE/, the e-mail text is as well.

    So for the welcome e-mail, the text is mostly defined in /includes/languages/english/templates/YOUR_TEMPLATE/create_account.php
    For the order status update email - /zc_admin/includes/languages/english/orders.php

    Hopefully this will help anyone else who finds this thread.

    IIRC - the admin area doesn't use templates does it? So any updates will overwrite changes in the admin area?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Modify Email Templates

    In Zen Cart v1.x ...
    All system content comes from language files. That includes emails too.
    And adding new content to emails requires altering the core code that generates each page-specific email.
    So does changing layout of text-only emails. Layout of html-styled emails is controlled by the email template files in the /email/ folder.
    And, yes, the v1.x admin has no override support: you must edit the files directly.
    .

    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.

 

 

Similar Threads

  1. v154 eMail Templates HTML vs Text and email defines
    By kwright in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Feb 2015, 03:09 AM
  2. New Zen Cart Template or Modify One of the In House Templates?
    By Pet Herbal Remedies in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Oct 2010, 02:36 PM
  3. modify text email to admin
    By 100asa in forum General Questions
    Replies: 1
    Last Post: 10 Jan 2007, 07:30 AM
  4. override email templates in email folder
    By epol in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Sep 2006, 08:47 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