Zen Cart Logo
Forums / Managing Customers and Orders / Product ID number not showing on invoice

Product ID number not showing on invoice

Views: 8,068

Results 1 to 15 of 15
1 Jul 2007, 7:30 AM
#1
robvdpool avatar

robvdpool

New Zenner

Join Date:
Jul 2007
Location:
Netherlands
Posts:
1
Plugin Contributions:
0

Product ID number not showing on invoice

I sell one of a kind items, Each has a unique id number generated bij Zencart. When an item is sold, i receive an order with unique order id. This order id is showing and it mentions the text of the sold item but NOT the product ID which I need to get the right item. How can this be shown in my order/invoice etc.:blink:

11 Jul 2007, 3:22 PM
#2
valnoren avatar

valnoren

New Zenner

Join Date:
Mar 2006
Posts:
63
Plugin Contributions:
0

Re: Product ID number not showing on invoice

Im am trying to find the same thing. Did you ever find an answer or does anyone want to shed some light

11 Jul 2007, 3:24 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Product ID number not showing on invoice

You would need to change how the order email is built in the orders class to include the extra information that you need ...

Or, you can change the information displayed on the order in the Admin ...

11 Jul 2007, 4:21 PM
#4
valnoren avatar

valnoren

New Zenner

Join Date:
Mar 2006
Posts:
63
Plugin Contributions:
0

Re: Product ID number not showing on invoice

Where in the admin?

11 Jul 2007, 4:47 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Product ID number not showing on invoice

You would need to customize the file:
/admin/orders.php

And change the select statements and displays so you can see the products_id from the orders_products table ...

11 Jul 2007, 4:49 PM
#6
valnoren avatar

valnoren

New Zenner

Join Date:
Mar 2006
Posts:
63
Plugin Contributions:
0

Re: Product ID number not showing on invoice

Ahh thanks for that I will look I was thinking in the online admin.

31 Oct 2010, 5:28 AM
#7
ordinaryperson avatar

ordinaryperson

New Zenner

Join Date:
Oct 2010
Posts:
4
Plugin Contributions:
0

Re: Product ID number not showing on invoice

Hi, i know this page is 3 years old but this question still goes unanswerered. I also need to know how to get the product ID to show on the order page. Or even better would be a link to the product from the order page, otherwise how are people supposed to know which item to ship?? i have thousands of items.

31 Oct 2010, 8:20 AM
#8
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Product ID number not showing on invoice

ordinaryperson:

otherwise how are people supposed to know which item to ship?? i have thousands of items.

Ahhh... I use the model number!!

2 Nov 2010, 8:54 PM
#9
ordinaryperson avatar

ordinaryperson

New Zenner

Join Date:
Oct 2010
Posts:
4
Plugin Contributions:
0

Re: Product ID number not showing on invoice

My items dont have model numbers. Some of my items have the same title as other items, what if 2 people buy one of each item with same title, how would i know which item to send to which person?
The item title is the only info i am seeing in the order page to identify the item sold.
I would really like to find a way for a link to the item sold to be right on the order page.
On the front end of the shopping cart in the search results all the item titles are links to specific products pages with thier own product ID, i want to know how to make the item titles on the order page be links. i would be willing to pay someone to help with this.

28 Apr 2011, 10:14 PM
#10
ordinaryperson avatar

ordinaryperson

New Zenner

Join Date:
Oct 2010
Posts:
4
Plugin Contributions:
0

Re: Product ID number not showing on invoice

Ajeh:

You would need to customize the file:
/admin/orders.php

And change the select statements and displays so you can see the products_id from the orders_products table ...
Please, what are select statements? I have looked at this file and i have no idea what to change. Its been another half year since i have been trying to figure out how to do this. Does anyone know of a company or person who provides support for zencart ? I would be willing to pay for help.

29 Apr 2011, 1:16 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Product ID number not showing on invoice

Look for the code around line 394 in the:
/admin/orders.php

where the products_name is displayed and try changing to:

           '            <td class="dataTableContent" valign="top">' . 'ID#' . $order->products[$i]['id'] . ' - ' . $order->products[$i]['name'];

That should display the products_id when you edit the Order ...

13 Oct 2011, 3:46 AM
#12
justanotheru avatar

justanotheru

New Zenner

Join Date:
Oct 2011
Posts:
1
Plugin Contributions:
0

Re: Product ID number not showing on invoice

THANKS SO MUCH FOR EXPLAINING THIS. I ADDED THIS AND NOW WHEN I CLICK ON AN ORDER IN "ADMIN HOME" AND CLICK ON THE ACTUAL ORDER, I CAN SEE THE products_id=xxxx NEXT TO THE TITLE. EXAMPLE:

1 x ID#XXXX - part title here 0% $amount $amount $amount $amount

ALSO, IF YOU WANT THIS TO SHOW UP WHEN YOU CLICK ON INVOICE (from admin and not paypal), THEN ADD THAT CODE IN POST #11 THAT "Oba-san" MENTIONED TO /admin/invoice.php

REMEMBER TO MAKE BACKUP BEFORE EDITING FILE. NEVER KNOW.

note: If you want the products_id= to show up BEFORE the quantities box, then add that the code from "Oba-san" on the line above what he mentioned. Here is my code for that part of the admin/orders.php file I edited that I used to have the order number before the quantities. So, my order reads

Products ID="what ever your product id is" - "quantity ordered" x "whatever product name you put when listed" - "tax rate" "price incl." "price exc" "total ex" "total inc"

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

I DO NOT KNOW WHAT CUSTOMER SEES, BUT I WILL CHECK TOMORROW AND UPDATE. I AM JUST HAPPY THAT I NOW CAN SEE EASILY EXACTLY WHAT product_id= CUSTOMER ORDERED.

THANKS

11 Apr 2012, 3:49 PM
#13
gorddevries avatar

gorddevries

New Zenner

Join Date:
Dec 2011
Posts:
16
Plugin Contributions:
0

Re: Product ID number not showing on invoice

Ajeh:

Look for the code around line 394 in the:
/admin/orders.php

where the products_name is displayed and try changing to:

       '            <td class="dataTableContent" valign="top">' . 'ID#' . $order->products[$i]['id'] . ' - ' . $order->products[$i]['name'];
> 
> That should display the products_id when you edit the Order ...

I have a slightly different requirement. In my shop, The Model Number assigned to the Attribute (my_stock_id) is what I need to see on the Order Screen, Packing List and Invoice, and I could care less about the Product ID#.

Most of my products have attributes, but some don't - so I need to be able to handle both, by listing either **my_stock_id **from the (products_with_attributes_stock) table, or the **products_model** from the (products) table.

I've looked at the three files impacted by such change, but I'm not prepared to blindly delve in, since I know nothing about PHP.

Can you help?
11 Apr 2012, 3:54 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Product ID number not showing on invoice

I do not use your add on so I do not know anything about the table and its relationship to the Products or Attributes to tell you what to do here ...

Usually, you need to do a select for the information in the table to be able to get the data that you need ...

11 Apr 2012, 4:42 PM
#15
gorddevries avatar

gorddevries

New Zenner

Join Date:
Dec 2011
Posts:
16
Plugin Contributions:
0

Re: Product ID number not showing on invoice

Thanks , I'll try another forum.