Snackery LabsSearch articles...

Conditions

Variant metafield conditions (Growth)

Target variants by custom metafield values — anything you store on a variant beyond Shopify's defaults.

Plan: Growth

Variant metafields are custom data fields you can attach to variants in Shopify (under Settings → Custom data). This condition lets your discount rules target variants based on those custom values.

How it works

Click Add condition → Variant metafield. You'll be asked for:

  1. Namespace and key — e.g. custom.fabric_origin or inventory.season
  2. Operatoris, is not, contains, exists
  3. Value — what to match against

Common use cases

Discount by season tag stored as metafield

Metafield custom.season is "spring-2026"

Discount by supplier (when not using vendor)

Metafield custom.supplier is "ACME"

Discount items flagged as overstock

Metafield inventory.overstock is "true"

Discount items with a specific certification

Metafield custom.certifications contains "organic"

Setting up metafields in Shopify

If you don't already have variant metafields configured:

  1. Open Shopify admin → Settings → Custom data → Variants
  2. Click Add definition
  3. Name your metafield, give it a namespace and key
  4. Choose a type (text, number, boolean, etc.)
  5. Save

You can then assign values to variants individually, in bulk via Shopify's variant editor, or via CSV import.

Operators

Operator What it matches
is Metafield value exactly equals the value
is not Metafield value does not equal the value
contains Metafield value contains the substring
exists Metafield is set on the variant (any value)

Why this requires Growth

Metafield targeting unlocks the most flexible variant-level discounting. It's how merchants encode their own custom merchandising logic that isn't covered by tags, collections, or built-in fields. Available on the Growth plan. See Plans.

Limitations

  • Only variant metafields are supported. Product-level metafields don't apply (use tags or collections instead).
  • Metafield types that aren't text/number/boolean (e.g. references to other resources) aren't currently supported as condition values.
Last updated May 3, 2026👁 4 views