Hi everyone,
I added a custom sidebar Collection navigation to my Collections pages through snippets (liquid code). It all works well, but I would like to automate hiding a collection which has only products with zero product stock. Hope it makes sense.
I’m using the following code:
{% assign collections = "collection-" | append: collection.handle %}
<ul>
{% for link in linklists.collections.links %}
<li><a href="{{ link.url }}">{{ link.title }}</a></li>
{% endfor %}
</ul>
Any idea how could I implement this, please? Thanks in advance.