Magento2 remove Assign a Customer Group column from action dropdown
-
15-04-2021 - |
Question
Solution
Solution given below works magento opensource 2.3.3 and above (tested)
It will work, set actionDisable
node to true to disable the MassAction from the dropdown list of actions
<actionDisable>true</actionDisable>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<listingToolbar name="listing_top">
<massaction name="listing_massaction" component="Magento_Ui/js/grid/tree-massactions">
<action name="assign_to_group">
<settings>
<actionDisable>true</actionDisable>
</settings>
</action>
</massaction>
</listingToolbar>
</listing>
Update
For versions below 2.3.3. use the one explained in the links below
https://magento.stackexchange.com/a/231723/695
https://webkul.com/blog/hide-mass-actions-based-on-some-conditions-in-magento-2/
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange