Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2010
    Posts
    3
    Plugin Contributions
    0

    Default How to point to a different email template?

    Hello all,

    Wonder if anyone can help with this.
    As some of you may know On confirmation of an order zen cart sends a e-mail to the customer and one to admin (if specified).

    What zen cart does at the moment as far as I understand, bolts on the $EXTRA_INFO part for the admin to the bottom of the same email_template_checkout.html. However I want the emails to be totally different in layout, not with just the extra_info part added.

    So I looked through Zen Cart's codes. In order.php I changed the zen_mail function's arguement (at around line 1034) from "checkout_extra" to say "checkoutadmin", which is stored as the $module variable in function_email.php. As far as I under stand zen_mail function in functions_email.php passes $module to zen_build_html_email_from_template function and attempts to find the template specified, which in this case should be email_template_checkoutadmin.html (which I have created, and put in the correct folder), however I do not get the correct output. The email output I get for the customer is correct, but for the admin email, it reverts back to a simple text email, which is what happens when the function doesnt find the corresponding html template.

    Can someone point out to me what I need to correct / do. Or suggest an alternative way to send 2 different emails on order confirmation.

    Many Thanks,

    Jim

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: How to point to a different email template?

    Check setting
    admin > config > email > Email Admin Format? >
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to point to a different email template?

    Nope, html format is already turned on for admin emails, so thats not the reason why the new template isnt being "read".

    Jim

  4. #4
    Join Date
    Oct 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to point to a different email template?

    Its working now, I guess I was just too tired last night, it was a simple typo error XD

    Jim

 

 

Similar Threads

  1. Replies: 12
    Last Post: 27 Jul 2016, 12:20 AM
  2. mail_gv add different variable to email template?
    By nagelkruid in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 24 Feb 2011, 02:37 PM
  3. how to send different checkout email by payment?
    By webenjoy in forum General Questions
    Replies: 5
    Last Post: 30 Sep 2010, 05:06 PM
  4. How to modify email template, need help
    By sabulite in forum General Questions
    Replies: 17
    Last Post: 18 Aug 2009, 01:01 PM
  5. How do I upload a different template?
    By butrcup in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 18 Nov 2008, 06:38 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