Interface: OrderItemCardProps
Defined in: components/OrderItemCard.tsx:13
Properties
childItems?
optionalchildItems?:OrderItem[]
Defined in: components/OrderItemCard.tsx:18
Child order items (rendered as indented sub-rows beneath the parent)
configuration?
optionalconfiguration?: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?
optionalurls?:object
urls.getClusterUrl?
optionalgetClusterUrl?: (cluster,language?) =>string
Parameters
cluster
Cluster
language?
string
Returns
string
urls.getProductUrl?
optionalgetProductUrl?: (product,language?) =>string
Parameters
product
Product
language?
string
Returns
string
currency?
optionalcurrency?:string
Defined in: components/OrderItemCard.tsx:76
Currency symbol used by the default formatter. Default: '€'.
formatPrice?
optionalformatPrice?: (price) =>string
Defined in: components/OrderItemCard.tsx:73
Custom price formatting function
Parameters
price
number
Returns
string
isChildItem?
optionalisChildItem?:boolean
Defined in: components/OrderItemCard.tsx:70
Render as a child/sub-item (indented, no image)
labels?
optionallabels?: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?
optionallanguage?: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?
optionalpriceComponent?:ComponentType<PriceComponentProps>
Defined in: components/OrderItemCard.tsx:86
showDiscount?
optionalshowDiscount?:boolean
Defined in: components/OrderItemCard.tsx:64
Display the discount column
showImage?
optionalshowImage?:boolean
Defined in: components/OrderItemCard.tsx:49
Display a small thumbnail of the order item
showItemNotes?
optionalshowItemNotes?:boolean
Defined in: components/OrderItemCard.tsx:67
Should the order item notes field be displayed
showPrice?
optionalshowPrice?:boolean
Defined in: components/OrderItemCard.tsx:61
Display the price of the order item
showQuantity?
optionalshowQuantity?:boolean
Defined in: components/OrderItemCard.tsx:58
Display the quantity of the order item
showSku?
optionalshowSku?:boolean
Defined in: components/OrderItemCard.tsx:55
Display the SKU of the order item beneath the item name
showStockComponent?
optionalshowStockComponent?:boolean
Defined in: components/OrderItemCard.tsx:52
Should stock info be displayed
stockComponent?
optionalstockComponent?:ComponentType<StockComponentProps>
Defined in: components/OrderItemCard.tsx:87
titleLinkable?
optionaltitleLinkable?:boolean
Defined in: components/OrderItemCard.tsx:46
Should the item title be a link to the PDP