Skip to main content

Interface: OrderItemCardProps

Defined in: components/OrderItemCard.tsx:13

Properties

childItems?

optional childItems?: OrderItem[]

Defined in: components/OrderItemCard.tsx:18

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


configuration?

optional configuration?: object

Defined in: components/OrderItemCard.tsx:38

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:76

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


formatPrice?

optional formatPrice?: (price) => string

Defined in: components/OrderItemCard.tsx:73

Custom price formatting function

Parameters

price

number

Returns

string


isChildItem?

optional isChildItem?: boolean

Defined in: components/OrderItemCard.tsx:70

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


labels?

optional labels?: Record<string, string>

Defined in: components/OrderItemCard.tsx:80

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:29

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:15

The order item to display


priceComponent?

optional priceComponent?: ComponentType<PriceComponentProps>

Defined in: components/OrderItemCard.tsx:86


showDiscount?

optional showDiscount?: boolean

Defined in: components/OrderItemCard.tsx:64

Display the discount column


showImage?

optional showImage?: boolean

Defined in: components/OrderItemCard.tsx:49

Display a small thumbnail of the order item


showItemNotes?

optional showItemNotes?: boolean

Defined in: components/OrderItemCard.tsx:67

Should the order item notes field be displayed


showPrice?

optional showPrice?: boolean

Defined in: components/OrderItemCard.tsx:61

Display the price of the order item


showQuantity?

optional showQuantity?: boolean

Defined in: components/OrderItemCard.tsx:58

Display the quantity of the order item


showSku?

optional showSku?: boolean

Defined in: components/OrderItemCard.tsx:55

Display the SKU of the order item beneath the item name


showStockComponent?

optional showStockComponent?: boolean

Defined in: components/OrderItemCard.tsx:52

Should stock info be displayed


stockComponent?

optional stockComponent?: ComponentType<StockComponentProps>

Defined in: components/OrderItemCard.tsx:87


titleLinkable?

optional titleLinkable?: boolean

Defined in: components/OrderItemCard.tsx:46

Should the item title be a link to the PDP