Skip to main content

Interface: QuickOrderProps

Defined in: components/QuickOrder.tsx:91

Properties​

afterAddToCart?​

optional afterAddToCart?: (cart) => void

Defined in: components/QuickOrder.tsx:163

Fires after a successful add — receives the resulting cart.

Parameters​

cart​

Cart

Returns​

void


applyOrderlists?​

optional applyOrderlists?: boolean

Defined in: components/QuickOrder.tsx:129

Set false to ignore orderlistIds. Defaults to true when ids are given.


className?​

optional className?: string

Defined in: components/QuickOrder.tsx:167

Override base container styles.


companyId?​

optional companyId?: number

Defined in: components/QuickOrder.tsx:97

Active company id — scopes cart + pricing for B2B users.


configuration?​

optional configuration?: object

Defined in: components/QuickOrder.tsx:108

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?​

optional anonymousUserId?: number

The channel's anonymous user, seeded by the host. Scopes logged-out listings exactly like the SSR seed does.

baseCategoryId?​

optional baseCategoryId?: 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?​

optional imageSearchFiltersGrid?: MediaImageProductSearchInput

imageVariantFiltersSmall?​

optional imageVariantFiltersSmall?: TransformationsInput


currency?​

optional currency?: string

Defined in: components/QuickOrder.tsx:101

Currency symbol/code shown next to prices. Defaults to '€'.


debounceMs?​

optional debounceMs?: number

Defined in: components/QuickOrder.tsx:135

Typeahead debounce in ms. Defaults to 300.


formatPrice?​

optional formatPrice?: (price) => string

Defined in: components/QuickOrder.tsx:159

Format a price. Defaults to the shared formatPrice helper.

Parameters​

price​

number

Returns​

string


graphqlClient?​

optional graphqlClient?: GraphQLClient

Defined in: components/QuickOrder.tsx:95

GraphQL client. Resolved from PropellerProvider when omitted.


includeTax?​

optional includeTax?: boolean

Defined in: components/QuickOrder.tsx:125

Show tax-inclusive prices. Resolves from <PropellerProvider>.


initialRows?​

optional initialRows?: number

Defined in: components/QuickOrder.tsx:131

Number of blank rows to start with. Defaults to 5.


labels?​

optional labels?: object

Defined in: components/QuickOrder.tsx:170

Localization label overrides.

adding?​

optional adding?: string

addRow?​

optional addRow?: string

addToCart?​

optional addToCart?: string

alreadyInList?​

optional alreadyInList?: string

colCode?​

optional colCode?: string

colName?​

optional colName?: string

colPrice?​

optional colPrice?: string

colPriceInclVat?​

optional colPriceInclVat?: string

colQuantity?​

optional colQuantity?: string

colTotal?​

optional colTotal?: string

downloadTemplate?​

optional downloadTemplate?: string

missingCodes?​

optional missingCodes?: string

noItems?​

optional noItems?: string

noResults?​

optional noResults?: string

priceOnRequest?​

optional priceOnRequest?: string

remove?​

optional remove?: string

selectFile?​

optional selectFile?: string

title?​

optional title?: string

upload?​

optional upload?: string

uploadHint?​

optional uploadHint?: string

uploadTitle?​

optional uploadTitle?: string


language?​

optional language?: string

Defined in: components/QuickOrder.tsx:99

Language for search/cart queries. Defaults to 'NL'.


maxUploadBytes?​

optional maxUploadBytes?: number

Defined in: components/QuickOrder.tsx:154

Max upload file size in bytes. Defaults to 2 MB.


maxUploadRows?​

optional maxUploadRows?: number

Defined in: components/QuickOrder.tsx:156

Max rows accepted from an upload. Defaults to 500.


onCartCreated?​

optional onCartCreated?: (cart) => void

Defined in: components/QuickOrder.tsx:161

Fires when the bulk add creates a fresh cart — persist the cart id.

Parameters​

cart​

Cart

Returns​

void


onMissingCodes?​

optional onMissingCodes?: (codes) => void

Defined in: components/QuickOrder.tsx:165

Fires when some uploaded/entered codes could not be resolved.

Parameters​

codes​

string[]

Returns​

void


onTemplateDownload?​

optional onTemplateDownload?: () => void

Defined in: components/QuickOrder.tsx:152

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?​

optional orderlistIds?: number[]

Defined in: components/QuickOrder.tsx:127

Orderlist (contract) ids to scope the catalogue by.


parseSpreadsheet?​

optional parseSpreadsheet?: (file) => Promise&lt;QuickOrderUploadLine[]>

Defined in: components/QuickOrder.tsx:143

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&lt;QuickOrderUploadLine[]>


searchThreshold?​

optional searchThreshold?: number

Defined in: components/QuickOrder.tsx:133

Minimum characters before the typeahead fires. Defaults to 3.


taxZone?​

optional taxZone?: string

Defined in: components/QuickOrder.tsx:123

Tax zone for price calculation. Defaults to 'NL'.


templateUrl?​

optional templateUrl?: string

Defined in: components/QuickOrder.tsx:145

URL to a downloadable XLSX template (shown next to the upload control).


user?​

optional user?: Contact | Customer | null

Defined in: components/QuickOrder.tsx:93

The authenticated user. Resolved from PropellerProvider when omitted.