> 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/store.md).

# store

O Objeto `store` retorna algumas informações básicas sobre a loja.

{% hint style="info" %}
**Disponível em todas as páginas.**
{% endhint %}

### Atributos disponíveis​ <a href="#atributos-disponiveis" id="atributos-disponiveis"></a>

Os atributos das informações da loja atual aberta podem ser utilizados para obter as informações necessárias em filtros, busca, títulos da loja, entre outros usos.

| Chaves principais  | Descrição                                                                            |
| ------------------ | ------------------------------------------------------------------------------------ |
| `{{ store.id }}`   | Exibe o número do Identificador único da loja                                        |
| `{{ store.name }}` | Exibe o Nome da loja                                                                 |
| `{{ store.url }}`  | Exibe o URL da loja                                                                  |
| `{{ store.chat }}` | Retorna o conteúdo do campo "Atendimento Online" cadastrado no Painel Administrativo |

### Como Usar

O código HTML abaixo verifica se o painel do Tema possui a variável de configuração para exibição da logo definida como `true`, caso ela esteja ativa será exibida a imagem da logo, a URL e o nome da loja, se não estiver será exibido o nome da loja.

{% code title="Input" %}

```html
{% if settings.logo %}
  <a class="logo" href="{{ store.url }}" title="{{ store.name }}" aria-label="{{ store.name }}">
    <img src="{{ asset(settings.logo) }}" alt="{{ store.name }}" />
  </a>
{% else %}
  <h1 class="title-store">{{ store.name }}</h1>
{% endif %}
```

{% endcode %}

{% code title="Output" %}

```xml
<a class="logo" href="https://www.sualojax.com.br" title="Sua Loja X" aria-label="Sua Loja X">
  <img src="../img/logo.png" alt="Sua Loja X" />
</a>
```

{% endcode %}


---

# 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/store.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.
