News:

AbanteCart v1.4.2 is released.

Main Menu
support

product list add new collumn

Started by shahiran12395, August 12, 2019, 10:50:05 PM

Previous topic - Next topic

shahiran12395

hi. i want to know how can i create new column to admin product list view in "rt=catalog/product"?

dvagner

You can hook ControllerCommonListingGrid via extension and change: $this->data[''colNames'']  $this->data[''colModel'']

shahiran12395

sorry. do you have example on how to do it. this is from my product.php

$grid_settings['colModel'] = array(
array(
'name' => 'image',
'index' => 'image',
'align' => 'center',
'width' => 65,
'sortable' => false,
'search' => false,
),
array(
'name' => 'name',
'index' => 'name',
'align' => 'center',
'width' => 200,
),
array(
'name' => 'new_column',
'index' => 'new_column',
'align' => 'center',
'width' => 120,
),

Forum Rules Code of conduct
AbanteCart.com 2010 -