Skip to content

Metafields

The most advanced, and one of the most powerful attributes are for Shopify metafields. Metafield values may be evaluated by selecting a namespace, metafield key, and condition.

Conditions include:

  • Is equal to

  • Is not equal to

  • Starts with

  • Ends with

  • Contains

  • Does not contain

  • Is not empty

  • Is empty

  • Exists

  • Does not exist

  • Is greater than

  • Is lesser than

  • Is true

  • Is false

Additionally, collection sorting may be done with a metafield value in a numeric range.

Frequently asked questions

Which metafields can Dynasort read?

Any Shopify product metafield. You select the namespace and key, then a condition to test the value with.

Which conditions are available for metafields?

Is equal to, is not equal to, starts with, ends with, contains, does not contain, is empty, is not empty, exists, does not exist, is greater than, is lesser than, is true and is false. Collection sorting can also score a numeric metafield on a range between a Min and Max.

Can I rank by a numeric metafield such as a margin or popularity score from another app?

Yes. Choose the metafield and use the numeric range option so the value scales between your Min and Max, exactly like Dynasort's built-in numeric attributes.

Can a metafield drive a managed collection?

Yes. Use any of the conditions above as a managed collection rule, for example 'custom.season is equal to winter' or 'custom.preorder is true'.