cengiz doyran Posted April 13, 2020 Share Posted April 13, 2020 (edited) 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 April 13, 2020 by cengiz doyran (see edit history) Link to comment Share on other sites More sharing options...
fbenoist.com Posted April 14, 2020 Share Posted April 14, 2020 Hello, I don't know exactly where the problem is in your code, but you can find an example of how to use this type of hook in this module https://github.com/frederic-benoist/fbsample-addcolumninprodlist Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now