> For the complete documentation index, see [llms.txt](https://partners.tray.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://partners.tray.com.br/themes/construindo-seu-template/referencias/objetos/filters.md).

# 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](/themes/construindo-seu-template/referencias/componentes/filtro-inteligente.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://partners.tray.com.br/themes/construindo-seu-template/referencias/objetos/filters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
