Skip to main content

Interface: OrderItemCardProps

Defined in: components/OrderItemCard.tsx:14

Properties​

childItems?​

optional childItems?: OrderItem[]

Defined in: components/OrderItemCard.tsx:19

Child order items (rendered as indented sub-rows beneath the parent)


configuration?​

optional configuration?: object

Defined in: components/OrderItemCard.tsx:39

URL builders from the host's configuration. Supply them and the item link is generated the same way every other link on the storefront is — which is what carries the locale prefix. Without it the component falls back to a bare /product/:id/:slug, and on a prefixed storefront that link drops the visitor onto the default language.

urls?​

optional urls?: object

urls.getClusterUrl?​

optional getClusterUrl?: (cluster, language?) => string

Parameters​
cluster​

Cluster

language?​

string

Returns​

string

urls.getProductUrl?​

optional getProductUrl?: (product, language?) => string

Parameters​
product​

Product

language?​

string

Returns​

string


currency?​

optional currency?: string

Defined in: components/OrderItemCard.tsx:77

Currency symbol used by the default formatter. Default: '€'.


formatPrice?​

optional formatPrice?: (price) => string

Defined in: components/OrderItemCard.tsx:74

Custom price formatting function

Parameters​

price​

number

Returns​

string


imgComponent?​

optional imgComponent?: ComponentType<ImgComponentProps>

Defined in: components/OrderItemCard.tsx:90

Replaces the <img>. Passed directly: this component reads no context.


isChildItem?​

optional isChildItem?: boolean

Defined in: components/OrderItemCard.tsx:71

Render as a child/sub-item (indented, no image)


labels?​

optional labels?: Record&lt;string, string>

Defined in: components/OrderItemCard.tsx:81

Translated labels keyed by the slugs used inside the component (see getLabel calls). Missing keys fall back to the English defaults.


language?​

optional language?: string

Defined in: components/OrderItemCard.tsx:30

Language used to resolve localized product names and the slugs in the item's PDP link. Defaults to the catalog's default language.

This component is RSC-safe (no hooks, no context), so the host has to pass it — there is nothing to read it from. Without it a non-default storefront renders default-language names and, worse, default-language slugs in the links.


orderItem​

orderItem: OrderItem

Defined in: components/OrderItemCard.tsx:16

The order item to display


priceComponent?​

optional priceComponent?: ComponentType&lt;PriceComponentProps>

Defined in: components/OrderItemCard.tsx:87


showDiscount?​

optional showDiscount?: boolean

Defined in: components/OrderItemCard.tsx:65

Display the discount column


showImage?​

optional showImage?: boolean

Defined in: components/OrderItemCard.tsx:50

Display a small thumbnail of the order item


showItemNotes?​

optional showItemNotes?: boolean

Defined in: components/OrderItemCard.tsx:68

Should the order item notes field be displayed


showPrice?​

optional showPrice?: boolean

Defined in: components/OrderItemCard.tsx:62

Display the price of the order item


showQuantity?​

optional showQuantity?: boolean

Defined in: components/OrderItemCard.tsx:59

Display the quantity of the order item


showSku?​

optional showSku?: boolean

Defined in: components/OrderItemCard.tsx:56

Display the SKU of the order item beneath the item name


showStockComponent?​

optional showStockComponent?: boolean

Defined in: components/OrderItemCard.tsx:53

Should stock info be displayed


stockComponent?​

optional stockComponent?: ComponentType&lt;StockComponentProps>

Defined in: components/OrderItemCard.tsx:88


titleLinkable?​

optional titleLinkable?: boolean

Defined in: components/OrderItemCard.tsx:47

Should the item title be a link to the PDP