I want to remove status
column from Magento admin panel order grid.
I use below code to remove the status
column in my sales_order_grid.xml
file. Reference
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<columns name="sales_order_columns">
<column name="status">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="componentDisabled" xsi:type="boolean">true</item>
</item>
</argument>
</column>
</columns>
</listing>
It removes status
column successfully but I want to remove it based on a condition, value of a configuration field from Stores > Configuration
section.
Is there any way I can add a condition on componentDisabled
, or any other way to achieve my requirements?
Best Answer
It Might be helpful to you.
Websites.php
It's defualt Magento which is used for to display website based on condition.