Forums / Templates, Stylesheets, Page Layout / Need to add product description on email to customer and admin

Need to add product description on email to customer and admin

Locked

Started by jeffmic on 16 Nov 2010, 6:50 PM · Views: 840

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
16 Nov 2010, 6:50 PM
#1
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Need to add product description on email to customer and admin

Hi everyone,

I have one (of multiple) websites that needs an extra piece of text on the email sent to the customer AND the admin.

Under each product and above the options value, I need the product description on it's own line in between. It's not much text, but it's important. In my other sites, I have this data listed in the options value, but that is not possible with this particular site. 1.3.9g

I know it's in includes/classes/order.php, but I'm not sure how to code it correctly. My description has a line break in it within the product info page, but I'd like the two lines to come together into one line on the email if possible.

thanks for your help

Jeff Michaels,
pres of Musical Creations Ltd.

20 Nov 2010, 9:20 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Need to add product description on email to customer and admin

Try this?```
'<td class="product-details" valign="top">' . nl2br($this->products[$i]['name']) . ($this->products[$i]['model'] != '' ? ' (' . nl2br($this->products[$i]['model']) . ') ' : '') . "\n" .[b]
zen_clean_html(zen_get_products_description(zen_get_prid($this->products[$i]['id']))) . "\n" .
[/b] '<nobr>' .

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