Skip to main content

Interface: OrderTotalsProps

Defined in: components/OrderTotals.tsx:12

Properties

currency?

optional currency?: string

Defined in: components/OrderTotals.tsx:51

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


formatPrice?

optional formatPrice?: (price) => string

Defined in: components/OrderTotals.tsx:48

Custom price formatting function

Parameters

price

number

Returns

string


labels?

optional labels?: Record<string, string>

Defined in: components/OrderTotals.tsx:27

Labels for the component


language?

optional language?: string

Defined in: components/OrderTotals.tsx:18

Storefront language ('EN', 'NL', …). Decides the number format prices are rendered in — without it they fall back to Dutch separators regardless of the language the shopper is reading.


order

order: Order

Defined in: components/OrderTotals.tsx:21

The order/quote used to populate the summary data


showDiscount?

optional showDiscount?: boolean

Defined in: components/OrderTotals.tsx:33

Display the total discount of the order/quote


showShippingCosts?

optional showShippingCosts?: boolean

Defined in: components/OrderTotals.tsx:36

Display the shipping costs of the order/quote


showSubtotal?

optional showSubtotal?: boolean

Defined in: components/OrderTotals.tsx:30

Display the subtotal of the order/quote


showTotalExclVat?

optional showTotalExclVat?: boolean

Defined in: components/OrderTotals.tsx:42

Display the total of the order/quote excluding the VAT


showTotalVat?

optional showTotalVat?: boolean

Defined in: components/OrderTotals.tsx:45

Display the total VAT of the order/quote


showVATs?

optional showVATs?: boolean

Defined in: components/OrderTotals.tsx:39

Display all VATs of the order/quote


title?

optional title?: string

Defined in: components/OrderTotals.tsx:24

Order summary block title