Connect Store metafields to CMS and Builder
Metafields give products and variants details beyond their core catalog fields. Define each field once, fill its values in Store, and choose public fields in existing Builder binding and component controls. Private fields remain in the owner’s Store editor.
This worked example uses a fictional Everyday shirt, Material = Cotton, Warranty months = 12, a private Supplier note, and a reusable CMS size chart. It does not create a checkout or charge a buyer.
Before you start
Section titled “Before you start”Open the website as its owner. Have a synthetic product and a native CMS collection named Size charts with a text field Measurement and a rich-text field Guide. Create an active chart entry. The CMS collection and entry must belong to this website.
Define the fields
Section titled “Define the fields”- Open Store → Metafields → Products → Create metafield.
- Create Material as Text, namespace
specs, keymaterial, and Public visibility. Save the definition draft. - Create Warranty months as Whole number, namespace
specs, keywarranty_months, with minimum 0. Make it public if it should appear in Builder. - Create Supplier note as Multiline and leave its default visibility Private.
- Create Size chart as CMS reference. Choose the native Size charts collection and select only Measurement and Guide as its public CMS fields. Set Public visibility and save.
Labels can change. Identity, owner scope, namespace/key, value type and reference collection stay fixed. Definition saves are separate Store draft writes; Builder undo does not remove them. A new field has no generated product values.
For variant-specific information, create definitions under Variants. Product and variant scopes stay separate.
Fill the product
Section titled “Fill the product”Open Everyday shirt in Store. Additional content groups metafields by namespace. Enter Cotton and 12, add a synthetic supplier note, and choose the chart entry. Its picker shows Published or Not published and offers Open CMS entry in a new tab.
Use Manage fields to add or edit a definition and Return to product to keep unsaved product/variant inputs. Saving a definition does not save the product. Save product draft submits core details and changed metafields together under one product revision. Use Unset to remove a value explicitly.
Supported values are text, multiline, safe whole numbers, booleans, select choices, safe URLs, date/datetime, website public images and single native CMS references. Zero and false are supplied values. Specification lists and CMS FAQ lists add ordered rows. Decimal or money values and arbitrary JSON remain unsupported. Public Media images are separate from private paid delivery files.
A required field may be missing in a saved draft; the editor marks it incomplete and catalog publication blocks until every active product or variant in that scope is complete. An archived product does not block the active catalog. A required reference needs a usable published CMS entry; its optional child fields may remain empty.
Connect Builder and component properties
Section titled “Connect Builder and component properties”- Open a product template or a
store_productsloop. Select a text target and choose Material in the binding picker. Labels show the human name,namespace.key, owner scope and Store origin. - Expand Size chart to choose its title, selected Measurement field, or Guide for a compatible rich-text container. Unselected CMS cells are unavailable through this reference.
- For a reusable component, expose a compatible scalar property, select the component instance in the product context, then choose the same Store field as its dynamic source. Component defaults and authored fallbacks retain their existing behavior.
- Use a
store_variantsrecord loop for variant fields. A product context does not implicitly select a buyer’s current variant.
The builder writes ordinary binding attributes using stable generated keys. Choose fields through the picker; no generated ID needs to be typed. Label changes keep those bindings stable. Reference views are internal, read-only sources reached through the product/variant field; they are absent from general Loop and template collection choices.
Direct metafields support the existing type-aware loop filters and order controls. Whole numbers use numeric comparisons; references compare entry identity. The existing filter grammar cannot represent semicolons or surrounding whitespace in an operand. The control rejects such an edit. For boolean false, use eq:false; existing set/unset filters treat false as unset, independently of required-field validation.
Add specifications and a shared FAQ
Section titled “Add specifications and a shared FAQ”- In Store → Metafields, create Specifications with type Specification list and Public visibility. Each row has the fixed text cells Label and Value. Set Maximum rows between 1 and 50; the default is 50.
- Create a native Product FAQs collection with a text Question and text or multiline Answer. Publish a synthetic FAQ, such as “Can I wash this?” → “Wash gently in cold water.”
- Create a Public CMS FAQ list definition. Choose that collection, Question (or Entry title) and Answer. Rich-text answers are incompatible with text repeater properties. Each selected Question/Answer must also fit the existing 10,000-character text-property limit; an oversized optional row is unavailable, and a required one blocks Publish. The collection and selected role identities stay fixed; create a replacement definition to change them.
- Edit Everyday shirt. Add Material → Cotton and Fit → Relaxed to Specifications. In FAQ, search and select several entries. Use Move up, Move down, Replace, or Remove. Reordering and replacement preserve the row identity. Open CMS entry edits the shared content in a new tab while preserving this product form.
- Save the product draft and review Publish catalog. Every supplied specification row needs both cells before Publish. Required lists need at least one complete row; every selected target of a required FAQ must be published with nonblank Question and Answer. Private required lists are checked at Store Publish and stay out of public CMS dependencies.
- In a reusable component, declare a specifications repeater with text properties
labelandvalue, and an FAQ repeater with text propertiesquestionandanswer. Select its instance inside a product template orstore_productsloop, choose Dynamic data, then the named Store list. - Choose Review mapping suggestions, inspect the exact-name and type matches, then Apply mapping suggestions. Existing manual mappings are preserved. New Store list bindings start at 50 displayed rows; explicit existing limits stay intact. Display first N rows changes presentation, and the preview explains the number hidden by that limit. All saved rows still undergo publication validation.
- Save and publish the page. Publish a shared FAQ edit in CMS to refresh the active FAQ and affected pages together. Pending Store prices, specification edits, FAQ membership/order, and schema drafts remain unpublished.
A Store list is available only in its current product or variant context. Use a store_variants loop for variant lists. It is not a scalar filter, sort, condition, or a global FAQ collection. A nested component can forward the repeater through its existing parent property controls; Builder remap and Undo/Redo remain ordinary document commands.
| Saved list state | Public component behavior |
|---|---|
| Clear list | Saves an explicit empty list. The component uses its empty state and suppresses fallback rows. |
| Unset | Removes the value. The component uses its authored fallback. |
| Optional FAQ with some published, complete selections | Shows available rows in the authored order. Other selections stay saved. |
| Optional nonempty FAQ with no available selections | Uses fallback rows, with an unavailable-target diagnostic. It is not treated as explicitly empty. |
| Required missing, empty, or incomplete list | Blocks catalog Publish; the previous live presentation remains. |
Question and Answer come from the exact published native revisions and selected stable field identities. A compatible CMS label/key rename keeps the binding. Removal or an incompatible selected field type requires repair before affected publication. Selected entry IDs, slugs, URLs and unselected CMS cells are excluded from public FAQ rows. Content is edited in CMS; component text controls do not write back into FAQ entries.
Save failures keep the current rows, IDs and order. A revision conflict requires comparison with the latest saved state and an explicit Save; it never retries or merges silently. Manage fields → Return to product also retains unsaved list edits.
Review what becomes live
Section titled “Review what becomes live”| Action | Effect |
|---|---|
| Save definition or product | Updates Store drafts. Public draft fields appear in authorized Design. |
| Save CMS entry | Leaves the live chart and product pages unchanged. |
| Publish catalog | Reviews and activates saved catalog values, public definitions and selected published CMS revisions together. |
| Publish or unpublish a referenced CMS entry | Updates its active Store reference views and affected published pages together. Pending product prices and schema drafts stay private. |
| Publish a page | Uses the active catalog. It does not publish pending Store drafts. |
| Publish or withdraw the CMS template | Updates the reference’s URL availability from pinned published routes. |
Use Publish catalog and inspect its route impact, schema revision, public field count, withdrawals and reference fallback notes before confirming. An optional unpublished target is omitted publicly and the authored fallback remains. Its saved choice is retained: publishing that CMS entry later can resolve the active reference even if a different product draft is waiting. Required live targets cannot be withdrawn until their consumers are repaired.
A referenced $url is available only with exactly one pinned published template for that native CMS collection. Missing or ambiguous templates keep the link fallback. The reference never publishes CMS content or a template on its own.
Withdraw or replace a field
Section titled “Withdraw or replace a field”Saved and Live visibility are separate. Saving Public → Private does not immediately remove existing published values. Review Usage, remove or rebind saved and published bindings/component inputs/filters, publish the repaired layouts, then review and publish the catalog. Do not copy a formerly public value into a fallback as an automatic repair.
Successful publication removes the current field, values and reference view. Rollback of a site generation or individual page refuses historical exposure that has been withdrawn. Re-exposure requires a fresh reviewed catalog publication; older revoked versions stay ineligible. Previously downloaded/exported files and external caches are outside this withdrawal.
To change type or reference collection, create a replacement, fill and publish both definitions, explicitly rebind consumers, publish those layouts, then archive and publish the old definition. Archival is a read-only tombstone: it does not free its namespace/key for reuse. Removing selected CMS fields also requires rebinding their consumers; historical broader views cannot be restored after the reviewed withdrawal.
Exchange metadata with CSV
Section titled “Exchange metadata with CSV”CSV extends the reviewed bulk metadata workflow. It updates existing products and variants on this website; product creation, titles, prices, stock, and publication use their existing controls.
- Open Store → Products and filter the list to the products you need. Open Metadata CSV below the list. Export covers up to 25 products on the current page. Choose one active Metadata field; a variant field includes every variant of those products. The field choice identifies product/variant ownership and public/private visibility.
- Choose Export field CSV. Open the downloaded UTF-8 comma-separated file in a spreadsheet or text editor. Preserve its header and all identities/revisions. The seven columns are
product_id,revision,schema_revision,variant_id,field_id,operation, andvalue_json. A blankvariant_idtargets the product. The exported operation iskeepfor every record. - Change only the intended operation/value cells. Use
setwith a typed JSON value, orunsetwith a blankvalue_json. Leave other records askeep, or omit them. Keep text double quotes inside the JSON value; let your spreadsheet handle CSV escaping when saving.
| Intended change | operation | value_json |
|---|---|---|
| Text | set |
"Cotton" |
| Integer | set |
7 |
| Boolean | set |
false |
| Empty text | set |
"" |
| Explicitly empty list | set |
[] |
| Remove the saved value / use authored fallback | unset |
Leave blank |
| Leave unchanged | keep |
Keep the exported value |
- Save as UTF-8 comma CSV. For specification/FAQ lists, preserve the JSON array, row identities, and order; use the native list editor when you need selection/mapping assistance. References and media must already belong to this website. A private-field export contains the selected private values, so share that file only with the intended recipients.
- In Metadata CSV, choose CSV file or paste into CSV content. Imports allow up to 25 products from this website, 5,000 data records, and 1 MiB. Export fewer filtered products if a variant/list field exceeds the file limit. An invalid file leaves the previous editable text available.
- Choose Review CSV. Inspect every product’s change count and errors. Duplicate cells, invalid values, missing targets, or outdated product/definition revisions prevent saving the batch. Editing the CSV invalidates the review. Keep/set/unset apply only to metadata; an empty value cell is not an implicit deletion.
- Choose Save CSV drafts. All valid changed products save together or none do. Then use the separate Publish catalog review when you want saved changes live.
On a revision conflict, retain your intended changes, export the latest saved values, compare, and review the reconciled file. Do not manually increment revision numbers or blindly repeat a successful save. The UI clears a successful import even if catalog refresh later fails; reload the catalog in that case.
Check the result
Section titled “Check the result”- The public product page displays Cotton, 12 and the selected published chart cells after reviewed catalog publication.
- Supplier note is absent from shared source descriptors, public catalog and rendered HTML.
- CMS draft edits leave the live page unchanged; publishing the chart updates its public references without publishing a waiting product draft.
Troubleshooting
Section titled “Troubleshooting”Failed saves retain entered values and do not retry with a fresh revision. Review the latest definitions; for a product revision mismatch, copy your edits, close and reopen the latest product, compare, then save explicitly. A core/metadata read mismatch blocks saving rather than merging different product versions.
Each owner scope supports up to 32 active fields, including at most eight active list definitions whether public or private. Each website retains up to 256 definitions including archives. Each list accepts up to its configured 1–50 rows. Specification labels allow 120 characters and values 1,000 characters. Value maps have measured UTF-8 limits: 16 KiB/product, 4 KiB/variant and 64 KiB combined/product; the public catalog retains its 16 MiB limit. Shorten content or move reusable long-form content into a selected native CMS reference. Validation/choice changes that invalidate stored values return a repair error; no values are silently converted or truncated.
Edit metadata across products
Section titled “Edit metadata across products”From the Store product list, open Bulk edit metadata on this page. The editor loads up to 25 products from the current catalog page. Choose a product or variant field and edit its typed inputs; specifications, FAQ selections, references and media keep their normal validation and Clear/Unset behavior. At most 100 cells for the selected field are displayed. Other fields and undisplayed values are preserved.
Select Review changes and inspect every changed product and validation error, then select Save reviewed batch. The server rechecks product revisions, definition revisions and the exact reviewed input before applying the entire batch in one transaction. An invalid or stale row prevents all writes. Keep your edits visible while resolving the conflict; reopen the latest baseline and review again rather than assuming a partial save.
The leave guard protects unsaved edits, and Close requires explicit discard when dirty. Saving updates drafts only: publication, prices, stock, payments and orders are separate actions. This editor works on the current page. Use the separate Metadata CSV action for file exchange; whole-catalog jobs remain separate.
Related guides
Section titled “Related guides”- Create products, variants and categories
- Create and publish entries
- Bind CMS fields into a page
- Component properties and API data
- Save, preview and publish
Applies to Strukt 3c3a9cf2dba71257b35d8e35f518c51b1567e50b · 2026-11-16