I wish to take my Christmas items off from sale until next year but keep them as Drafts so they are ready to go.
Many products are in more than 1 Collection and these items I DO NOT want to remove from sale. eg if a product is in my Homewares Collection and Christmas Collection I want it to remain available, but if it is only in the Christmas one I want it unavailable.
How can I do this?
I have many thousands of items so one by one isn’t going to be practical
This is what I have in that file now, doesnt seem to work, what would be wrong?
{% comment %}
The contents of the collection.liquid template can be found in /sections/collection-template.liquid
{% endcomment %}
{% section 'collection-template' %}
{% for product in collection.products %}
{% for collectionHandle in product.collections %}
{% unless product.collections.size == 1 and collectionHandle == "CHRISTMAS" %}
//your product item.....
{% endunless %}
{% endfor %}
{% endfor %}
Thanks, some other teams members have added Collections that are messing this up so I just need to clean up those and hopefully it will be all good, will post back once implemented
Now, this is a very great question! Hiding products is a very nice feature to offer your customer, instead of just showing the simple products which they can buy on the product page. I think there is no way to hide products, but you can use the template builder to order the products. Simply build a simple template with the products you want to display and then edit the template to order them how you want them to be displayed. I hope this is helpful, if you need any further assistance please let us know.