Does anybody know how I would go about adding product descriptions to invoices and receipts?
Thank You
Nick
Does anybody know how I would go about adding product descriptions to invoices and receipts?
Thank You
Nick
That information is not saved in the table:
orders_product
You could do a look up for this information with the function:
with something like this in the file:Code:function zen_products_lookup($product_id, $what_field = 'products_name', $language = '') {
/your_secret_admin_dir/invoice.php
Code:' <td class="dataTableContent" valign="top">' . $order->products[$i]['name'] . '<br />' . zen_products_lookup($order->products[$i]['id'], 'products_description');
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
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
Around line 159 you will see the:
$order->products[$i]['name']
I just added the code in red next to that ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Bookmarks