Filter Products
Since the catalog page displays the entire product inventory, you can use filters to find the right product.
The following API is used to get the products associated with the selected filter option. For more information, click here.
POST
https://<URL_of_the_Instance>/api/catalog/v1/search
For example: https://<URL_of_the_Instance>/api/catalog/v1/search?search-type=Product&includes=prices&page={pageNumber}&limit={pageLimit}
The category hierarchy allows you to navigate to products by browsing the related categories, their subcategories, and facet filters. The list of subcategories and facet filters appears only after you select a category.
The following filed types are supported for facet filters. For example, to filter out a product, we can have two facet filters such as Configuration Type (Boolean: standalone or bundle), and Family (Picklist: software, hardware, and other):
- Picklist
- Multipicklist
- Boolean
The implementor can use the SearchFilterFields option to display the number of facets for the particular category. For example, if you want to use the Product Family and Configuration Type facets, pass "SearchFilterFields": ["Family", "Configuration Type"]. For more information, click here.
Data translation in Catalog allows you to display modules and elements as per preferences and locales. Currently, data translation is available for the Catalog and its modules (Product, Category, OptionGroup, Attribute, and AttributeGroup), as well as elements (product names, line item fields, categories, and rule messages). For more information, see Setting Up Multi-language Support.
Example:
When you set the catalog's locale to Chinese, it displays product details and other elements in Chinese.
