Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Editing email order confirmation

Editing email order confirmation

Locked

Views: 2,375

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
27 Nov 2007, 5:05 PM
#1
chronister avatar

chronister

New Zenner

Join Date:
Oct 2007
Posts:
10
Plugin Contributions:
0

Editing email order confirmation

Hello,

I finally figured out the over-ride system and it works great.

When my order gets processed, there are several attributes for each product and I need to modify the order confirmation email and add some line breaks in there so my attributes are on individual lines rather than all on one line.

Where would I find the code that plugs the data into the email template?

Thanks in advance.

29 Nov 2007, 6:34 PM
#2
chronister avatar

chronister

New Zenner

Join Date:
Oct 2007
Posts:
10
Plugin Contributions:
0

Re: Editing email order confirmation

bump

can someone please assist me here?

29 Nov 2007, 7:31 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Editing email order confirmation

By default, attributes are already listed one-per-line in the confirmation emails.

29 Nov 2007, 8:27 PM
#4
chronister avatar

chronister

New Zenner

Join Date:
Oct 2007
Posts:
10
Plugin Contributions:
0

Re: Editing email order confirmation

Then can you help me figure out why they are showing on 1 line?

I have attached a screenshot to show you what I am talking about.

As you can see, they are showing up as

Products
1 x 3 Specialty Pizza's Pizza 1 Matador w/ Mild Chile Peppers Pizza 2 Matador w/ Mild Chile Peppers Pizza 3 Fajita $165.00
---------
Sub-Total: $165.00
Discount Coupon: devtest : -$165.00
Total: $0.00

rather than

Products
1 x 3 Specialty Pizza's
Pizza 1- Matador w/ Mild Chile Peppers
Pizza 2 - Matador w/ Mild Chile Peppers
Pizza 3 - Fajita
$165.00
---------
Sub-Total: $165.00
Discount Coupon: devtest : -$165.00
Total: $0.00

Where can I modify the formatting of the email? I found the email template, but it does not have the actual attribute code. It just has 1 variable that displays the attributes.

Thanks in advance for the help

30 Nov 2007, 12:20 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Editing email order confirmation

Try editing your /includes/classes/order.php file:
around line 850 you'll see: '<nobr><small><em> '. $this->products_ordered_attributes .'</em></small></nobr></td>' .change it to:```
'<nobr><small><em> '. [B]nl2br([/B]$this->products_ordered_attributes[B])[/B] .'</em></small></nobr></td>' . "\n" .

30 Nov 2007, 2:43 AM
#6
chronister avatar

chronister

New Zenner

Join Date:
Oct 2007
Posts:
10
Plugin Contributions:
0

Re: Editing email order confirmation

Perfect.... thanks