Conditions for automated collections
You can add one or more conditions for an automated collection to match products based on many details, including product title or type, tags, price, or even inventory stock.
As of January 30, 2019, collections can have at most 60 conditions.
If you already have a collection that has more than 60 conditions, then you can still use it. You can edit or delete its existing conditions, but you can't add any conditions while it's over the limit.
Set conditions based on product title, variant title, type, or vendor
You can add a condition to include a product in a collection based on the product's title, variant title, type, or vendor. You can select from the options in the second drop-down list to control how a product needs to match the condition value that you enter in the third field. The text that you enter in the third field is compared to your products according to the condition's settings, and matching products are included in the collection. The condition is not case-sensitive.
You can select from the following options to control how a product needs to match the condition value that you enter:
|is equal to||A product needs to match exactly the whole value you enter.|
|is not equal to||A product can't match the value you enter.|
|starts with||The beginning of the product title, type, or vendor matches the value you enter.|
|ends with||The end of the product title, type, or vendor matches the value you enter.|
|contains||The product title, type, variant title, or vendor contains the value you enter. You need to specify a value that is at least 3 characters long, and the value can't start or end with spaces.|
|does not contain||The product title, type, variant title, or vendor doesn't contain the value you enter. You need to specify a value that is at least 3 characters long, and the value can't start or end with spaces.|
Conditions for variants
If you set up a condition for a product that has variants, then that condition is
true if any variant matches the condition. This applies whether all conditions or any condition is selected.
For example, suppose you have a product that has five variants. Four of the variants have inventory, but one is out of stock. If you have a collection that has a condition of
Inventory stock is greater than 0, then the product is included in the collection because at least one of the variants matches the condition.
Set conditions based on product tags
You can set a condition to include products with a particular product tag. When a condition uses product tags, you need to enter the exact tag as a condition value.
For example, to set up a condition that selects products tagged with
- Select Product tag from the first drop-down list.
- Select is equal to from the second drop-down list.
Although you can create tags that use some special characters, they might not work as you expect in searches or as conditions in automated collections. Special characters in tags are either ignored or are treated as being the same.
Example: Suppose you have a condition for an automated collection of Product tag is equal to red-new. All products that have the following tags are also included in the collection:
For more information about tags, see Tag formats.
Set conditions based on price, weight, or inventory stock
You can add a condition to include a product in a collection based on its price, compare at price, weight, or inventory. You can set the condition to include products that match its value exactly, or products that are greater or less than its value:
|is equal to||A product needs to match the exact value.|
|is not equal to||A product can't match the value.|
|is greater than||The product is greater than the value.|
|is less than||The product is less than the value.|
For example, to set up a condition that includes products that are priced $100 or less:
- Select Product price from the first drop-down list.
- Select is less than from the second drop-down list.
Using multiple selection conditions
You can set more than one selection condition to control which products are included in a collection. You can choose whether products must match all the conditions to be included in the collection, or any of the conditions.
For example, suppose that you set the two following conditions for a collection:
- Product tag is equal to
- Price is less than
If you select all conditions, then products are included only if they are tagged with
shirt and are also priced at $100 or less. Products need to match both conditions to be included in the collection.
If you select any condition, then products are included if they are tagged with
shirt or if they are priced at $100 or less. Products need to match only one condition to be included in the collection.
Set multiple conditions to define a range
To include the products with a price, weight, or inventory value within a range, you need to set more than one condition. The low end of the range is defined in one condition, and the high end of the range in another. You need to select all conditions to include only the products that fall within the range.
For example, to set up a collection that includes products priced within a range of $50-$150, you would set up the two following conditions:
- Product price is greater than
- Product price is less than