Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2007
    Posts
    10
    Plugin Contributions
    0

    help question Item number on order, invoice & packing list

    New Zenner can't find product's item number on Order, Invoice or Packing Slip.

    Also can't find any way in admin to cause item number to be included.

    Model number is included on order, invoice and packing slip but not item #.

    HOW DO I GET THE ITEM NUMBER TO DISPLAY On Order, Invoice and Packing Slip?



    I am talking about he ZenCart Item # that is automatically assigned upon creation of a new listing.

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

    Default Re: Item number on order, invoice & packing list

    You could display that using:
    $order->products[$i]['id']

    NOTE: there are no overrides in the /admin so you should save your original file(s) and copies of your change file(s) for future reference ...
    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
    Jul 2008
    Posts
    35
    Plugin Contributions
    0

    Default Re: Item number on order, invoice & packing list

    HI Ajeh,

    I went to /public_html/admin/invoice.php and changed all $order->products[$i] to: $order->products[$i]['id'] but now the invoice gives an error message:

    Fatal error: Cannot use string offset as an array in /home1/wardrob2/public_html/admin/invoice.php on line 351

    What did I do wrong and how can I fix this?

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

    Default Re: Item number on order, invoice & packing list

    You don't want to change those, you just need to add the $order->products[$i]['id'] to the display around line 171 ...

    Put the file back to how it was and try this change to see the products_id show ...
    PHP Code:
               '        <td class="dataTableContent" valign="top" align="right">' 'ID# ' $order->products[$i]['id'] . $order->products[$i]['qty'] . '&nbsp;x</td>' "\n" 
    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. orders_status_history not printing completely on packing list ad invoice
    By badarac in forum Managing Customers and Orders
    Replies: 6
    Last Post: 23 Nov 2010, 03:48 AM
  2. Adding Fax Number Field to Packing/Invoice
    By esugrue in forum Managing Customers and Orders
    Replies: 11
    Last Post: 6 Mar 2009, 05:38 PM
  3. Change Invoice & Packing Slip
    By a4tech in forum Customization from the Admin
    Replies: 4
    Last Post: 6 Aug 2007, 02:57 PM
  4. How do i change items in invoice or packing list
    By Rollingstyle in forum Managing Customers and Orders
    Replies: 2
    Last Post: 13 Jul 2007, 03:54 AM

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