Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Location
    France
    Posts
    576
    Plugin Contributions
    8

    Default Different email templates per order status. Is it possible?

    Sorry if this has already been covered. I did do a search but found nothing relevant.

    I'm aware that zen cart uses the email_template_order_status.php file from the /email directory for status update emails in html but i would like to use a second template when the order status is changed from 3 to 4.

    How does zen cart call the template in the first place? I globally searched the code for email_template_order_status and found nothing. I was expecting to find a require or include type command or some other code section that told it what template to use.

    Adding in a separate template would be extremely easy if i can find where zen cart calls the correct template from, but it's got me beat so far.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Different email templates per order status. Is it possible?

    /admin/orders.php, line 154:
    Code:
                zen_mail($check_status->fields['customers_name'], $check_status->fields['customers_email_address'], EMAIL_TEXT_SUBJECT . ' #' . $oID, 
                            $message, STORE_NAME, EMAIL_FROM, $html_msg, 'order_status');
    .

    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 2005
    Location
    France
    Posts
    576
    Plugin Contributions
    8

    Default Re: Different email templates per order status. Is it possible?

    Thanks a lot DrByte. Just what i needed :)
    All done and tested.

 

 

Similar Threads

  1. v150 Customize order status email subject line to include status name
    By ShopVille in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Oct 2015, 09:24 PM
  2. Send different email depending on order status
    By eden in forum General Questions
    Replies: 2
    Last Post: 21 Sep 2008, 04:08 PM
  3. Different templates per category
    By denel003 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Aug 2007, 07:20 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR