Skip to main content

Function: OrderItemCard()

OrderItemCard(props): Element

Defined in: components/OrderItemCard.tsx:141

Renders a single order line item as a table row (with optional indented child-item rows), showing image, SKU, quantity, discount and price.

orderItem.product is optional and really can be absent: a product that is hidden, withdrawn or deleted from the catalog still appears on the orders and quotes it was sold on, but the API returns no product record for it. Every product-derived value below therefore falls back to the order item, which carries its own snapshot of the line — name, sku, quantity and prices — taken when the order was placed. Such a row renders as plain text: the placeholder thumbnail, the untranslated orderItem.name (there are no localized names to resolve), and no PDP link (there are no slugs to build one from).

Parameters

props

OrderItemCardProps

Returns

Element