Zen Cart Logo
Forums / General Questions / Email Invoice and Receipts

Email Invoice and Receipts

Views: 902

Results 1 to 4 of 4
30 Mar 2011, 6:57 PM
#1
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Email Invoice and Receipts

Does anybody know how I would go about adding product descriptions to invoices and receipts?

Thank You

Nick

30 Mar 2011, 11:05 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Email Invoice and Receipts

That information is not saved in the table:
orders_product

You could do a look up for this information with the function:

function zen_products_lookup($product_id, $what_field = 'products_name', $language = '') { 

with something like this in the file:
/your_secret_admin_dir/invoice.php

           '        <td class="dataTableContent" valign="top">' . $order->products[$i]['name'] . '<br />' . zen_products_lookup($order->products[$i]['id'], 'products_description');
26 Apr 2011, 7:20 PM
#3
nick1973 avatar

nick1973

Totally Zenned

Join Date:
Sep 2008
Location:
Cleethorpes
Posts:
1,230
Plugin Contributions:
3

Re: Email Invoice and Receipts

Hi Linda, gave that a go and didn't appear to work properly. It might have been where I entered the code you gave me though. Where would I put this code in the file invoice.php?

Thanks

Nick

26 Apr 2011, 10:53 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Email Invoice and Receipts

Around line 159 you will see the:
$order->products[$i]['name']

I just added the code in red next to that ...