Skip to main content

Interface: UseProductInfoOptions

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

Options for useProductInfo.

Properties

applyOrderlists?

optional applyOrderlists?: boolean

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

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:44

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


configuration?

optional configuration?: object

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

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:36

GraphQL client the hook derives its Services bundle from.


language?

optional language?: string

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

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


orderlistIds?

optional orderlistIds?: number[]

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

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:58

Attribute names to include in attributeResultSearchInput (productTrackAttributes).


taxZone?

optional taxZone?: string

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

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


user?

optional user?: Contact | Customer | null

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

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