# filters

O Objeto `filters` retorna um array de filtros.

{% hint style="warning" %}
**Disponível para uso nas páginas:** catalog | search | home
{% endhint %}

{% hint style="info" %}
**Para saber mais sobre como gerenciar os Filtros Inteligentes acesse:**  [Filtro Inteligente](https://basedeconhecimento.tray.com.br/hc/pt-br/articles/6734661410715-Novo-sistema-de-Busca-e-Filtro-Inteligente)
{% endhint %}

| Chaves principais | Descrição                |
| ----------------- | ------------------------ |
| `categories`      | Lista de categorias      |
| `brands`          | Lista de marcas          |
| `prices`          | Lista de preços          |
| `variations`      | Lista de variações       |
| `features`        | Lista de características |

| Chaves secundárias | Descrição                                                             |
| ------------------ | --------------------------------------------------------------------- |
| title              | Título do filtro (ex: Categorias, Filtrar por marca, Faixa de preços) |
| items              | Lista de itens                                                        |

Exemplo de conteúdo da variável “filters”:

```php
[categories] => Array
(
  [title] => Categorias
  [applied] => 
  [items] => Array
      (
          [0] => Array
          (
              [title] => EPSON
              [count] => 2
              [url] => /mvc/store/catalog/?categoria=8-epson&loja=332719
              [type] => link
              [applied] => 0
          )

          [1] => Array
          (
              [title] => HP
              [count] => 18
              [url] => /mvc/store/catalog/?categoria=10-hp&loja=332719
              [type] => link
              [applied] => 0
          )
          
      )
)

[brands] => Array
(
  [title] => Filtrar por Marca
  [applied] => 
  [items] => Array
      (
          [0] => Array
          (
              [title] => EPSON
              [count] => 2
              [url] => /mvc/store/catalog/?categoria=2&loja=332719&marca=marca_epson
              [type] => checkbox
              [applied] => 0
              [name] => marca
              [value] => marca_epson
          )

          [1] => Array
          (
              [title] => HP
              [count] => 18
              [url] => /mvc/store/catalog/?categoria=2&loja=332719&marca=marca_hp
              [type] => checkbox
              [applied] => 0
              [name] => marca
              [value] => marca_hp
          )

      )

)

[prices] => Array
(
  [title] => Faixa de Preços
  [applied] => 
  [items] => Array
      (
          [0] => Array
          (
              [title] => De R$ 22,99 a R$ 156,81
              [count] => 13
              [url] => /mvc/store/catalog/?categoria=2&loja=332719&range=22.99-156.81
              [type] => checkbox
              [applied] => 0
              [name] => range
              [value] => 22.99-156.81
              [from] => 22.99
              [to] => 156.81
          )

          [1] => Array
          (
              [title] => De R$ 156,82 a R$ 291,63
              [count] => 4
              [url] => /mvc/store/catalog/?categoria=2&loja=332719&range=156.82-291.63
              [type] => checkbox
              [applied] => 0
              [name] => range
              [value] => 156.82-291.63
              [from] => 156.82
              [to] => 291.63
          )

          [2] => Array
          (
              [title] => De R$ 561,28 a R$ 696,09
              [count] => 2
              [url] => /mvc/store/catalog/?categoria=2&loja=332719&range=561.28-696.09
              [type] => checkbox
              [applied] => 0
              [name] => range
              [value] => 561.28-696.09
              [from] => 561.28
              [to] => 696.09
          )

      )

)
```

#### [Componente exemplo de Filtro](https://partners.tray.com.br/themes/construindo-seu-template/referencias/componentes/filtro-inteligente).
