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:

Description of condition behaviors
TermDescription
is equal toA product needs to match exactly the whole value you enter.
is not equal toA product can't match the value you enter.
starts withThe beginning of the product title, type, or vendor matches the value you enter.
ends withThe end of the product title, type, or vendor matches the value you enter.
containsThe 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 containThe 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 category

You can set a condition to include products with a particular product category. For a condition that uses product category, select the desired category from the drop down.

For example, to set up a condition that selects products with the product category Televisions:

  1. Select Product category from the first drop-down list.
  2. Select is equal to from the second drop-down list.
  3. Select Televisions

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 accessories:

  1. Select Product tag from the first drop-down list.
  2. Select is equal to from the second drop-down list.
  3. Enter accessories.

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: red_new, red+new, red&new.

For more information about tags, see Tag formats.

Set metafield definition conditions based on metafield values

You can add a condition to include products or variant with a particular metafield value.

In order to have the metafields available to you when creating collections, you need to activate the automated collections setting for the metafield definition. You can have the automated collections setting activated on a maximum of 128 definitions per product metafield definitions and variant metafield definitions.

The first column of the drop-down list for your automated collection conditions is the name of your metafield definition. The second drop-down list or text box is your metafield values.

For example, to set up a condition that selects products with the metafield definition Color and the value #FF0000, do the following:

  1. Select Color from the first drop-down list.
  2. Select is equal to from the second drop-down list.
  3. Type #FF0000.

Learn more about automated collections by metafields.

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:

Description of condition behaviors
TermDescription
is equal toA product needs to match the exact value.
is not equal toA product can't match the value.
is greater thanThe product is greater than the value.
is less thanThe product is less than the value.
is empty

Compare-at price only:

The product doesn't have a Compare-at price value.
is not empty

Compare-at price only:

The product does have a Compare-at price value. This value can be zero. If any of a product's variants has a Compare-at price value, then the product is considered to have a Compare-at price.

For example, to set up a condition that includes products that are priced $100 or less:

  1. Select Product price from the first drop-down list.
  2. Select is less than from the second drop-down list.
  3. Enter $100.01.

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 shirt.
  • Price is less than $100.01.

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:

  1. Product price is greater than $49.99.
  2. Product price is less than $150.01.
Can’t find the answers you’re looking for? We’re here to help.