Admin setup guide
Create a metafield definition
Section titled “Create a metafield definition”Create only the ones you need from the definitions list.
- Admin → Settings → Custom data → Products
- Click Add definition
- Enter:
- Name: anything (e.g. Lead time)
- Namespace and key: the value in the definitions list (e.g.
custom.lead_time_days) - Type: the type in the definitions list
- Save
Enter values per product in the “Metafields” section at the bottom of the product edit page.
Unpublished data is not shown
Section titled “Unpublished data is not shown”When a metaobject definition has “Publishing status” on, draft entries are not shown in the store. No error appears; they are simply left out. Check the entry status as well.
- After creating an entry, make sure its status is Active/Published
- Check each entry’s status in the admin
Settings that take a namespace or key
Section titled “Settings that take a namespace or key”Some theme settings and section settings ask for a metafield namespace or key (for example, the product card’s “Metafield namespace”, the favorites’ “Metafield key”, and the spec table’s “Metafield namespace”). To use a metafield your store already has, enter the same namespace and key as in the admin definition.