docs/user/settings/metafields.mdx
Metafields in Spree allow you to attach custom data to nearly any object in your store - without needing to write a single line of code or modify the database.
From product materials to internal order notes, metafields give you the flexibility to store, manage, and display extra information that doesn't come out of the box. This reduces reliance on developer deployments, makes experimentation easier, and enables faster iteration directly from the admin dashboard.
To create a metafield definition go to Settings → Metafield Definitions
Here you’ll see a list of all existing metafield definitions in your store.
To add a new one, click New Metafield Definition in the top right corner.
Fill out the form with the required details:
You can define metafields for nearly any data object in Spree:
Each metafield must be assigned a type, which determines the format of the stored value. Choosing the right type helps keep data structured, valid, and useful across the storefront and admin.
Once your metafield definition has been created, you can enter values in a few different ways:
First, navigate to the relevant resource (e.g., Product, Order, Shipment).
Click the three-dot menu in the top right corner and select Metafields from the dropdown.
Enter the desired values in the form and click Save to finalized your changes.
This works for any individual resource type and is perfect for adding or editing a few metafields manually.
Product metafields can also be imported or updated in bulk by:
You can also update your existing catalog by exporting the product file, updating it as described above, and then reimporting it to apply metafield updates
This is ideal for large-scale changes across multiple products, especially when onboarding a large catalog.