Documentation Fundamentals Metafield Restrictions
Metafield restrictions
Shopify metafields are a powerful way to save unique information across your entire shop, including on Products and their Variants. Parcelify zones and shipping rates can be configured using Product Variant Metafields to easily pinpoint the items they apply to. Merchants prefer using Product Variant Metafields over Shopify Product Options as metafields can be assigned to groups of products (instead of defining variants on a per-product basis).
Parcelify supports the following Product Variant metafields:
Please note:
- Parcelify will only work with “One value” metafields, not “List of values”.
- Only product variant metafields are supported
To learn more about what Metafields are and how to set them up on your shop, please see the link below: https://help.shopify.com/manual/custom-data/metafields
Examples
Single line text field
This example uses a small string of text to describe the temperature of a product.
Using this, we can create a shipping rate that will show any time a frozen product is in the cart:
Integer Numbers
Integers are any whole (non-decimal) number. Here we use them to represent the year a particular batch of grapes were grown.
With this metafield in place, we can create a shipping price for any wine vintage.
Decimal Numbers
You can use decimal numbers to represent things with a partial or fractional component. In this example we store product length as a metafield.
Similar to our vintage example, we can now use product length to apply a specific shipping amount to this rate.
Boolean Values
A boolean value is either true or false. Here we use booleans to indicate whether or not the product is safe underwater.
This rate restriction will force all products in the cart to be marked as waterproofed before it can show: