Forums / General Questions / Where to change the templates of NON-HTML order emails?

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

Started by joecooper on 29 May 2015, 12:44 PM · Views: 851

Results 1 to 5 of 5
29 May 2015, 12:44 PM
#1
joecooper avatar

joecooper

Zen Follower

Join Date:
Aug 2011
Posts:
122
Plugin Contributions:
0

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?

29 May 2015, 2:46 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

joecooper:

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 Jun 2015, 3:01 PM
#3
joecooper avatar

joecooper

Zen Follower

Join Date:
Aug 2011
Posts:
122
Plugin Contributions:
0

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.

3 Jun 2015, 3:05 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.php?211344-Dependent-Attributes-A-Manual-Attempt

3 Jun 2015, 3:38 PM
#5
joecooper avatar

joecooper

Zen Follower

Join Date:
Aug 2011
Posts:
122
Plugin Contributions:
0

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.