All things Shopify and commerce
When viewing a list of orders on Shopify Admin, there are filter views that you can create based on a certain filters. How can I write the tag value so that I can include orders that are tagged with "1st purchase" and ''Reactivation purchase"?
Solved! Go to the solution
I can't get the same results. I've tried using OR, with quotes, brackets etc but no dice.
You have input the keyword in a wrong place. Please try to input the keyword (1st purchase and Reactivation purchase ) in the search box.
the place I marked it out like below.
Unfortunately, this doesn't work either.
Awesome, it works now.
Thanks for reply!
Hi @Sonya_2025 Do you think it is possible to use this method also for orders THAT DO NOT HAVE CERTAIN TAGS?
Your method works by sorting orders with certain tags, but we tried to sort orders that do not contain certain tags without_tag:'1st purchase' or notag:'1st purchase' But it does not work. Do you have any idea about this please? 🙏
Hi @SebFrenchy , the way to do this is to have AND and '-' sign.
It would look something like this.
tag:'Tag you wan' AND -tag:'Tag you don't want'
Hey @SebFrenchy
Yes, it is possible to achieve your needs.
you can try below query string to filter not include tag1 and also not include tag2.
-tag:'1st purchase' AND -tag:'1st purchase'
Hope this helps
It works perfectly! Thank you very much for the help. 😊
Hi,
When I click save, any search criteria provided in the search bar removed. and the search saved only with conditions provided by filters list.
This does not work for me. All 'accepted' solutions in this thread are not functioning.
Wanted to comment on this thread as the accepted solution and all other comments are just plain incorrect.
The original post asks how to save a filter (not just query) that includes multiple tags in combination (ie: ALL, not ANY; AND not OR)
Shopify seems to, at least currently (October 2024) not handle this very cleanly; but it is possible.
Write in your query: `tag:"firsttag","second tag", "third (tag)", "fourth:tag (and) (or)", "fifth-tag"`
Click save.
Of note - you'll see that these example tags are particularly complex with the parentheses, dashes, spaces, and colons. I recommend wrapping all your tags in quotes just to make sure it's processed correctly as otherwise the search query may not handle it well.
At this point; I would recommend to go ahead and find an order with all the tags you want to include as an example (Or add to them to make sure). And then I would recommend completely closing the tab and re-opening the orders page to make sure nothing is persisting and you can ensure it's working.
Go ahead and open the filter, and it should be working.
Now, the reason I say this is handled strangely by Shopify is because it does not enter all these into the "Tag" filter - it appears to instead save the search query, so if you go to edit it - it will look like:
But - It works, so no complaints. Hope this helps everyone.
Also, of note; for anyone looking to exclude a tag - the correct process is to either preface it with `NOT` or `-` (eg: `NOT tag:"example"`, or `-tag:"example"`)
Further building on this, if you're looking to exclude multiple tags, it will look similar to my above screenshot just with a - in front of each tag. Note though, that when doing this, in either case, "tag:" is not prefacing the tag.
eg: ,"second tag, "third (tag)", "fourth:tag (and) (or)", "fifth-tag"
To exclude, eg: , -"some-tag", -"some-other-tag"
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024