Przejdź do głównej zawartości

Interface: CartTotalsProps

Properties

className?

optional className?: string

Class applied to the wrapping <dl>.


currency

currency: string

ISO 4217 currency code shared by every line.


discount?

optional discount?: number

Discount in minor units. Rendered as −<amount> when > 0.


labels?

optional labels?: CartTotalsLabels

Custom row labels. Defaults to English.


rowClassName?

optional rowClassName?: string

Class applied to each <div> row (subtotal, discount, etc.).


shipping?

optional shipping?: number

Shipping in minor units. Rendered when provided (incl. 0 = free shipping).


subtotal

subtotal: number

Subtotal in minor units.


tax?

optional tax?: number

Tax in minor units. Rendered when provided.


total

total: number

Total in minor units.