ZiedDams Posted June 3, 2022 Share Posted June 3, 2022 Hello Guys , I want to build a module that add a new custom Bulk action to the products grid im using this hook $this->registerHook('actionProductGridDefinitionModifier') and in the function public function hookActionProductGridDefinitionModifier(array $params): void { $params['definition']->getBulkActions()->add( (new SubmitBulkAction('my_custom_bulk_name')) ->setName($this->l('My Button Name')) ->setOptions([ 'submit_route' => 'my_symfony_route_submition' ]) ); } But the problem is that nothing happen when i visit the products list page in the back-office. It look like im using a wrong hook name or something else. Any Help ? Link to comment Share on other sites More sharing options...
Kogkalidis Posted August 9, 2022 Share Posted August 9, 2022 Have you checked that the hook exists in your db? Sometimes there is hook call but not all of them have been created already 🤣 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