> For the complete documentation index, see [llms.txt](https://helpcenter.etron.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.etron.info/onretail-wiki/handbuch/drucker-and-hardware/etikettendruck-onretail/variantenetikett.md). Agents can also search and read this documentation through its [MCP server](https://helpcenter.etron.info/~gitbook/mcp).

# Bsp. Artikelvariante Etikett Standard

Variantenetikett mit Herstellernummer (links oben) und Variantenattributen (links unten)

![](https://2354692687-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MSZ7ac6RT4RTvH1fVzP%2F-MhrVrTQWO5dxxpyhckn%2F-MhrWeGG_GD-2pp6NCVW%2FScreen%20Shot%202021-08-23%20at%2012.21.25.png?alt=media\&token=2028c805-096f-4b09-b5d6-5433ef28769e)

{% file src="/files/DuNGyWTcDNx5i0Q89eGI" %}

Benutzen Sie den Dateilink, um das Etikett in Ihrer Instanz einzufügen. Untenstehend nur zur Ansicht.

```
{%- set PRINTER_NAME = json.dumps(template.printer_name) %}
{%- set LABEL_TYPE = json.dumps("Variantenetikett Standard") %}
{%- set GROUP_NAME -%}
  "ID: {{ model.id }}"
{%- endset %}
{%- set LABEL_QUANTITY = 1 %}
{%- set TAX_INFO = json.dumps(model.taxes_id.name|replace("Mehrwertsteuer ", "MwSt: ")) %}
{%- set PRODUCT_PRICE = model.list_price %}
{%- set LABEL_REF_NAME = json.dumps(model.name) %}
{%- set PRODUCT_NAME = json.dumps(model.name[0:30]) %}
{%- set MANUFACTURER_CODE = json.dumps(model.manufacturer_code) %}
{%- set PRODUCT_EAN = json.dumps(model.product_code) %}
{%- set PRODUCT_PLU = json.dumps("%d"%model.id) %}
{%- set VARIANTS -%} 
  {%- for attr in model.attribute_value_ids|sort(attribute="attribute_id.name",reverse=true) %}
          {%- if loop.index > 1 %}, {% endif %}
          {{-attr.attribute_id.name.replace('ü', 'ue').replace('Ü', 'UE').replace('ö', 'oe').replace('Ö', 'OE').replace('ä', 'ae').replace('Ä', 'AE').replace('ß', 'sz').encode('ascii',errors='ignore').decode('unicode-escape')| truncate(2,end="")}}: {{attr.name}}
  {%- endfor %}
{%- endset %}
{%- set FDS -%}
ID;ETT01;3;Benutzerdefiniertes Etikett
         ; ID ; OPT ; TEXT               ; FORM ; FORM SIZE
FormAsgn ; Z  ; 0   ; Benutzerdefiniert  ; 99   ; Benutzerdefiniert

; Seite
Head ; FORM99 ; 57x24 Preis Rechts
   ; EAN
   Font   ; 36.EAN-13B Half Height
   Field ; 6 ; 9 ; 0 ; EANFCD ; FONTBOX{128,70}

   ; Artikeltext
   Font  ; 11.Arial
   Field ; 13.2 ; 1 ; 0 ; TEXT1
   
   ; Herstellernummer
   Font  ; 9.Arial
   Field ; 0 ; 1 ; 0 ; TEXT2
   
   ; Varianteninfo
   Font  ; 10.Arial Bold
   Field ; 18.5 ; 2 ; 0 ; TEXT3
   Font  ; 11.Arial
   
   ; Box fuer Preis
   Line ; 19 ; 26 ; 23 ; 26 ; 3 
   Line ; 23 ; 51 ;19.2 ; 51 ; 7
   Line ; 23 ; 26 ; 23 ; 51 ; 7

   ; Preis
   Font ; 10.Arial Bold
   Field ; 18 ; 27 ; 0 ; LDWSYM
   Font ; 10.Arial Black
   Field ; 18 ; 47 ; 0 ; vkp ; SAYRIGHT

{%- endset %}
{%- set FDSDATA = json.dumps(FDS) -%}
{#- =======================   LABEL DRUCKER DATEN   ======================= #}
{
  "Quantity": {{ LABEL_QUANTITY }},
  "FormName": {{ LABEL_REF_NAME }},
  "FormDesc": {{ PRODUCT_EAN }},
  "GroupName": {{ GROUP_NAME }},
  "LabelType": {{ LABEL_TYPE }},
  "UseGridLayout": false,
  "LabelPrinterData": {
    "CmdVer": 1,
    "Cmd": "PrintLabel",
    "PrinterSettings": {
       "PrinterName": {{ PRINTER_NAME }}
    },
    "Layout": {
      "Style": 99,
      "RowCount": 8,
      "ColCount": 3,
      "StartRow": 20,
      "StartCol": 50,
      "Width": 620,
      "Height": 300
    },
    "PrintData": [{
      "Ean": {{ PRODUCT_EAN }},
      "Plu": {{ PRODUCT_PLU }},
      "Text": {{ PRODUCT_NAME }},
      "Text2": {{ MANUFACTURER_CODE }},
      "Text3": {{ VARIANTS }},
      "Price": {{ PRODUCT_PRICE }},
      "ShowPrice": true,
      "VatPrice": true,
      "VatRate": {{ TAX_INFO }},
      "GpiTmg": 200,
      "GpiMeh": "ML",
      "GpiBas": 1000
    }],"FdsData":{{FDSDATA}}  
  }
}

{#- =======================   LABEL DRUCKER DATEN ENDE   ======================= #}
```

### A4 Variantenetikett (Ausdruck auf A4 Papier Etiketten)

Diese Etikette funktioniert am besten für Etikettendrucker, die von einer Rolle jeweils einzelne Etiketten andrucken. Eine angepasste Form, um dieses Etikett auf einem A4 Papierbogen - zB für Avery Klebeetiketten geeignet - finden Sie hier[ Bsp Etikette A4](https://helpcenter.etron.info/onretail-wiki/handbuch/drucker-and-hardware/etikettendruck-onretail/bsp-etiketten-auf-a4.md).\
So stellen Sie die Etiketten von Einzelausgabe um auf Rasterausgabe (A4 und andere Formate, bei denen mehrere Spalten an Etiketten gedruckt werden sollen).\
\
Setze "UseGridLayout": true, damit nicht einzelne sonder A4 Etiketten gedruckt werden.\
`"RowCount": 8, "ColCount": 3`, bestimmen jeweils die Zeilen und Spaltenanzahl.\
`"Star": 620, "Height": 300`, Die Größe einer Etikette in Zehntel mm, Breite und Höhe\
`"StartRow": 20, "StartCol": 50`, Die Angabe von Abstand zum Linken bzw Rechten Rand in Zehntel mm.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpcenter.etron.info/onretail-wiki/handbuch/drucker-and-hardware/etikettendruck-onretail/variantenetikett.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
