OptionsFilter¶
The OptionsFilter object represents a list options filter in the storefront.
classDiagram
direction LR
OptionsFilter --> OptionsFilterValuesList
OptionsFilter --> ColorOptionsFilterValuesList
class OptionsFilter{
int optionId
string name
bool isActive
bool hasCounters
bool isSingleChoiceOnly
int limit
bool isColor
ColorOptionsFilterValuesList|OptionsFilterValuesList values
}
class OptionsFilterValuesList{
}
class ColorOptionsFilterValuesList{
}
Properties¶
Attribute name | Type | Description |
---|---|---|
optionId | int |
The option id of the options filter. |
name | string |
The name of the options filter. |
isActive | bool |
Returns true if options filter is active. |
hasCounters | bool |
Returns true if options filter has counter that represents number of products meeting the criteria. |
isSingleChoiceOnly | bool |
Returns true if options filter is single choice. |
limit | int |
Number of visible options in the filter. |
isColor | bool |
Returns true if options filter is color type filter. |
values | OptionsFilterValuesList|ColorOptionsFilterValuesList |
Returns OptionsFilterValuesList object that represents list of options filters values or ColorOptionsFilterValuesList object when option's type is color. |