← API documentation Models

Filtrering

Filter model for search, category, price, and sorting.

Last updated

Usage

Pass a Filtrering instance to IProductService.GetAllProductsFiltered. Most property names in this model use camelCase.

Key properties

Property Meaning
productGroup / getFromSubcategories Selected category and whether to include child categories.
searchTerm / tagsArray / brandsArray Search text, tags, and brands.
priceFrom / priceTo Price range.
orderBy / orderByType Sort field and direction.
pageIndex Current page index.

Public properties

Property names and C# types follow this package version. Some fields are populated only when a service or repository prepares the model.

Property C# type
pageIndex int
currentPageId int
searchTerm string
productGroup int
getFromSubcategories bool
categoryArray string[]
tagsArray string[]
brandsArray string[]
customFieldName string
customFieldArray string[]
productBrand int
priceFrom int
priceTo int
heightFrom int
heightTo int
widthFrom int
widthTo int
lengthFrom int
lengthTo int
orderBy string
orderByType string

Source: OptimusCommercev2.Core/Models/Filtrering.cs · Optimus Commerce.Extension 17.94.0