How to create general rule so that only items where inventory > x are published?

How to create general rule so that only items where inventory > x are published?

Jennifer_Fulto1
Tourist
5 0 0

Hi,

 

I'm looking for a general rule to apply to all current collections so that only  products where inventory is greater than 3 are published/visible.  

 

I understand a simple collection can be created such as:

1. Inventory is greater than 3 

AND

2. Condition x

but this is too limited. Our collections are based on multiple OR (any) conditions 

1. title = x 

2. vendor = y

3. tag = z

 

So if we add the condition that

3. inventory > 3

 

the results will include products where inventory is less than 3.

 

Any ideas? 

 

Thank you.

Reply 1 (1)

Liam
Shopify Staff
2873 312 820

Hi Jennifer,

 

It's possible that you could turn on/off product visibility with Shopify Flow, by setting up triggers and conditions based on the scenarios you've described. Have you explored using this yet?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog