Wocart

@wocart/theme v4.1.0


@wocart/theme / index / ProductFieldDefinition

Interface: ProductFieldDefinition

product: which of the store's products to show here — Shopify's product setting. The value is a product handle (the /products/<handle> segment); the theme reads it with the storefront client's products.get(handle). A renamed or deleted product reads as no product.

Extends

  • FieldDefinitionBase

Properties

default?

optional default?: string


description?

optional description?: LocalizedText

Editor-facing help text.

Inherited from

FieldDefinitionBase.description


key

key: string

The exact prop name the component expects.

Inherited from

FieldDefinitionBase.key


kind

kind: "product"


label

label: LocalizedText

Editor-facing name, the same in every language or translated.

Inherited from

FieldDefinitionBase.label


required?

optional required?: boolean

Inherited from

FieldDefinitionBase.required


visibleIf?

optional visibleIf?: FieldCondition

When an editor shows the field; absent: always. The renderer ignores it.

Inherited from

FieldDefinitionBase.visibleIf