| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Trouble adding column to admin product list | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Trouble adding column to admin product list
I added a new column on xc_inventory and want to show it on the main admin product list right next to the "In Stock" column. The column appears but there is no data in it. But when I use inline editing I can view and modify the value. So it seems to only be an issue when displaying the search results.
Here is the relevant code. First I added the column to the inventory table: PHP Code:
Then I extended the model for Product to cover this field (similar to the inventory qty field): PHP Code:
And then I added the column to the product search/list results: PHP Code:
I think that should be it, but for completeness here is what I added to get the field to show up on the Inventory tab (which works just fine): PHP Code:
__________________
X-Cart Business 5.3.6.8 |
|||||||
|
|||
X-Cart forums © 2001-2020
|