Zen Cart Logo
Forums / Managing Customers and Orders / ID instead of Model on Invoice?

ID instead of Model on Invoice?

Locked

Views: 1,388

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
27 May 2008, 1:00 AM
#1
lindysgoodies avatar

lindysgoodies

New Zenner

Join Date:
Oct 2007
Location:
Victoria, Australia
Posts:
19
Plugin Contributions:
0

ID instead of Model on Invoice?

Hi there zenners,

Does anyone know if it is possible to replace the 'Model' Field with the ID number that ZenCart gives as a unique ID to the corresponding item?

Thanks people!

27 May 2008, 4:16 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: ID instead of Model on Invoice?

You would need to use the:
$order->products[$i]['id']

for the products_id on what is in the order ...

28 May 2008, 12:49 AM
#3
lindysgoodies avatar

lindysgoodies

New Zenner

Join Date:
Oct 2007
Location:
Victoria, Australia
Posts:
19
Plugin Contributions:
0

Re: ID instead of Model on Invoice?

on what file? and where abouts? sorry - im not the greatest with this stuff. Im getting better. but still far from perfection.

28 May 2008, 1:23 AM
#4
lindysgoodies avatar

lindysgoodies

New Zenner

Join Date:
Oct 2007
Location:
Victoria, Australia
Posts:
19
Plugin Contributions:
0

Re: ID instead of Model on Invoice?

Nevermind - i worked it out - just need to make it look a little neater ;)

28 May 2008, 2:30 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: ID instead of Model on Invoice?

What was the solution that you discovered that worked best for you? :smile:

12 Sep 2008, 2:47 PM
#6
hindley08 avatar

hindley08

New Zenner

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

Re: ID instead of Model on Invoice?

I'm trying to figure this out as well. Please post a solution after you've found them...

Where do I find this
$order->products[$i]['id']

Thank you

12 Sep 2008, 3:17 PM
#7
hindley08 avatar

hindley08

New Zenner

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

Re: ID instead of Model on Invoice?

I found the solution:

go to /public_html/admin/invoice.php

replace $order->products[$i][model'] with : $order->products[$i]['id']

do the same with /admin/packingslip.php

the Model field will then be replaced with the Product ID field.