Forums / Templates, Stylesheets, Page Layout / Editing email order confirmation

Editing email order confirmation

Locked

Started by chronister on 27 Nov 2007, 5:05 PM · Views: 2,376

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,511
Plugin Contributions:
176

Re: Editing email order confirmation

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

.
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.

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,511
Plugin Contributions:
176

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" .

.
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.

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