Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2011
    Posts
    121
    Plugin Contributions
    0

    Default Where to change the templates of NON-HTML order emails?

    I am trying to make changes to the way attributes work. For example, shows two different sets of attributes depending on their first chosen option.

    I found the file includes/classes/order.php, but it seems to contain only the HTML emails, where do I change the non-HTML layout?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Where to change the templates of NON-HTML order emails?

    Quote Originally Posted by joecooper View Post
    I am trying to make changes to the way attributes work. For example, shows two different sets of attributes depending on their first chosen option.

    I found the file includes/classes/order.php, but it seems to contain only the HTML emails, where do I change the non-HTML layout?
    Same file, look at assignments to the variable $email_order for the non-html content.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Aug 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: Where to change the templates of NON-HTML order emails?

    Thanks,

    I am hoping to change the way that attributes are generated for the email. More specifically, only display some attributes if another attribute is selected. I can't see where I would need to change this.

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Where to change the templates of NON-HTML order emails?

    You'd need to write code to do that. Zencart doesn't support 'dependent attributes', though some may have kludged it by using a combination of two mods. Search the forum for 'dependent attributes".

    Here's one solution: https://www.zen-cart.com/showthread....Manual-Attempt
    Last edited by stevesh; 3 Jun 2015 at 04:10 PM.

  5. #5
    Join Date
    Aug 2011
    Posts
    121
    Plugin Contributions
    0

    Default Re: Where to change the templates of NON-HTML order emails?

    I've managed to do this for the cart, the order history, and the orders page on the control panel. The email however displays all of the options.

    I am using one attribute which selects either "Name" or "Initials" for a product personalisation. "Name" lets the user choose fonts, and "Initials" chooses some separate styles. I am using JQuery to show and hide DIV's to do this, Just a case of not displaying the wrong info in the checkout process etc.
    Last edited by joecooper; 3 Jun 2015 at 04:40 PM.

 

 

Similar Threads

  1. Where are the language files for HTML emails ?
    By drgr33n in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Oct 2010, 02:37 PM
  2. How do I change the Order Confirmation emails?
    By sports guy in forum Basic Configuration
    Replies: 2
    Last Post: 23 Sep 2010, 05:34 PM
  3. Where to change subject on Order update emails.
    By Balboa in forum General Questions
    Replies: 1
    Last Post: 14 Feb 2007, 12:34 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