# E-Mail Templates

So kommst du dahin:

Home ➡️ Einstellungen ➡️ E-Mail Templates

***

### **1. Der Vergleich mit Shopify** <a href="#k14zumlvq5yc" id="k14zumlvq5yc"></a>

| Shopify                                                                                                                                                                   | Packstack Connect                                                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>✅ Shopify benachrichtigt, sobald das Paket versendet worden ist</p><p>❌ Danach erhält man keine weiteren Informationen</p><p>❌ Keine große Anpassungsmöglichkeiten</p> | <p>✅ Packstack bietet detaillierte Benachrichtigung</p><p>✅ Mehr Transparenz im Versandprozess</p><p>✅ Du kannst die E-Mail Templates selbst anpassen</p> |

***

So kommt man zu den E-Mail Templates:

Einstellungen ➡️ E-Mail Templates

***

### **2. Länderübergreifende Templates** <a href="#qz08q6gmyuvo" id="qz08q6gmyuvo"></a>

<figure><img src="https://3727956997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGVcZuaPbHgyXnrxvSF3%2Fuploads%2FvoV2GyhuZQ7HsyMN3Xnj%2FE-Mail%20Templates_neu.png?alt=media&#x26;token=6e0caa83-7e78-4520-b091-8f6e7e70393e" alt=""><figcaption></figcaption></figure>

Diese Templates geben übergreifend das Layout und das grundlegende Design der länderspezifischen E-Mails vor. Das vermeintlich wichtigste Template ist hierbei das “Basis-Template für Trackingnachrichten”, das das Design der Trackingnachrichten regelt.

In der linken Spalte steht der Name des Templates. In der Spalte rechts daneben findest du eine kurze Beschreibung des Templates.

👁️ Klickst du auf das Auge, dann kannst du dir die Vorschau anzeigen lassen.

✉️ Klickst du auf den Brief, dann kannst du dir eine Test-Mail an deine eigene E-Mail-Adresse senden lassen.

✏️ Klickst du auf den Stift, dann kannst du das Template bearbeiten.

### **3. Länderspezifische Templates** <a href="#a1pqd6g7e9za" id="a1pqd6g7e9za"></a>

<figure><img src="https://3727956997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGVcZuaPbHgyXnrxvSF3%2Fuploads%2FgyL1tyWjrI0TFwKNHsiR%2FE-Mail%20Templates%20Deutschland_neu.png?alt=media&#x26;token=a183f45d-94ed-4f52-a47b-9194f82df449" alt=""><figcaption></figcaption></figure>

Diese Templates sind für jedes Versandland individuell anpassbar. Hier bearbeitest du insbesondere den Text und individuelle Designanpassungen der einzelnen Trackingnachrichten, wie bspw.

* Übersetzungen
* individuelle länderspezifische Versandkonditionen
* Einfügen eines Header-Bildes
* Einfügen von individuellen Grafiken

In der linken Spalte der Template-Übersicht steht der Name des Templates. In der Spalte rechts daneben findest du eine kurze Beschreibung des Templates.

👁️ Klickst du auf das Auge, dann kannst du dir die Vorschau anzeigen lassen.

✉️ Klickst du auf den Brief, dann kannst du dir eine Test-Mail an deine eigene E-Mail-Adresse senden lassen.

✏️ Klickst du auf den Stift, dann kannst du das Template bearbeiten.

{% hint style="info" %}
In der ersten Zeile des Codes siehst du, dass dieses Template eine Erweiterung des Basis-Templates für Trackingnachrichten ist.
{% endhint %}

<figure><img src="https://3727956997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGVcZuaPbHgyXnrxvSF3%2Fuploads%2FoK3p5pIREeU3tUfIt6EG%2F4.jpeg?alt=media" alt=""><figcaption></figcaption></figure>

### **4. Übersetzungen** <a href="#bl53odiwhzwe" id="bl53odiwhzwe"></a>

<figure><img src="https://3727956997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGVcZuaPbHgyXnrxvSF3%2Fuploads%2FCMTkPN8ntYNQKoDFsRf4%2F5.jpeg?alt=media" alt=""><figcaption></figcaption></figure>

Wenn du in der E-Mail Templates Übersicht etwas nach unten scrollst, dann siehst du das Feld “Übersetzungen”. Hier sind diese Dateien relevant:

* emails.en.yml
* emails.fr.yml
* emails.de.yml

In diesen Dateien kannst du die Übersetzungen der Betreffzeilen der Trackingnachrichten mit Klick auf den Stift anpassen.

![](https://3727956997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGVcZuaPbHgyXnrxvSF3%2Fuploads%2FMC05WvyJOAXQWSRnMnpF%2F6.gif?alt=media)

{% hint style="danger" %}
Bitte ausschließlich die Sätze und Wörter in Anführungszeichen bearbeiten und nicht den restlichen Code, da sich sonst die Formatierung ändern könnte.
{% endhint %}

{% hint style="info" %}
Packstack Trackingnachrichten gehen mehr auf den Endkunden ein und ermöglichen so sowohl mehr Gewissheit beim Endkunden bezüglich seiner Bestellung als auch mehr Individualität durch ein eigenes Design.
{% endhint %}

#### **Verfügbare Variablen in Template-Dateien** <a href="#ls8bem49pw0n" id="ls8bem49pw0n"></a>

Folgende Variablen kannst du in Template-Dateien verwenden. Bitte beachte, dass Variablen innerhalb doppelt geschweifter Klammern geschrieben werden müssen {{ variable }}. Nicht alle Variablen sind in allen Templates verfügbar.

{% hint style="warning" %}
Diese Variablen sind für Leute mit Programmierwissen und sollte nur von diesen genutzt und eingebaut werden. Wenn du dieses Wissen nicht hast, suche dir bitte jemanden der diese Variablen für dich anwenden kann.
{% endhint %}

#### Erinnerung gehaltene Bestellung

* name *<mark style="color:purple;">string</mark>*
  * the name of the receiver from the shipping address
* order\_id *<mark style="color:purple;">int</mark>*
  * An internal unique identifier for the invoice
* order\_number *<mark style="color:purple;">string</mark>*
  * the Shopify order number that the return belongs to.
* order *<mark style="color:purple;">array</mark>*
  * *<mark style="color:purple;">see Array: order</mark>*
* hash *<mark style="color:purple;">string</mark>*
  * A secret hash value to login to the connected Self-Service-Portal

#### Alle Tracking-Nachrichten

* order *<mark style="color:purple;">array</mark>*
  * *<mark style="color:purple;">see Array: order</mark>*
* reference *<mark style="color:purple;">string</mark>*
  * the shipment reference number i.e. the Shopify order number&#x20;
* trackingNr *<mark style="color:purple;">string</mark>*
  * the corresponding tracking number of the shipment &#x20;
* carrier *<mark style="color:purple;">array</mark>*
  * id *<mark style="color:purple;">int</mark>*
    * An internal unique id for the used carrier
  * name *<mark style="color:purple;">string</mark>*
    * The name of the used carrier

#### Rücksendedokumente

* order *<mark style="color:purple;">array</mark>*
  * *<mark style="color:purple;">--> see Array: order</mark>*

#### Rechnungsversand

* order *<mark style="color:purple;">array</mark>*
  * *<mark style="color:purple;">--> see Array: order</mark>*
* invoice *<mark style="color:purple;">array</mark>*&#x20;
  * *<mark style="color:purple;">--> see Array: invoice</mark>*

#### Gehaltene Bestellung

* name *<mark style="color:purple;">string</mark>*
  * the name of the receiver from the shipping address
* order\_number *<mark style="color:purple;">string</mark>*
  * the Shopify order number that the return belongs to.&#x20;
* order\_id *<mark style="color:purple;">int</mark>*
  * An internal unique identifier for the invoice
* order *<mark style="color:purple;">array</mark>*
  * *<mark style="color:purple;">-> see Array: order</mark>*
* hash *<mark style="color:purple;">string</mark>*
  * A secret hash value to login to the connected Self-Service-Portal

#### Rücksendung erhalten

* name *<mark style="color:purple;">string</mark>*
  * the name of the receiver from the shipping address
* order\_number *<mark style="color:purple;">string</mark>*
  * the Shopify order number that the return belongs to.&#x20;

#### Array: invoice

* invoice *<mark style="color:purple;">array</mark>*
  * id *<mark style="color:purple;">integer</mark>*
    * An internal unique identifier for the invoice
  * invoiceNr *<mark style="color:purple;">string</mark>*
    * the invoice assigned number with prefix and suffix
  * invoiceDate *<mark style="color:purple;">datetime</mark>*
    * the date on which the invoice has been created
  * ref *<mark style="color:purple;">string</mark>*
    * the payment reference number for the transaction
  * paymentGateway *<mark style="color:purple;">string</mark>*
    * the used payment method for the transaction
  * headline *<mark style="color:purple;">string</mark>*
    * A headline indicating that the document is an invoice, voucher or an order confirmation, cancellation with the order number
  * remark *<mark style="color:purple;">string</mark>*
    * An additional remark from the Shopify Order Remark Property
  * name *<mark style="color:purple;">string</mark>*
    * Customer billing address name
  * company *<mark style="color:purple;">string</mark>*
    * Customer billing address company name
  * address *<mark style="color:purple;">string</mark>*
    * Customer billing address address
  * address2 *<mark style="color:purple;">string</mark>*
    * Customer billing address addition
  * city *<mark style="color:purple;">string</mark>*
    * Customer billing address city
  * country *<mark style="color:purple;">string</mark>*
    * Customer billing address country
  * zip *<mark style="color:purple;">string</mark>*
    * Customer billing address zip code
  * totalNetto *<mark style="color:purple;">decimal</mark>*
    * The total invoice amount without VAT
  * totalBrutto *<mark style="color:purple;">decimal</mark>*
    * the total invoice amount including VAT
  * shopifyRefundId *<mark style="color:purple;">integer</mark>*
    * if the document is a voucher, the associated shopify refund id is included, otherwise null
  * isConfirmation *<mark style="color:purple;">bool</mark>*
    * Whether the document is tax invoice or an order confirmation

#### Array: order

* order *<mark style="color:purple;">array</mark>*
  * shopifyOrderId *<mark style="color:purple;">integer</mark>*
    * the shopify order identifier for the order
  * checkoutId *<mark style="color:purple;">integer</mark>*
    * a checkout identifier if the order was created with a checkout (e.g. from the online store sales channel)
  * orderName *<mark style="color:purple;">string</mark>*
    * Name of the order in Shopify
  * orderDate *<mark style="color:purple;">datetime</mark>*
    * The date of the order placement
  * name *<mark style="color:purple;">string</mark>*
    * Customer shipping address name
  * companyName *<mark style="color:purple;">string</mark>*
    * Customer shipping address company name
  * address *<mark style="color:purple;">string</mark>*
    * Customer shipping address street
  * address2 *<mark style="color:purple;">string</mark>*
    * Customer shipping address addition
  * housenumber *<mark style="color:purple;">string</mark>*
    * Customer shipping address housenumber
  * city *<mark style="color:purple;">string</mark>*
    * Customer shipping address city
  * plz *<mark style="color:purple;">string</mark>*
    * Customer shipping address zip code
  * country *<mark style="color:purple;">string</mark>*
    * Customer shipping address country
  * email *<mark style="color:purple;">string</mark>*
    * Customer’s email address
  * phone *<mark style="color:purple;">string</mark>*
    * Customer phone number
  * carrier *<mark style="color:purple;">array</mark>*
    * id *<mark style="color:purple;">integer</mark>*
      * An internal unique id for the used carrier
    * name *<mark style="color:purple;">string</mark>*
      * The name of the used carrier
  * prio *<mark style="color:purple;">integer</mark>*
    * Whether the order is a priority order (1) or a normal one (0)

{% hint style="info" %}
Bsp.: {{ invoice.ref }}
{% endhint %}
