# Bsp. Artikelvariante Etikett Standard

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

![](/files/-MhnDl_WT6RU2NcgJi2z)

{% 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](/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: 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://helpcenter.etron.info/onretail-wiki/handbuch/drucker-and-hardware/etikettendruck-onretail/variantenetikett.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.
