Zen Cart Logo
Forums / Managing Customers and Orders / Item number on order, invoice & packing list

Item number on order, invoice & packing list

Locked

Views: 4,764

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
15 Dec 2007, 7:19 PM
#1
tatay avatar

tatay

New Zenner

Join Date:
Dec 2007
Posts:
11
Plugin Contributions:
0

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?

:unsure:

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

16 Dec 2007, 3:43 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

12 Sep 2008, 3:06 PM
#3
hindley08 avatar

hindley08

New Zenner

Join Date:
Jul 2008
Posts:
35
Plugin Contributions:
0

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?

12 Sep 2008, 5:04 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

           '        <td class="dataTableContent" valign="top" align="right">' . 'ID# ' . $order->products[$i]['id'] . $order->products[$i]['qty'] . ' x</td>' . "\n" .