Skip to main content

Interface: CartCarriersProps

Defined in: components/CartCarriers.tsx:18

Properties

carriersContainerClass?

optional carriersContainerClass?: string

Defined in: components/CartCarriers.tsx:30

The CSS class for the carriers container


cart

cart: Cart

Defined in: components/CartCarriers.tsx:27

Shopping cart object from which the carriers will be displayed


currency?

optional currency?: string

Defined in: components/CartCarriers.tsx:45

Currency symbol for prices. Defaults to '€'.


formatPrice?

optional formatPrice?: (price) => string

Defined in: components/CartCarriers.tsx:39

Custom price formatting function

Parameters

price

number

Returns

string


labels?

optional labels?: Record<string, string>

Defined in: components/CartCarriers.tsx:48

Labels for the component


language?

optional language?: string

Defined in: components/CartCarriers.tsx:24

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.


onCarrierSelect?

optional onCarrierSelect?: (carrier) => void

Defined in: components/CartCarriers.tsx:36

Action when a carrier is selected

Parameters

carrier

CartCarrier

Returns

void


optional showCarrierLogo?: boolean

Defined in: components/CartCarriers.tsx:33

Display the carrier logo


showPrice?

optional showPrice?: boolean

Defined in: components/CartCarriers.tsx:42

Show carrier price (default: true)