Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'm working off this guide here: https://polaris.shopify.com/components/selection-and-input/index-filters?example=index-filters-with-...
But since the logic in the example is incomplete, I'm not sure exactly how it's supposed to work. If I click on unpaid, for example, it should show all the unpaid orders, right? But does it do this by filtering the existing list or should I make a new graphql api call? Should I be making new calls every time someone clicks a different tab? If I use the built in search bar, which says "searching in all", does this mean all filters or all products? Also why does it say save, and what are you saving? And where am I supposed to save it to? Also if a user makes a new filter and names it "snowboard", for example, where does the logic for this new filter come from? None of this makes any sense. Is there a working example somewhere?
I puzzled with the example also, and checked all the documents I could find. I can't find any useful information.
I don't know why Shopify is so bad with docs, they create code examples that do not work, or work partially, doesn't make any sense.
The IndexFilter example is the worst. Nothing works in that example with respect to manipulating the data shown (search, filter, sort). Managed to get Search to work but now having trouble with Filters.
Can someone from Shopify dev team please explain how to get the filters working please? Or at least update the examples with actions that work as intended.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025