Skip to content

ProducersFilterValue

The ProducersFilterValue object represents a producers filter value in the storefront.

classDiagram
  direction LR
  ProducersFilterValue --> Url
  class ProducersFilterValue{
    int producerId
    string name
    bool isActive
    string urlValue
    string urlKey
    Url urlWithFilterValueRemoved
    Url urlWithSingleFilterValue
    ?Url urlWithFilterValueAdded
    ?int counter
  }
  class Url{
  }

Properties

Attribute name Type Description
producerId int The id of the producer.
name string The name of the producer.
isActive bool Returns true if producers filter value is active.
urlValue string Represents a value of the producers filter used to build target URL.
urlKey string Represents URL key for producers filter value.
counter null|int Represents amount of found products meeting the criteria.
urlWithFilterValueRemoved Url Returns Url object that represents link with producers filter value removed.
urlWithSingleFilterValue Url Returns Url object that represents link with single producers filter value.
urlWithFilterValueAdded null|Url Returns Url object that represents link with producers filter value added.

Examples

producerId property

{{ producersFilterValue.producerId }}
1

name property

{{ producersFilterValue.name }}
example name

isActive property

{{ producersFilterValue.isActive }}
true

urlValue property

{{ producersFilterValue.urlValue }}
2

urlKey property

{{ producersFilterValue.urlKey }}
f_at_11_211

counter property

{{ producersFilterValue.counter }}
3

urlWithFilterValueRemoved property

{{ producersFilterValue.urlWithFilterValueRemoved }}
/url/with/filter/value/removed

urlWithSingleFilterValue property

{{ producersFilterValue.urlWithSingleFilterValue }}
/url/with/single/filter/value

urlWithFilterValueAdded property

{{ producersFilterValue.urlWithFilterValueAdded }}
/url/with/filter/value/added