Author Topic: product list add new collumn  (Read 3260 times)

Offline shahiran12395

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-0
    • View Profile
product list add new collumn
« 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"?

Offline dvagner

  • Core/UI Developer
  • Jr. Member
  • **
  • Posts: 73
  • Karma: +28/-1
    • View Profile
Re: product list add new collumn
« Reply #1 on: August 13, 2019, 01:48:22 AM »
You can hook ControllerCommonListingGrid via extension and change: $this->data[''colNames'']  $this->data[''colModel'']

Offline shahiran12395

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-0
    • View Profile
Re: product list add new collumn
« Reply #2 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,
),

 

Powered by SMFPacks Social Login Mod