> For the complete documentation index, see [llms.txt](https://usermanual.ergonode.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://usermanual.ergonode.com/ergonode-user-manual-pl/struktura-produktu/atrybuty/zmienne-atrybutow.md).

# Zmienne atrybutów

{% embed url="<https://www.youtube.com/watch?v=lhXC8Jh26us>" %}

{% hint style="info" %}
Dodatkowe informacje:

* Zmienne są dozwolone tylko dla atrybutów typu pole tekstowe&#x20;
* Jeśli użytkownik nie ma uprawnień do podglądu atrybutu, zamiast kodu atrybutu (np. #color) zobaczy on placeholder z tekstem „No access”
  {% endhint %}

{% hint style="info" %}
Informacja dla deweloperów aplikacji: nasz silnik aplikacji nie obsługuje poniższych przypadków:

* użycia atrybutów globalnych z atrybutami lokalnymi użytymi jako zmienna
* użycia atrybutów globalnych z lokalnymi atrybutami typu pole wyboru&#x20;
* odświeżania wartości zmiennej przy zmianie przejścia wartości opcji w atrybucie typu pole wyboru
* Pracując ze zmiennymi przez API, pamiętaj, aby umieszczać je w podwójnych nawiasach klamrowych, np. {{#attribute\_code}}, aby system rozpoznał je jako zmienne, a nie jako zwykły tekst
  {% endhint %}

{% hint style="info" %}
W Ergonode Transfer, pracując ze zmiennymi w atrybucie pola tekstowego (products.csv), pamiętaj, aby umieszczać je w podwójnych nawiasach klamrowych, np. {{#attribute\_code}}, aby system rozpoznał je jako zmienne, a nie jako zwykły tekst.
{% endhint %}

### Typy atrybutów, które można dodać jako zmienną:

* data
* pole wyboru
* liczbowy
* tekst
* cena (tylko wartość, bez waluty)
* jednostka (tylko wartość, bez jednostki)

### **Obszary, w których możesz edytować atrybuty ze zmiennymi**  <a href="#spaces-in-which-we-can-edit-the-attributes-with-variables" id="spaces-in-which-we-can-edit-the-attributes-with-variables"></a>

* [szablon produktu](https://usermanual.ergonode.com/products/catalog/template#attribute-variables-in-the-product-template)
* tabela katalogu (grid)
* [akcje masowe](/ergonode-user-manual-pl/produkty/katalog/akcja-masowa.md)
* import - aby zaimportować zmienną, musisz wprowadzić ją w formacie {{#attributecode}}
* [eksport ](https://usermanual.ergonode.com/data-exchange/channels/creating-a-new-channel/ergonode-zip-csv)- konfiguracja, czy pobieramy dane ze zmiennymi, czy już z ostateczną, rozwiązaną zawartością

Jeśli używasz zmiennych atrybutów, możesz używać ich bezpośrednio w gridzie.

W gridzie kliknij dwukrotnie atrybut, aby otworzyć go do edycji.

<figure><img src="/files/922618d5b9774289dcf77dc8efa45900be9e91ae" alt=""><figcaption></figcaption></figure>

Wpisz znak hash (#), a zostanie wyświetlona lista atrybutów, których możesz użyć.

<figure><img src="/files/42b803612c4e5e22b1ef305f9bdd94511887d854" alt=""><figcaption></figcaption></figure>

Wpisz więcej znaków, aby zawęzić listę.

<figure><img src="/files/bc1ef3e9addb9b45fc1fab03d56886b3895a438e" alt=""><figcaption></figcaption></figure>

Możesz użyć więcej niż jednej zmiennej.

<figure><img src="/files/82fddb9c17f836ab0ddef6381a3ad3159b89091b" alt=""><figcaption></figcaption></figure>

Gdy używane są wartości atrybutów, zobaczysz nową ikonę oka; kliknięcie jej wyświetli podgląd wartości.

<figure><img src="/files/8df7f4e984e6305d63c88c627891c2189592d53f" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/023bf91fd0fff362a81752293021027028e48ca3" alt=""><figcaption></figcaption></figure>


---

# 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, and the optional `goal` query parameter:

```
GET https://usermanual.ergonode.com/ergonode-user-manual-pl/struktura-produktu/atrybuty/zmienne-atrybutow.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
