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
This is an accepted solution.
try this, it should work.
tag:'1st purchase' OR tag:'Reactivation purchase'
Hey, It is possible. please refer to this
I have a try using the way to query, it works.
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.
This is an accepted solution.
try this, it should work.
tag:'1st purchase' OR tag:'Reactivation purchase'
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. 😊
I think the search can be saved. There is a 'Save as' button behind the search box
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.
Hi @cpost
It is case sensitive and also remove all unnecessary spaces. Hope this helps.
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"
So I am trying to do a filter for show Shopify protect: Protection Active and also show orders tagged with Shop Pay Installments. Can I do this when I add the tag Shop Pay Installments it will not show both the Shop Pay Installments and the Protection Active.
I don't see why not. Those are two entirely separate things.
1. Go ahead and select Shop Protect: Protection Active on the dropdown
2. Enter your tag
Your scenario doesn't sound like it'd be complex. It'll filter to show all those with the protection active AND that have the tag (Combined both of them; not either or)
So I did try but it will only show if they are both on the order. I can't seem to get it to show if at least one applys.
Hi, Thank you for your help. It works on my end, but when I click “Save,” what I wrote in the query disappears. It only keeps the criteria from the different filters, but not what I typed in the "search bar". This isn’t correct and isn’t practical to have to manually type the different tags into the search bar each time.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024