Forums / General Questions / Modifying the invoice

Modifying the invoice

Results 1 to 6 of 6
28 Jun 2012, 01:34
#1
zadris avatar

zadris

New Zenner

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

Modifying the invoice

Thank you for a great plugin.

How can I add the id number in the invoice or showing up in the details?

Thank you again...
28 Jun 2012, 05:49
#2
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Modifying the invoice

Zadris:

Thank you for a great plugin.

How can I add the id number in the invoice or showing up in the details?

Thank you again...
Not sure what you are asking.. What ID number?? Are you referring to the ORDER ID??? The order ID already shows on the invoice and the order..
30 Jun 2012, 04:52
#3
zadris avatar

zadris

New Zenner

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

Re: Modifying the invoice

DivaVocals:

Not sure what you are asking.. What ID number?? Are you referring to the ORDER ID??? The order ID already shows on the invoice and the order..



The ID number of the item...not the Order ID...for example when you list an item it is automatically given an ID number ..1001..(just an example) that number never appears anywhere..not on details...the invoice or anything like that....unless of course I have missed it. Thanks.
30 Jun 2012, 18:18
#4
zadris avatar

zadris

New Zenner

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

Re: Modifying the invoice

DivaVocals:

This actually isn't really a "Super Orders" question.. What you are asking is more of a general Zen Cart "how do I do this" kind of question.. Since the the "super" code that makes Super Orders "super" is now integrated into the default orders.php, invoice.php, and packingslip.php files, the answer to your question is the same regardless of whether or not you use Super Orders.. There are posts which discuss how to add the product model number to the order/invoice/packingslip. Those same instructions should also work for product ID.. Suggest doing a search on the forum for these posts..


Thank you. I get it....it's just not in Zen-Cart at all. And oh btw I tried searching product ID and this forum does not like the word "ID" because it never shows up in a search...maybe because of the spelling of it. Thanks again for replying.
30 Jun 2012, 18:31
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

Re: Modifying the invoice

Zadrs, you'll just want to modify admin/invoice.php to show the product id. For example, this code puts it right after the model number.

Change admin/invoice.php line 179 from

           '        <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] .  '</td>' . "\n";


to

           '        <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . " (" . $order->products[$i]['id']. ") ".  '</td>' . "\n";
01 Jul 2012, 01:43
#6
zadris avatar

zadris

New Zenner

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

Re: Modifying the invoice

Thank you swguy so much! I modified both the regular invoice and the super invoice. Have a great weekend....:)