Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Jun 2009
    Location
    NC
    Posts
    174
    Plugin Contributions
    1

    Default Re: Order Invoice - Product Description

    Quote Originally Posted by Ajeh View Post
    If you want it as long as it is in the products table and don't care if when you delete the Product you cannot see the Product description and it just reading NOT FOUND vs Today's products_description then you can just use a quick look up ...
    This one, totally.

    We keep records of all orders in a separate inventory and accounting system (as only a small percentage of our orders come from our website). The thing that my coworkers are unhappy with is that our data feed (over which I have no control...damnit) has stupid, non-descript titles like "Cholestech Accessories" (this title is the same for at least 70 different products). I know, I know, it's clunky and awful. I would just fix the data feed myself, but it's too large to work with manually (60,000 products in our store). Sorry...that turned out to be more like whining than I intended. Thanks a lot for your response.

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Order Invoice - Product Description

    You still need to explain if you need the products_description to be available even if the Product is deleted later after the Orders have been processed etc. of if you just need the Products Description to always be on the Order for each Product ...

    If you need it always with the Order, then it will need to be saved in the orders_products table and some numerous code changes are needed ...

    If you need it for a short period of time, such as when the Product might be deleted and it is no longer available, you can just use a function to pull the information for display and if the Product is not found then display:
    Description Not Found

    Which way do you really need this to work?
    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!]
    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. #13
    Join Date
    Jun 2009
    Location
    NC
    Posts
    174
    Plugin Contributions
    1

    Default Re: Order Invoice - Product Description

    If you need it for a short period of time, such as when the Product might be deleted and it is no longer available, you can just use a function to pull the information for display and if the Product is not found then display:
    Description Not Found
    That one.

    We enter these orders into a completely different accounting and inventory system as we receive them. So, we only need the online record to exist for a short while.

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Order Invoice - Product Description

    You could use the:
    function zen_get_products_description($product_id, $language_id)

    from the general.php and pass it the current values for $product_id and $language_id from where you are in the code for the file where you want to see this ...

    If you need to clean up the products_description because of html code that might be in it, you might look how the Product Listing does it ...
    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!]
    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!

  5. #15
    Join Date
    Jun 2009
    Location
    NC
    Posts
    174
    Plugin Contributions
    1

    Default Re: Order Invoice - Product Description

    Quote Originally Posted by Ajeh View Post
    You could use the:
    function zen_get_products_description($product_id, $language_id)

    from the general.php and pass it the current values for $product_id and $language_id from where you are in the code for the file where you want to see this ...
    Okay...I kinda get it.

    So, I would want to put the first part of this code (the function) into /admin/includes/orders.php (not the admin/includes/classes/order.php), , as that is the file actually outputting the data into the browser, correct?

    The second part is where I get confused; "general.php" is where the function is created? So I don't have to do anything there, right? That's just where all of the functions are defined...I'm guessing.

    So...in orders.php, I'd find the table where the order data is actually being output, simply insert another row in that table, and insert the "zen_get_products_description" function there...I'm hoping...

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Order Invoice - Product Description

    The function itself is in the file:
    /admin/includes/functions/genera.php

    you do not need to touch this, just use the function from it:
    zen_get_products_description($product_id, $language_id)

    On the file where you want to output the data, you would then find how to address the products_id and languages_id to pass to this function ...

    Most likely:
    $order->products[$i]['id']
    $_SESSION['languages_id']
    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!]
    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!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Add Product Description to Invoice/orders/emails ect;
    By golowenow in forum Managing Customers and Orders
    Replies: 40
    Last Post: 8 Nov 2014, 09:13 PM
  2. Product sort order on invoice
    By Gonzon in forum Setting Up Categories, Products, Attributes
    Replies: 17
    Last Post: 9 Jun 2009, 09:48 PM
  3. Atributes Sort order on product description
    By chris32882 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Nov 2008, 05:19 PM
  4. Invoice product order... help!
    By GTMediaPDX in forum General Questions
    Replies: 0
    Last Post: 14 Mar 2008, 01:35 AM
  5. Crazy order problem: customer charged, product not removed/added to invoice
    By Lisk in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 16 Dec 2007, 07:13 AM

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