Post by jty » Sat Nov 22, 2008 10:04 pm

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
Last edited by jty on Sun Dec 07, 2008 3:20 pm, edited 1 time in total.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Sat Nov 22, 2008 10:10 pm

Nice work jty! Maybe we can add this to the FAQ if it proves to be correct

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Sat Nov 22, 2008 10:31 pm

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

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by frame » Tue Nov 25, 2008 5:30 pm

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
Last edited by frame on Sun Dec 07, 2008 8:25 pm, edited 1 time in total.

New member

Posts

Joined
Sat Apr 26, 2008 7:24 pm

Post by jty » Sun Dec 07, 2008 3:20 pm

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
Last edited by jty on Sun Dec 07, 2008 3:23 pm, edited 1 time in total.

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Wed Dec 17, 2008 10:23 pm

jty wrote:
PS: This version does not support Pig Latin  :P
pfft waste

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 5 guests