Skip to main content

Interface: UseQuickOrderOptions

Defined in: composables/react/useQuickOrder.ts:74

Options for useQuickOrder.

Properties

afterAddToCart?

optional afterAddToCart?: (cart) => void

Defined in: composables/react/useQuickOrder.ts:104

Fires after a successful bulk add — receives the resulting cart.

Parameters

cart

Cart

Returns

void


applyOrderlists?

optional applyOrderlists?: boolean

Defined in: composables/react/useQuickOrder.ts:90

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


companyId?

optional companyId?: number

Defined in: composables/react/useQuickOrder.ts:80

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


configuration?

optional configuration?: object

Defined in: composables/react/useQuickOrder.ts:92

Image filters + the base category the search is scoped to.

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. Without it the search returns nothing — see searchProducts.

imageSearchFiltersGrid?

optional imageSearchFiltersGrid?: MediaImageProductSearchInput

imageVariantFiltersSmall?

optional imageVariantFiltersSmall?: TransformationsInput


graphqlClient?

optional graphqlClient?: GraphQLClient

Defined in: composables/react/useQuickOrder.ts:76

GraphQL client the hook derives its Services bundle from. Resolved from PropellerProvider when omitted.


language?

optional language?: string

Defined in: composables/react/useQuickOrder.ts:82

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


onCartCreated?

optional onCartCreated?: (cart) => void

Defined in: composables/react/useQuickOrder.ts:102

Fires when submit creates a fresh cart — persist the cart id.

Parameters

cart

Cart

Returns

void


orderlistIds?

optional orderlistIds?: number[]

Defined in: composables/react/useQuickOrder.ts:88

Orderlist (contract) ids to scope the catalogue by.


searchLimit?

optional searchLimit?: number

Defined in: composables/react/useQuickOrder.ts:84

Max typeahead results per row. Defaults to 8.


taxZone?

optional taxZone?: string

Defined in: composables/react/useQuickOrder.ts:86

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


user?

optional user?: AnyUser

Defined in: composables/react/useQuickOrder.ts:78

The signed-in user (quick order is an authenticated feature).