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
Views: 902
Totally Zenned
Does anybody know how I would go about adding product descriptions to invoices and receipts?
Thank You
Nick
Oba-san
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');
Totally Zenned
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
Oba-san
Around line 159 you will see the:
$order->products[$i]['name']
I just added the code in red next to that ...
Tell staff why this post should be reviewed.