Interface: CartSummaryProps
Defined in: components/CartSummary.tsx:18
Properties
afterRequestAuthorization?
optionalafterRequestAuthorization?: (cart) =>void
Defined in: components/CartSummary.tsx:78
Fires after authorization request is sent; receives the updated cart
Parameters
cart
Cart
Returns
void
cart
cart:
Cart
Defined in: components/CartSummary.tsx:27
The shopping cart used to populate the cart summary data
className?
optionalclassName?:string
Defined in: components/CartSummary.tsx:33
Extra classes for the panel root, merged over the defaults via tailwind-merge.
companyId?
optionalcompanyId?:number
Defined in: components/CartSummary.tsx:74
Active company ID — used to look up the user's PAC for this company
currency?
optionalcurrency?:string
Defined in: components/CartSummary.tsx:66
Currency symbol for prices. Resolved from PropellerProvider when omitted; defaults to '€'.
formatPrice?
optionalformatPrice?: (price) =>string
Defined in: components/CartSummary.tsx:63
Custom price formatting function
Parameters
price
number
Returns
string
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/CartSummary.tsx:69
GraphQL client — required for the default requestPurchaseAuthorization handler
labels?
optionallabels?:Record<string,string>
Defined in: components/CartSummary.tsx:36
Labels for the component
language?
optionallanguage?:string
Defined in: components/CartSummary.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. Resolved from <PropellerProvider> when omitted.
onCheckoutButtonClick?
optionalonCheckoutButtonClick?: (cart) =>void
Defined in: components/CartSummary.tsx:60
Action handler when the checkout button is clicked
Parameters
cart
Cart
Returns
void
onError?
optionalonError?: (err) =>void
Defined in: components/CartSummary.tsx:81
Called when requestPurchaseAuthorization fails; receives the error
Parameters
err
Error
Returns
void
onRequestAuthorization?
optionalonRequestAuthorization?: (cart) =>void
Defined in: components/CartSummary.tsx:75
- Override the default CartService.requestPurchaseAuthorization() call. * Note: when this override is used, afterRequestAuthorization receives the original cart.
Parameters
cart
Cart
Returns
void
onRequestQuoteClick?
optionalonRequestQuoteClick?: (cart) =>void
Defined in: components/CartSummary.tsx:85
Callback fired when "Request a Quote" is clicked. Only shown for contacts when prop is provided.
Parameters
cart
Cart
Returns
void
showCheckoutButton?
optionalshowCheckoutButton?:boolean
Defined in: components/CartSummary.tsx:57
Display the checkout button. Defaults to true.
showDiscount?
optionalshowDiscount?:boolean
Defined in: components/CartSummary.tsx:42
Display the total discount of the shopping cart. Defaults to true.
showShippingCosts?
optionalshowShippingCosts?:boolean
Defined in: components/CartSummary.tsx:45
Display the shipping costs of the shopping cart. Defaults to true.
showSubtotal?
optionalshowSubtotal?:boolean
Defined in: components/CartSummary.tsx:39
Display the subtotal of the shopping cart. Defaults to true.
showTotalExclVat?
optionalshowTotalExclVat?:boolean
Defined in: components/CartSummary.tsx:51
Display the total of the shopping cart excluding VAT. Defaults to true.
showTotalVat?
optionalshowTotalVat?:boolean
Defined in: components/CartSummary.tsx:54
Display the total VAT of the shopping cart. Defaults to true.
showVATs?
optionalshowVATs?:boolean
Defined in: components/CartSummary.tsx:48
Display all VAT lines of the shopping cart. Defaults to true.
title?
optionaltitle?:string
Defined in: components/CartSummary.tsx:30
Cart summary block title
user?
optionaluser?:Contact|Customer
Defined in: components/CartSummary.tsx:72
Logged-in user — used to determine purchaser role and authorization limit