Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,227
    Plugin Contributions
    6

    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
    69,402
    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.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!

  3. #3
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,227
    Plugin Contributions
    6

    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
    69,402
    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.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!

 

 

Similar Threads

  1. Hotlink the IP address on Email Receipts?
    By blackhalo in forum General Questions
    Replies: 3
    Last Post: 4 Aug 2011, 01:44 AM
  2. email confirmation and invoice question
    By RichardKletty in forum General Questions
    Replies: 9
    Last Post: 3 Nov 2008, 07:10 AM
  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. 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR