Page 1 of 1

Adding Extra Fields to Admin/Products list page

Posted: Sat Nov 22, 2008 10:04 pm
by jty
Currently, the admin/products list page only shows info on name, model, status and sort order
This will add extra information columns to that page viz. price, quantity, weight and the pic.

Two files are affected:
admin/controller/product.php
admin/language/english/controller/product.php

See my post below (lower down) for zip file.
To install, if you have not modified those files, you can replace them.
These files are from 0.7.9RC4. It "should" work on 0.7.8 and 0.7.9RC1, 2, 3 but make backups of your current files first incase it blows up.

Further reference on how to add fields to admin > product list can be found in Fogma's post at :
http://forum.opencart.com/index.php/topic,1712.0.html

Re: Adding Extra Fields to Admin/Products list page

Posted: Sat Nov 22, 2008 10:10 pm
by Qphoria
Nice work jty! Maybe we can add this to the FAQ if it proves to be correct

Re: Adding Extra Fields to Admin/Products list page

Posted: Sat Nov 22, 2008 10:31 pm
by Qphoria
jty wrote: The image pic showing was the hard part. I didn't know how to join tables in sql  ::)
Then I didn't know how to change a filename from picture.jpg to picture-22x22.pg so I can call the pic in cache so I used width and height to force the pic to be little  ;D
Silly backyard hackers  ;D

Re: Adding Extra Fields to Admin/Products list page

Posted: Tue Nov 25, 2008 5:30 pm
by frame
Hi jty,

I think there is a little bug in the description.
Under the cell [ ] array the Replace with section is the original code.
Would you mind correcting it?
thanks
frame

Re: Adding Extra Fields to Admin/Products list page

Posted: Sun Dec 07, 2008 3:20 pm
by jty
Help arived from Canada so we now have an evolved version of this tweak with a proper way to display the image

Attached is the zip containing the 2 files affected
Remember - BACKUP !

What will it do - it will display extra columns in the admin > product page
* price
* quantity (stock)
* weight
* image

Now we can see a pic of the product in admin > product

Thank-you to our Canadian friend and fogma who helped me get started

PS: This version does not support Pig Latin  :P

Re: Adding Extra Fields to Admin/Products list page

Posted: Wed Dec 17, 2008 10:23 pm
by Qphoria
jty wrote:
PS: This version does not support Pig Latin  :P
pfft waste