Skip to main content

Interface: UseProductInfoOptions

Defined in: composables/react/useProductInfo.ts:33

Options for useProductInfo.

Properties​

applyOrderlists?​

optional applyOrderlists?: boolean

Defined in: composables/react/useProductInfo.ts:55

Apply the orderlist filter. Defaults to true when orderlistIds is non-empty (or resolved from the company), false when explicitly set so an authenticated user without a contract sees the full catalogue.


companyId?​

optional companyId?: number

Defined in: composables/react/useProductInfo.ts:43

Active company id for company-scoped pricing and orderlist resolution.


configuration?​

optional configuration?: object

Defined in: composables/react/useProductInfo.ts:59

Portal configuration: image search/variant filters per size.

imageSearchFiltersGrid?​

optional imageSearchFiltersGrid?: MediaImageProductSearchInput

Image search filters applied to product/cluster media.

imageVariantFiltersLarge?​

optional imageVariantFiltersLarge?: TransformationsInput

Used for products (ProductInfo).

imageVariantFiltersMedium?​

optional imageVariantFiltersMedium?: TransformationsInput

Used for clusters (ClusterInfo).

imageVariantFiltersSmall?​

optional imageVariantFiltersSmall?: TransformationsInput

Alias: some configs use imageVariantFiltersSmall for product images.


graphqlClient​

graphqlClient: GraphQLClient

Defined in: composables/react/useProductInfo.ts:35

GraphQL client the hook derives its Services bundle from.


language?​

optional language?: string

Defined in: composables/react/useProductInfo.ts:37

Language for product/cluster queries. Defaults to 'NL'.


orderlistIds?​

optional orderlistIds?: number[]

Defined in: composables/react/useProductInfo.ts:49

Scope the product fetch to specific orderlist IDs (e.g. a chosen B2B contract). When provided, these override the default behaviour of resolving and applying ALL of the company's orderlists.


productTrackAttributes?​

optional productTrackAttributes?: string[]

Defined in: composables/react/useProductInfo.ts:57

Attribute names to include in attributeResultSearchInput (productTrackAttributes).


taxZone?​

optional taxZone?: string

Defined in: composables/react/useProductInfo.ts:39

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


user?​

optional user?: Contact | Customer | null

Defined in: composables/react/useProductInfo.ts:41

The signed-in user; supplies contactId/customerId for per-user pricing.