Hi,
I have this piece of code on product page:
10 / S
It creates a link to the collection with applied filters by metafield size.combined and by availability.
Is there any way to check prior creating this link an amount of products available with this filter applied?
So, if there are no products in given collection that would have a specific metafield value and that are in stock, then this link would not be shown.
Something like this:
{% if XXX product.count > 0 %}
10 S
{% endif %}