How to Filter Order Grid by Multiple Order IDs in Magento 2

Filter Order Grid by Multiple Order IDs in Magento 2

An organized and flexible order grid is the sign of an advanced E-commerce store. There’s no other alternative for managed order data when it comes to the order grid.

By default, Magento 2 order grid contains a number of columns for the ease of order processing. One can add a custom column in Magento 2 Order grid which is not available by default and add mass actions in the order grid in Magento 2 to get the things done quickly.

By default, one can filter data by single order ID.

How to Filter Order Grid by Multiple Order IDs in Magento 2 1

 

In order to manage the order data in an efficient manner, it is required to expand features in the filtering. One of them is to filter the order grid by multiple order IDs in Magento 2. You may require to filter the data by multiple order IDs to keep the track of some of the orders. Filtering them one by one becomes tedious. Thus, I’ve come up with the programmatic solution to filter order grid by multiple order IDs in Magento 2.

Steps to Filter Order Grid by Multiple Order IDs in Magento 2

1. Create di.xml at app\code\Vendor\Module\etc

2. Create FilterApplier.php file at app\code\Vendor\Module\Plugin\UiComponent\DataProvider

Done! Start adding comma separated order IDs in the Magento 2 order grid to filter them together and track as shown below:

How to Filter Order Grid by Multiple Order IDs in Magento 2 2

Quick enough, right?

If you have any doubts, just mention them in the Comments section below 🙂 I would be happy to help.

Feel free to share the solution with Magento 2 community via social media.

Thank You.

Get Weekly Updates

Never miss Magento tips, tricks, tutorials, and news.

Thank you for subscribing.

Something went wrong.

5
(based on 10 Reviews)

Kanchi is a Magento Developer at Meetanshi. Apart from that, she is into dancing. In her free time, she likes to make handmade art and craft.

Leave a reply:

Your email address will not be published.