Why not make an all collection with a curated list of products you want to be seen? If you do that, this will replace the default all collection that shows everything.
Thank you Jason but that is not the solution I am looking for . I already have an all smart collection filtered by price. Smart collections allow to "show products with tags " but donât allow to âexclude products with tagsâ. The other way around of course would be to make a smart collection tagged âallâ and not outlet..;;but..
..What I want is to do is leave âoutletâ products visible in my shop but I donât want them to show up in the "all " collection. Now my template shows all the tags to the customers and that helps them narrow their search. For this reason I canât create irrelevant tags : tagging âallâ wouldnât work because there is already an automatic all tag ( showing all products); " tagging new or else doesnât look good on the screen either and it means having to un-tag when I want to make them outlets (there could be hundreds of them!).
For me the simplest way would be to change the liquid code over smart collections (which is not such a bad idea depending on the problem).
Using Liquid will mean that your collection will have gaps in the product grid. For example if you show 50 items per page it would be possible to see 0 items if all 50 had the tag. Youâll 100% end up seeing a mix of numbers that might be very weird for the customer to see.
The concept would be:
{% for product in collection.products %}
{% if product.tags contains 'outlet' %}{% continue %}{% endif %}
<!-- your product grid item -->
{% endfor %}
Hello here is my feedback after implementing the code Jason posted above , it finally worked!!! . I figured out I had to implement it in the âcollection.liquidâ file in the snippet and not the template folder. However, the products tagged outlet donât appear and no ugly gap in my product listing , as I was afraid there would be.
Hi Joiakim. I see you have already solved this issue by filtering out products via liquid so I guess this response is intended for others who end up here with a similar issue and do not want to mess around with the theme.
One way Jasonâs suggestion can work is if you are able to use product type for this. For example, you can set product type to âOutletâ for all products that are not supposed to display on ../collections/all page. The obvious downside of this approach: you canât have more than one product type per each product so this wonât work if you rely on product types for other purposes.
This is our version of this issue and what we did to solve it:
On one site we have a few add-on products which do not belong to any collections and customers should only view them inside cart. But ..collections/all page was still featuring these products. So we took the following steps:
Give product type âAdd-onâ to all such products
Create a new collection named Products. We use name âProductsâ for collection, not âAllâ. This allows the page to look the same as default the default ../collections/all page in many themes, with âProductsâ as page title and main heading.
Hey,
I know one app that can help you with the problem you are facing. AutoHide Soldout Products (https://apps.shopify.com/autohide-soldout-products) can help you with the customization that you need. They did the same for one of the clients. Download the app & contact their support team. They are really fast at responding!