Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2008
    Location
    Grimsby, North East Lincolnshire, UK
    Posts
    449
    Plugin Contributions
    0

    red flag Email Invoice and Receipts

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

    Thank You

    Nick

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,713
    Plugin Contributions
    6

    Default 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:
    Code:
    function zen_products_lookup($product_id, $what_field = 'products_name', $language = '') {
    with something like this in the file:
    /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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Sep 2008
    Location
    Grimsby, North East Lincolnshire, UK
    Posts
    449
    Plugin Contributions
    0

    red flag 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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,713
    Plugin Contributions
    6

    Default 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 ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Possible to email through invoice to an email address on order?
    By JohneeMac in forum Managing Customers and Orders
    Replies: 1
    Last Post: 9 Nov 2008, 03:16 AM
  2. invoice email
    By kburner in forum Managing Customers and Orders
    Replies: 6
    Last Post: 6 Nov 2008, 09:18 PM
  3. Add Customer Email to HTML order Receipts
    By Lawbird123 in forum Managing Customers and Orders
    Replies: 0
    Last Post: 5 Dec 2007, 04:37 PM
  4. Better looking email invoice
    By lorhan in forum General Questions
    Replies: 0
    Last Post: 2 Dec 2007, 06:28 PM
  5. Add 'manufacturer' to email receipts?
    By creativearc in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Sep 2007, 04:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •