Hi,
Does anyone know how to hide sold out or out of stock items?
Store: https://ee15bf-83.myshopify.com/
Thanks!
Hi,
Does anyone know how to hide sold out or out of stock items?
Store: https://ee15bf-83.myshopify.com/
Thanks!
Hi,
collection.liquid, collection-template.liquid, or a file within the sections folder like collection-template.liquid. Need to add condition
Code example
{% for product in collection.products %}
{% if product.available %}
{% endif %}
{% endfor %}
Or At Collections you can use Inventory stock is greater than 0
You can’t do it properly with liquid code modification because liquid code only sees the current page of collection. If you exclude products with code, you may end up with empty pages.
Better option would be to modify your automatic collections to include “inventory stock” " is greater than" 0 condition.
This way your collections will exclude sold out products automatically and include them back when stock is replenished.
I am in the same boat. Can you walk me through what to do step by step? Thanks.