Hi community,
I would like to hide the products that are out of stock.
I want a script to use in a liquid file. I don’t want to use any paid app
Hi community,
I would like to hide the products that are out of stock.
I want a script to use in a liquid file. I don’t want to use any paid app
Hey @pedromonteirouk
Here are some options: https://help.shopify.com/en/manual/products/inventory/getting-started-with-inventory/hide-out-of-stock
Otherwise to specifically use liquid, try something like this on collection pages:
{% for product in collections.all.products %}
{% if product.available %}
{% endif %}
{% endfor %}
Can you tell me in what collection page should I add this code?