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)
currency?
optionalcurrency?:string
Defined in: components/OrderItemCard.tsx:51
Currency symbol used by the default formatter. Default: '€'.
formatPrice?
optionalformatPrice?: (price) =>string
Defined in: components/OrderItemCard.tsx:48
Custom price formatting function
Parameters
price
number
Returns
string
isChildItem?
optionalisChildItem?:boolean
Defined in: components/OrderItemCard.tsx:45
Render as a child/sub-item (indented, no image)
labels?
optionallabels?:Record<string,string>
Defined in: components/OrderItemCard.tsx:55
Translated labels keyed by the slugs used inside the component (see
getLabel calls). Missing keys fall back to the English defaults.
orderItem
orderItem:
OrderItem
Defined in: components/OrderItemCard.tsx:15
The order item to display
priceComponent?
optionalpriceComponent?:ComponentType<PriceComponentProps>
Defined in: components/OrderItemCard.tsx:61
showDiscount?
optionalshowDiscount?:boolean
Defined in: components/OrderItemCard.tsx:39
Display the discount column
showImage?
optionalshowImage?:boolean
Defined in: components/OrderItemCard.tsx:24
Display a small thumbnail of the order item
showItemNotes?
optionalshowItemNotes?:boolean
Defined in: components/OrderItemCard.tsx:42
Should the order item notes field be displayed
showPrice?
optionalshowPrice?:boolean
Defined in: components/OrderItemCard.tsx:36
Display the price of the order item
showQuantity?
optionalshowQuantity?:boolean
Defined in: components/OrderItemCard.tsx:33
Display the quantity of the order item
showSku?
optionalshowSku?:boolean
Defined in: components/OrderItemCard.tsx:30
Display the SKU of the order item beneath the item name
showStockComponent?
optionalshowStockComponent?:boolean
Defined in: components/OrderItemCard.tsx:27
Should stock info be displayed
stockComponent?
optionalstockComponent?:ComponentType<StockComponentProps>
Defined in: components/OrderItemCard.tsx:62
titleLinkable?
optionaltitleLinkable?:boolean
Defined in: components/OrderItemCard.tsx:21
Should the item title be a link to the PDP