Table of Contents

How to add custom bulk action on the product listing page at the admin panel in Magento 2?

The beauty of Magento 2 is the flow of processing. With a few easy steps, we will see how we can add new action on the product grid page in the admin panel. Bulk actions are used to perform the operation on multiple products at the same time instead of an individual product. By default, Magento 2 provides bulk operations such as delete, change status, and update attributes. Let’s see how we can add our custom action in the top left dropdown.

We need to create a new module. We will say it WebbyTroops_BulkCustomOptions. Create a new file on Magento 2 project directory at app/code/WebbyTroops/BulkCustomOptions/registration.php.

After the registration file, we need to create a module file in app/code/WebbyTroops/BulkCustomOptions/etc/module.xml.



    
        
            
        
    

The above steps are for registering our module with the Magento system. Now let's create our custom action on the product listing page. For that, we need to create a file at app/code/WebbyTroops/BulkCustomOptions/view/adminhtml/ui_component/product_listing.xml.


    
        
            
                
                    
				Share this article
								f
				t
				in