Skip to main content
10 votes

How to remove Delete option from massaction dropdown for specific user role in Magento2?

This can be done by creating a new class for MassActions: <?php namespace YourVendor\YourModule\Ui; class MassAction extends \Magento\Ui\Component\MassAction { private $authorization; ...
Sergii Ivashchenko's user avatar
10 votes
Accepted

Magento 2: MassAction Model LSD method delete()

LSD comes from load/save/delete. You should not call these methods inside loops. But in this case, if you want to hide the dirt under the rug you can crete a new method in your class private ...
Marius's user avatar
  • 199k
8 votes

Invalid Method name delete in magento 2

you need to make change in di.xml file. Replace this Line: Company\Module\Model\ResourceModel\Test\Collection Replace With this: Company\Module\Model\ResourceModel\Test\Grid\Collection In virtual ...
Kamal Jain's user avatar
7 votes

Magento 2 massaction delete not working

Follow this process to implement Massaction delete Namespace: Prince Modulename: PincodeChecker 1) Use this code in UI Grid file(prince_pincodechecker_index.xml) before <massaction name="...
Prince Patel's user avatar
  • 22.9k
7 votes
Accepted

Implement massactions in grid using ui_component magento2

Please try this. It's working fine for me. <massaction name="listing_massaction"> <action name="delete"> <argument name="data" xsi:type="array"> &...
Dharmendra Jadav's user avatar
5 votes
Accepted

Solved - Adding Mass Delete Action to the Grid

You can also try this code. Put below code into your grid.php protected function _prepareMassaction() { $this->setMassactionIdField('id'); $this->getMassactionBlock()->...
ARVIND KARKAR's user avatar
5 votes
Accepted

Mass status in admingrid: Ui form

You can define your massaction in your uicomponent grid. Inside listingToolbar> tag you can define <massaction> as many mass action you want. <listingToolbar name="listing_top"> &...
Priyank's user avatar
  • 7,742
5 votes

Add new mass action in order grid in magento 1.9

Flow below steps Step:1 Create file Ar_Custom.xml at location app\etc\modules and add below code <?xml version="1.0"?> <config> <modules> <Ar_Custom> ...
Abdul's user avatar
  • 9,711
5 votes

Adding url parameters to UI component mass action

1) Add class to attribute to action, and replace url item with urlPath: <massaction name="listing_massaction" > <action name="additem" class="Vendor\Module\Ui\Component\Action\AddItem"&...
Alex Melnikov's user avatar
3 votes
Accepted

Magento - Extending Mass Action Grid Filters ("Select All", "Select None") to Sales > Orders Grid

For the select all option you have to overwrite or copy app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php file with same structure in code/local folder In the _prepareMassaction() method there ...
Ashish Jagnani's user avatar
3 votes

Magento 2 massaction delete not working

You can try this code :- public function execute() { $collection = $this->_filter->getCollection($this->_collectionFactory->create()); $recordDeleted = 0; foreach ($...
Limbani Himanshu's user avatar
3 votes

Mass delete action in one step not in loop magento 2

Took me a little while to get syntax right on this but you can do a delete from select Not saying it fits your project but I think it is useful to know https://github.com/DominicWatts/QuoteCleaner/...
Dominic Pixie's user avatar
3 votes

Mass Action not sending all data

I spent a lot of time trying to understand, what is wrong with my code, and why Magento does not send selected parameter with ids in POST request, when mass action is called. Later I found this "...
Svetlana Kazakova's user avatar
3 votes

Mass status in admingrid: Ui form

I have added tree-massactions and display area in grid structure. After that Mass actions works fine. Here I have given grid structure for mass actions. Hope it helps. grid.xml for Massactions <...
Jaisa's user avatar
  • 2,636
3 votes
Accepted

Magento 2 Mass shipment

First Made the ui component in your module app\code\Vendor\Module\view\adminhtml\ui_component\sales_order_grid.xml <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3....
Muhammad Hasham's user avatar
2 votes

Magento 2: Select All option in Export Settings of Magento 2

Add a "select all" button beside "Reset Filter". We need add plugin to class Magento\Backend\Block\Widget\Grid\Extended with getMainButtonsHtml method. As below <config xmlns:xsi="http://www.w3....
Nadim's user avatar
  • 91
2 votes

Magento 2: Select All option in Export Settings of Magento 2

Instead of creating a module, this can be achieved with the below Javascript. Run the below code in the browser CONSOLE to select all checkbox from the export section. jQuery('.checkbox.admin__control-...
Sumit's user avatar
  • 4,968
2 votes

Mass delete action in one step not in loop magento 2

try { $categoriesIds = ['1','2','3']; // use collection factory object of particular model $catgoryObj = $this->_objectManager->get('MageArray\Gallery\Model\ResourceModel\Category\...
Prashant Patel's user avatar
2 votes
Accepted

Need pass dynamic url param value in massAction url of ui-component grid

In my dataProvider class Package\Module\Ui\Component\RsvpDataProvider in below segment: <argument name="class" xsi:type="string">Package\Module\Ui\Component\RsvpDataProvider</argument> ...
Ashish Raj's user avatar
  • 1,355
2 votes
Accepted

Difference in approach for Mass Order Hold and Unhold

My money is on "The mass unhold was not refactored yet". THe order management interface has the methods hold and unHold that work the same way. They retrieve the order object, call the hold / unhold ...
Marius's user avatar
  • 199k
2 votes
Accepted

Magento2 Add line separator in mass action list in sales order grid

I got one of the resolution of my question. In order to add line separator between mass action just like Amasty extension. person should add this action in listing_massaction tag in ui component file. ...
Muhammad Hasham's user avatar
2 votes

Magento 2.3.0 : Admin panel mass status action change after not updated in custom module grid record

This issue is resolved in controller got to CustomModule/Videogallery/Controller/Adminhtml/videogallery/massstatus.php inside execute function $post->setIsActive($status)->save(); change to $...
Rv Singh's user avatar
  • 1,637
2 votes
Accepted

Admin Grid "Select All" for mass action only sends the visible IDs

This is an upstream bug: https://github.com/magento/magento2/issues/23110 Solution: https://github.com/magento/magento2/pull/22704/commits/595a7a8f56571a5bd2753096bef9db27d46020ff app/code/Magento/...
schnere's user avatar
  • 482
2 votes
Accepted

`Selected` field is missing from the post request for the product grid mass action

I had a look how the mass delete is done in the core and i saw that i missed some parts. use Magento\Catalog\Model\ResourceModel\Product\CollectionFactory; use Magento\Ui\Component\MassAction\Filter; ....
Attila Naghi's user avatar
  • 4,093
1 vote

Shipment grid custom mass action problem with UiComponentFactory::argumentsResolver()

I had this issue when I was referencing a ui component in an incorrectly named folder. I had it as view/adminhtml/uiComponent when it should be view/adminhtml/ui_component.
ol'bob dole's user avatar
1 vote

Why the bulk update attributes is showing a blank red error message?

I just encountered this issue, which turned out to be caused by the Ebizmarts_MailChimp extension. It has been fixed in a recent commit, but has yet to be added to a release. https://github.com/...
Dylan's user avatar
  • 33
1 vote

Why the bulk update attributes is showing a blank red error message?

I guess that the issue have relation with the third-party extension that added this customized button "Grid Customization". Try to disable this extension removing the XML file related to this one of ...
Rafael Corrêa Gomes's user avatar
1 vote
Accepted

Resolved - Mass Action - Mass Database Update in Magento Grid

Everything is correct but at the time of saving data you set all request params in setId method. Please find below line and correct it. $model->setId($id)->save(); Replace with below code $...
ARVIND KARKAR's user avatar
1 vote

Solved - Adding Mass Delete Action to the Grid

You just need to add a function in your grid file in which you have written code for adding grid columns. I am providing you an example for mass action of catalog grid on admin panel. Please check ...
Gulshan's user avatar
  • 569
1 vote

Mass Action not sending all data

You can try the below code for new way to get the filter or selected collection from the list you selected from your grid. <?php namespace Namesapce\Modulename\Controller\Adminhtml\Module; use ...
Priyank's user avatar
  • 7,742

Only top scored, non community-wiki answers of a minimum length are eligible