The filter_value object represents a single value of a filter object.
All attributes except param_name and value only apply to filters of type list.
It has the following properties:
filter_value.active
Returns whether the filter value is active: true or false.
filter_value.count
Returns how many results match the filter value. Returns a number.
filter_value.label
Returns the customer-facing label of the filter value, for example Red or Rouge.
filtervalue.paramname
Returns the parameter name of the filter the value belongs to, for example filter.v.option.color.
Filters of type price_range also contain an extra component that depends on the source of the filter_value.
If the filter_value of a price_range filter is min_value, this is returned:
filter.v.price.gte
If the filter_value of a price_range filter is max_value, this is returned:
filter.v.price.lte
filtervalue.urlto_add
Returns the current page URL with the parameter of the filter value added.
The page URL parameter is removed.
filtervalue.urlto_remove
Returns the current page URL with the parameter of the filter value removed.
The page URL parameter is removed.
filter_value.value
Returns the value.