Jump to content

Edit History

cengiz doyran

cengiz doyran

Hello,

i want to add new columb to category listing. I am using actionAdminCategoriesListingFieldsModifier hook.  But it is not working. When i tried to actionAdminAddressesListingFieldsModifier the columb added to Address list. 

 

I am using 1.7.6.4

Register hook install function

$this->registerHook('actionAdminCategoriesListingFieldsModifier')

Hook

public function hookActionAdminCategoriesListingFieldsModifier($params) {

if (isset($params['select'])) {

$params['select'] .= ', IF( c.id_n11_category> 0, \'1\', \'0\') as n11';

$params['fields']['n11'] = array( 'title' => 'N11', 'align' => 'center', 'search' => false, 'havingFilter' => false );

}

}

Please help me. What is my wrong

cengiz doyran

cengiz doyran

Hello,

i want to add new columb to category listing. I am using actionAdminCategoriesListingFieldsModifier hook.  But it is not working. When i tried to actionAdminAddressesListingFieldsModifier the columb added to Address list. 

Register hook install function

$this->registerHook('actionAdminCategoriesListingFieldsModifier')

Hook

public function hookActionAdminCategoriesListingFieldsModifier($params) {

if (isset($params['select'])) {

$params['select'] .= ', IF( c.id_n11_category> 0, \'1\', \'0\') as n11';

$params['fields']['n11'] = array( 'title' => 'N11', 'align' => 'center', 'search' => false, 'havingFilter' => false );

}

}

Please help me. What is my wrong

cengiz doyran

cengiz doyran

Hello,

i want to add new columb to category listing. I am using actionAdminCategoriesListingFieldsModifier hook.  But it is not working. When i tried to actionAdminAddressesListingFieldsModifier the columb added to Address list. 

Register hook install function

$this->registerHook('actionAdminCategoriesListingFieldsModifier')

Hook

public function hookActionAdminCategoriesListingFieldsModifier($params) {

if (isset($params['select'])) {

$params['select'] .= ', IF( c.id_n11_category> 0, \'1\', \'0\') as n11';

$params['fields']['n11'] = array( 'title' => 'N11', 'align' => 'center', 'search' => false, 'havingFilter' => false );

}

}

Please help me. What is my wrong

×
×
  • Create New...