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)


currency?

optional currency?: string

Defined in: components/OrderItemCard.tsx:51

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


formatPrice?

optional formatPrice?: (price) => string

Defined in: components/OrderItemCard.tsx:48

Custom price formatting function

Parameters

price

number

Returns

string


isChildItem?

optional isChildItem?: boolean

Defined in: components/OrderItemCard.tsx:45

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


labels?

optional labels?: 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?

optional priceComponent?: ComponentType<PriceComponentProps>

Defined in: components/OrderItemCard.tsx:61


showDiscount?

optional showDiscount?: boolean

Defined in: components/OrderItemCard.tsx:39

Display the discount column


showImage?

optional showImage?: boolean

Defined in: components/OrderItemCard.tsx:24

Display a small thumbnail of the order item


showItemNotes?

optional showItemNotes?: boolean

Defined in: components/OrderItemCard.tsx:42

Should the order item notes field be displayed


showPrice?

optional showPrice?: boolean

Defined in: components/OrderItemCard.tsx:36

Display the price of the order item


showQuantity?

optional showQuantity?: boolean

Defined in: components/OrderItemCard.tsx:33

Display the quantity of the order item


showSku?

optional showSku?: boolean

Defined in: components/OrderItemCard.tsx:30

Display the SKU of the order item beneath the item name


showStockComponent?

optional showStockComponent?: boolean

Defined in: components/OrderItemCard.tsx:27

Should stock info be displayed


stockComponent?

optional stockComponent?: ComponentType<StockComponentProps>

Defined in: components/OrderItemCard.tsx:62


titleLinkable?

optional titleLinkable?: boolean

Defined in: components/OrderItemCard.tsx:21

Should the item title be a link to the PDP