AbanteCart Community

eCommerce construction => Templates => Topic started by: shahiran12395 on August 12, 2019, 10:50:05 PM

Title: product list add new collumn
Post by: shahiran12395 on August 12, 2019, 10:50:05 PM
hi. i want to know how can i create new column to admin product list view in "rt=catalog/product"?
Title: Re: product list add new collumn
Post by: dvagner on August 13, 2019, 01:48:22 AM
You can hook ControllerCommonListingGrid via extension and change: $this->data[''colNames'']  $this->data[''colModel'']
Title: Re: product list add new collumn
Post by: shahiran12395 on August 13, 2019, 02:42:30 AM
sorry. do you have example on how to do it. this is from my product.php

Code: [Select]
$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,
),