Skip to main content

Filter Conditions

Price Rules comes with an advanced product targeting engine. Instead of manually picking products one by one, you set filters that automatically select items based on attributes, conditions, and values. This lets you create precise sales down to specific variants or high-priority segments.

Anatomy of a Rule

The rule builder uses an intuitive filter system. Every individual rule you create consists of three core components:

  1. Attribute: What product or variant property are you checking? (e.g., Product Title).
  2. Condition: How should the system evaluate that property? (e.g., contains).
  3. Value: What is the specific target you're looking for? (e.g., Shirt).

Screenshot of Price Rules-Rule Builder


Targeting Levels

Because the Price Rules app modifies specific price points, it supports targeting at both the product and variant levels to fine-tune your promotions.

Product-Level Attributes

These attributes apply to the entire product and all its underlying variants:

AttributeWhat It Checks
MetafieldCustom Shopify data fields.
TagOrganizational or marketing tags.
TitleThe name of the product.
TypeA custom label used to describe a product (e.g., "Pants", "Jackets").
CategoryA predefined classification based on Shopify’s Standard Product Taxonomy (e.g., "Apparel & Accessories").
VendorThe brand or manufacturer
Product CollectionA group of products organized together based on specific criteria (e.g., "Back to School").
Product StatusWhether a product is visible and available for sale (e.g., "Active", "Draft", "Archived").

Screenshot of Price Rules Product Level Attributes


Variant-Level Attributes

These attributes let you target specific versions of a product (e.g., discounting only the "XXL" size or the "Neon Green" color):

AttributeWhat It Checks
Variant PriceThe actual selling price of the variant.
Variant Compare PriceThe crossed-out price displayed for discount comparison.
Variant CostCost of Goods (COGS) of the variant.
Variant TitleThe name of the variant.
Variant SKUInventory identifier.
Variant BarcodeUPC number.
Variant WeightThe physical weight of the item.

Screenshot of Price Rules Variant Level Attributes


Condition Types

Conditions determine how the system compares the attribute to the value you enter. The available conditions change depending on whether your selected attribute is text-based or number-based.

Text-Based Conditions

ConditionWhat It DoesIdeal For
isIncludes items that exactly match the entered value.Precise targeting, such as specific vendors or product types.
is notExcludes items that exactly match the entered value.Removing specific vendors, collections, or categories from a sale.
containsIncludes items if the value appears anywhere in the text.Partial matches or keyword targeting (e.g., seasonal words like "Summer" or "Sale").
Does not containExcludes items if the value appears anywhere in the text.Avoiding specific keywords.
starts withIncludes items that begin with the entered value.Targeting SKU prefixes or naming conventions.
ends withIncludes items that end with the entered value.Targeting SKU suffixes or sizing patterns.

Screenshot of Price Rules Text Based Conditions


Number-Based Conditions

ConditionWhat It DoesIdeal For
greater thanIncludes items with a value higher than the entered number.Setting minimum price thresholds, margin protection, or weight limits.
less thanIncludes items with a value lower than the entered number.Discounting lower-priced items, clearing lightweight inventory, or limiting by margin.

Screenshot of Price Rules Number Based Conditions


Setting Values

The Value is the target data you input into the rule builder for matching.

  • Text Inputs: Used for Title, Type, and Tag (e.g., "Shirt", "Summer").
  • Number Inputs: Used for prices, margins, and weights (e.g., 50, 25.00).
  • Selectors: For certain attributes, such as Vendor, a dropdown selector may appear based on your existing Shopify data.

Screenshot of Price Rules Filter Value


Example:

Let’s say you want to run a "High-Margin Sneaker Clearance." You want to discount sneakers, but only the ones where you have enough profit margin to afford a deep discount, and you want to exclude your newest arrivals.

You would build the following combination:

Rule 1: (Targets the Category)

Attribute → Type Condition → is Value → Mens Sneakers, Womens Sneakers, Kids Sneakers

Rule 2: (Protects Profitability)

Attribute → Variant Price Condition → greater than Value → 80

Rule 3: (Excludes Fresh Stock)

Attribute → Tag Condition → does not contain Value → New-Arrival

By setting the Rule Type to Match All Rules (AND), only variants that meet all three specific criteria will receive the price change.

Screenshot of Price Rules Filter Example-Match All Rules


Working With Metafields

Metafields are custom data fields in Shopify and are the highest priority filtering method for complex catalogs. It lets you filter by highly specific merchandising data that standard Shopify fields can’t handle, such as "custom.fabric_material", "custom.release_season", or "custom.collaboration_brand".

How to Filter by Metafields

Step 1: Select Metafield as your attribute. Step 2: Choose the specific metafield namespace and key from the dropdown. Step 3: Set your condition and value as usual.

Note: The app supports most standard metafield types (text, numbers, booleans, dates), but may not support complex JSON or specific reference types. Currently, the system prioritizes product-level metafields.


Best Practices

Be Precise With "Contains"

The "contains" condition matches any product where the value appears anywhere in the text. This can unintentionally include unrelated products. When accuracy matters, use "is", "starts with", or "ends with" for tighter control.


Maintain Clean Shopify Data

Filters rely entirely on your store data. Inconsistent values (e.g., "Nike", "nike", "Nike Inc.") can cause rules to miss products. Standardize Vendors, Tags, and naming conventions for reliable targeting.


Start Broad, Then Refine

When building complex rules, begin with a high-level filter (e.g., Category or Collection). Then layer on additional conditions, such as Price or Tags, to narrow the list.


Use Exclusion Strategically

Sometimes it’s easier to remove what you don’t want than define everything you do. Use "is not" or "does not contain" to exclude flagship products or new arrivals from large promotions.


Choose the Right Targeting Level

  • Use Product-level filters when the entire product should be affected.
  • Use Variant-level filters when only specific sizes, colors, or SKUs should change.

This prevents unintended price changes across all variants.


Need Help?

If your filters aren’t selecting the products you expected, you’re unsure whether to use product-level or variant-level attributes, or need help targeting metafields, our support team can review your rule logic with you.

Email support@bevycommerce.com, so we can help you refine your filters.