Hello! I was wondering if there’s a way to have multiple “any conditions” but only show whats in stock. I am not sure how to do this, but if there’s a way it would be amazing. Thank you so much for your help!\
Hey @nhellyer
Yes, it’s possible to set up multiple “any conditions” to display only products that are in stock. Here’s an example of how you can achieve this using Liquid, which is Shopify’s templating language:
{% for product in collection.products %}
{% if product.available %}
## {{ product.title }}
Price: {{ product.price }}
{% comment %}
Add any other conditions or display logic for the products you want to show.
{% endcomment %}
{% endif %}
{% endfor %}
In the above example, we iterate over the products in a collection and check if each product is available using the product.available property. If the product is available (i.e., in stock), we can then display its information or apply any additional conditions or logic specific to the products you want to show.
By using this approach, you ensure that only products marked as available (in stock) are displayed on your Shopify store. Feel free to modify the display logic and add any other conditions you require to suit your specific needs.
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed