Skip to main content
Product conditions are evaluated per line item. A rule with a product condition matches when the items in the cart satisfy it — so these are what you use to separate bulky goods from regular ones, or to price by weight.
Five of these attributes require product syncing before they will work: Product Tag, Product Type, Product Title, Product Barcode, and Product Compare-at Price. Shopify does not send them to the app at checkout, so ShipMagic reads them from its own synced copy. Sync from Settings → Products → Sync Now.

Available attributes

Separators: commas or semicolons?

This trips people up, because it isn’t consistent — it follows what the data itself can contain. The exact separator for each parameter is shown on the app when you select the parameter.
  • Product Tag takes commas: bulky,oversized,freight
  • Everything else takes semicolons: Blue Sofa;Red Sofa
Titles and types can legitimately contain a comma (“Sofa, Large”), which is why they use semicolons. Tags cannot contain commas in Shopify, so commas are safe there.

Metafields

For Product Metafield, enter the metafield key. For Variant Metafield, enter it as Namespace.Key. Metafield conditions support type-aware operators — numeric comparisons for number fields, Is True / Is False for booleans, and Is Empty / Is Not Empty on variant metafields to test whether a value has been set at all.
Metafields can also be used to set the price itself, not just to match. See Rates from Metafields.

Dimensions

Length, Width, Height, and Volume are always in millimetres (volume in mm³), regardless of your store’s display units. They come from the dimension data on the product — see Adding Dimensions to Products for how to populate them.

Per line item vs. per cart

A product condition asks about the items in the cart. If you need to ask whether the cart contains a matching product without requiring every product to match, use Cart Contains instead — see Cart Conditions.

Examples

Separate bulky products from the rest
A freight rate for anything longer than 2 metres
Match several vendors at once

Cart Conditions

Match on cart value, quantity, weight, and contents.

Adding dimensions

Populate length, width, and height on your products.

Syncing products

Which attributes need a sync, and how to run one.

Rates from metafields

Read the shipping price straight out of a metafield.