Skip to content
On this page

getCategoryProducts ​

Definition ​

Get default amount of products and listing configuration for given category

Signature ​

ts
export async function getCategoryProducts(
  categoryId: string,
  criteria?: ShopwareSearchParams,
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<ProductListingResult> 

Parameters ​

NameTypeDescription
categoryId
string
criteria
ShopwareSearchParams
contextInstance
ShopwareApiInstance

Return type ​

ts
Promise<ProductListingResult>

Usage example ​

WARNING

Example is generated automatically. Sometimes it's required to be adjusted to your needs.

Open in StackBlitz

getCategoryProducts has loaded