Skip to content

Instantly share code, notes, and snippets.

@mikestreety
Created March 3, 2015 09:11
Show Gist options
  • Save mikestreety/95721c65bd8cc04c4e36 to your computer and use it in GitHub Desktop.
Save mikestreety/95721c65bd8cc04c4e36 to your computer and use it in GitHub Desktop.
Shopify Filtering

So this is a story, all about how, I want to sort something out in Shopify...

I know with catgories and tags, Shopify has filtering built in. E.g. if I want to look at Shirts tagged with Red, I can do:

http://shopurl.com/collections/shirts/red

That's fine. I also know if I want large shirts that are red, the URL would be

http://shopurl.com/collections/shirts/red+large

This works with an and operator (e.g. Shirts that are red and large).

What I'm wondering is if there is a way I can pass in an or command someway.

E.g. if I want blue or red shirts (not blue and red). Does this exist?

I would expect something like:

http://shopurl.com/collections/shirts/red|blue or similar

@mikestreety
Copy link
Author

@alexsexton Then it still makes them an and rather than an or

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment