Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2006
    Posts
    3
    Plugin Contributions
    0

    Default displaying the product id in the order view

    I have a new order, however the order invoice, and the other order viewing screens only show the quantity, price, and description of the products, but not the id of the product. This makes it difficult to fill the order since my product names are not descriptive enough to determine the product.

    I know, maybe my product names should be more descriptive, but it shouldn't be too much work to add a link to the product detail page, based on the product it.

    I tried this, editing invoice.php, however, the $order->products structure does not hold the product_id.

    Any ideas?

    Thanks!

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

    Default Re: displaying the product id in the order view

    you need to call it via:
    PHP Code:
    $order->products[$i]['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: 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
    Nov 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: displaying the product id in the order view

    I presume this must have been changed, since when I did a var_dump on the order, I got this:

    array(8) { ["qty"]=> int(1) ["name"]=> string(4) "Home" ["model"]=> string(0) "" ["tax"]=> string(6) "0.0000" ["price"]=> string(7) "15.9000" ["onetime_charges"]=> string(6) "0.0000" ["final_price"]=> string(7) "15.9000" ["product_is_free"]=> string(1) "0" }

    And no "id" field is there.

    (I'm on 1.2.6)
    Last edited by wesyah234; 30 Nov 2006 at 02:39 PM. Reason: added version #

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

    Default Re: displaying the product id in the order view

    Might be because you are on such an old version of Zen Cart ...

    I believe that was added in the v1.3.x series to make for easier access ...

    You would have to customize your:
    /admin/classes/orders.php

    to include that field ...

    NOTE: we do recommend that you upgrade to v1.3.6 for security, bugfixes and additional features ...
    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!

  5. #5
    Join Date
    Nov 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: displaying the product id in the order view

    Thanks!

    I will definitely upgrade soon!

 

 

Similar Threads

  1. v153 Removing the "Product Model" from the META Title in the product info view?
    By joecooper in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 May 2015, 07:54 PM
  2. V 1.3.9g Problems Displaying the £ sign in the Product info Box.
    By Spectre in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 26 Feb 2014, 04:06 PM
  3. Replies: 0
    Last Post: 22 Jun 2009, 06:06 AM
  4. View Previous Order - Where is the back button?
    By gnuzoo in forum General Questions
    Replies: 0
    Last Post: 29 Jan 2009, 10:03 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