Appearance
useProductSearch
Definition
Composable for product search.
Signature
ts
export function useProductSearch(): {
search: (
productId: string,
options?: {
withCmsAssociations?: boolean;
criteria?: Partial<ShopwareSearchParams>;
}
) => Promise<ProductResponse>;
}
Return type
ts
{
search: (
productId: string,
options?: {
withCmsAssociations?: boolean;
criteria?: Partial<ShopwareSearchParams>;
}
) => Promise<ProductResponse>;
}
Properties
Name | Type | Description |
---|
Usage
ts
import { useProductSearch } from "@shopware-pwa/composables-next";
const { search } = useProductSearch();