Skip to content
Shopware

getCategoryProducts

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