Jump to content

Build custom Bulk Action for product grid


ZiedDams

Recommended Posts

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

  • 2 months later...

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...