Jump to content

actionAdminCategoriesListingFieldsModifier problem. Please help me


Recommended Posts

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

Edited by cengiz doyran (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...