Skip to content

CategoriesFilterValue

The CategoriesFilterValue object represents a categories filter value in the storefront.

classDiagram
  direction LR
  CategoriesFilterValue --> CategoryUrl
  class CategoriesFilterValue{
    int categoryId
    string name
    CategoryUrl baseUrl
    CategoryUrl urlWithFilters
    ?int counter
  }
  class CategoryUrl{
  }

Properties

Attribute name Type Description
categoryId int The id of the category.
name string The name of the category.
counter null|int Represents amount of found categories meeting the criteria.
baseUrl CategoryUrl Returns CategoryUrl object that represents base link of a category.
urlWithFilters CategoryUrl Returns CategoryUrl object that represents category's link with filters.

Examples

categoryId property

{{ categoriesFilterValue.categoryId }}
1

name property

{{ categoriesFilterValue.name }}
example name

counter property

{{ categoriesFilterValue.counter }}
3

baseUrl property

{{ categoriesFilterValue.baseUrl }}
/base/categories/link

urlWithFilters property

{{ categoriesFilterValue.urlWithFilters }}
/link/to/category/with/filters