Shopify App Admin Extension: add custom filters to orders page

Shopify App Admin Extension: add custom filters to orders page

JorensM
Shopify Partner
6 0 3

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!

Replies 2 (2)

Liam
Community Manager
3108 340 871

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

xandervds
Shopify Partner
15 0 1

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!