For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
Hello, I would like to know if and how it is possible to add custom filters to the orders page with the admin extensions. The admin extensions are poorly documented and I couldn't find any information on how to add/modify elements in the admin dashboard. Thanks in advance!
Hi JorensM,
It should be possible to expand the native filters on the orders page with Shopify admin extensions. You could use the `ResourcePicker` component from the shopify/admin-ui-extensions-react package to create custom filters and set up specific conditions, and then make a request to the Shopify API to retrieve the orders that match the criteria you've defined.
Hope this helps 🙂
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi,
I've been working on a similar action to allow a client to filter their orders on multiple tags at once. I am at the point where they can add the tags to filter in a modal, and the data is being fetched correctly once they click 'filter' in the modal. But now I can't seem to figure out how to bring this fetched data (which I just logged in console now) into the main orders tab? How can I show the filtered result in the orders page?
Any help would be really appreciated!