Interface: QuickOrderProps
Defined in: components/QuickOrder.tsx:81
Properties
afterAddToCart?
optionalafterAddToCart?: (cart) =>void
Defined in: components/QuickOrder.tsx:151
Fires after a successful add — receives the resulting cart.
Parameters
cart
Cart
Returns
void
applyOrderlists?
optionalapplyOrderlists?:boolean
Defined in: components/QuickOrder.tsx:117
Set false to ignore orderlistIds. Defaults to true when ids are given.
className?
optionalclassName?:string
Defined in: components/QuickOrder.tsx:155
Override base container styles.
companyId?
optionalcompanyId?:number
Defined in: components/QuickOrder.tsx:87
Active company id — scopes cart + pricing for B2B users.
configuration?
optionalconfiguration?:object
Defined in: components/QuickOrder.tsx:98
Image filters forwarded to the typeahead + cart queries so results carry
thumbnails. Pass the app's imageSearchFiltersGrid / imageVariantFiltersSmall
(the same values the SearchBar uses) — without them the API returns no image
variants and the dropdown shows no product images.
anonymousUserId?
optionalanonymousUserId?:number
The channel's anonymous user, seeded by the host. Scopes logged-out listings exactly like the SSR seed does.
baseCategoryId?
optionalbaseCategoryId?:number
Catalog root the code search is scoped to. Required: without it the typeahead and the upload resolve nothing, since searching outside a category ignores orderlist scoping and would surface products the user has no access to.
imageSearchFiltersGrid?
optionalimageSearchFiltersGrid?:MediaImageProductSearchInput
imageVariantFiltersSmall?
optionalimageVariantFiltersSmall?:TransformationsInput
currency?
optionalcurrency?:string
Defined in: components/QuickOrder.tsx:91
Currency symbol/code shown next to prices. Defaults to '€'.
debounceMs?
optionaldebounceMs?:number
Defined in: components/QuickOrder.tsx:123
Typeahead debounce in ms. Defaults to 300.
formatPrice?
optionalformatPrice?: (price) =>string
Defined in: components/QuickOrder.tsx:147
Format a price. Defaults to the shared formatPrice helper.
Parameters
price
number
Returns
string
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/QuickOrder.tsx:85
GraphQL client. Resolved from PropellerProvider when omitted.
initialRows?
optionalinitialRows?:number
Defined in: components/QuickOrder.tsx:119
Number of blank rows to start with. Defaults to 5.
labels?
optionallabels?:object
Defined in: components/QuickOrder.tsx:158
Localization label overrides.
adding?
optionaladding?:string
addRow?
optionaladdRow?:string
addToCart?
optionaladdToCart?:string
alreadyInList?
optionalalreadyInList?:string
colCode?
optionalcolCode?:string
colName?
optionalcolName?:string
colPrice?
optionalcolPrice?:string
colQuantity?
optionalcolQuantity?:string
colTotal?
optionalcolTotal?:string
downloadTemplate?
optionaldownloadTemplate?:string
missingCodes?
optionalmissingCodes?:string
noItems?
optionalnoItems?:string
noResults?
optionalnoResults?:string
remove?
optionalremove?:string
selectFile?
optionalselectFile?:string
title?
optionaltitle?:string
upload?
optionalupload?:string
uploadHint?
optionaluploadHint?:string
uploadTitle?
optionaluploadTitle?:string
language?
optionallanguage?:string
Defined in: components/QuickOrder.tsx:89
Language for search/cart queries. Defaults to 'NL'.
maxUploadBytes?
optionalmaxUploadBytes?:number
Defined in: components/QuickOrder.tsx:142
Max upload file size in bytes. Defaults to 2 MB.
maxUploadRows?
optionalmaxUploadRows?:number
Defined in: components/QuickOrder.tsx:144
Max rows accepted from an upload. Defaults to 500.
onCartCreated?
optionalonCartCreated?: (cart) =>void
Defined in: components/QuickOrder.tsx:149
Fires when the bulk add creates a fresh cart — persist the cart id.
Parameters
cart
Cart
Returns
void
onMissingCodes?
optionalonMissingCodes?: (codes) =>void
Defined in: components/QuickOrder.tsx:153
Fires when some uploaded/entered codes could not be resolved.
Parameters
codes
string[]
Returns
void
onTemplateDownload?
optionalonTemplateDownload?: () =>void
Defined in: components/QuickOrder.tsx:140
Called when the template link is clicked. Navigation is untouched — this is a notification, not a handler: a buyer fetching the template is a quick-order intent signal that otherwise leaves no trace at all.
Returns
void
orderlistIds?
optionalorderlistIds?:number[]
Defined in: components/QuickOrder.tsx:115
Orderlist (contract) ids to scope the catalogue by.
parseSpreadsheet?
optionalparseSpreadsheet?: (file) =>Promise<QuickOrderUploadLine[]>
Defined in: components/QuickOrder.tsx:131
Optional spreadsheet parser. When supplied, the XLSX upload panel is shown; the app parses the file (e.g. via SheetJS) and returns code+quantity lines. Kept as a prop so the package stays free of a heavy xlsx dependency — the app owns the parser and loads it only on this page.
Parameters
file
File
Returns
Promise<QuickOrderUploadLine[]>
searchThreshold?
optionalsearchThreshold?:number
Defined in: components/QuickOrder.tsx:121
Minimum characters before the typeahead fires. Defaults to 3.
taxZone?
optionaltaxZone?:string
Defined in: components/QuickOrder.tsx:113
Tax zone for price calculation. Defaults to 'NL'.
templateUrl?
optionaltemplateUrl?:string
Defined in: components/QuickOrder.tsx:133
URL to a downloadable XLSX template (shown next to the upload control).
user?
optionaluser?:Contact|Customer|null
Defined in: components/QuickOrder.tsx:83
The authenticated user. Resolved from PropellerProvider when omitted.