# Logo und Datumsformat in den Dokumenten ändern

**URL:** https://forum.shopware.com/t/logo-und-datumsformat-in-den-dokumenten-aendern/98902
**Category:** Allgemein
**Created:** [10. März 2023 um 12:39 UTC](https://forum.shopware.com/t/logo-und-datumsformat-in-den-dokumenten-aendern/98902 "2023-03-10T12:39:00Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![memagdalena](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@memagdalena](https://forum.shopware.com/u/memagdalena)
#### Post date: [10. März 2023 um 12:39 UTC](https://forum.shopware.com/t/logo-und-datumsformat-in-den-dokumenten-aendern/98902/1 "2023-03-10T12:39:00Z")

</div>

Hallo ihr Lieben,

gibt es eine Möglichkeit, die Dokumente über eine Datei zu ändern, sodass ich die Größe des Logos anpassen kann? Das Logo ist sehr klein.

Ebenso habe ich auf allen Dokumenten das falsche Datumsformat JJJJ/MM/TT - ich würde es gerne auf TT.MM.JJJJ umstellen, aber auch diese Möglichkeit ist nirgends zu finden.

Liebe Grüße

---

<div class="post-metadata">

### Author: ![rockmartin](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/rockmartin/32/14616_2.png) [@rockmartin](https://forum.shopware.com/u/rockmartin)
#### Post date: [10. März 2023 um 12:47 UTC](https://forum.shopware.com/t/logo-und-datumsformat-in-den-dokumenten-aendern/98902/2 "2023-03-10T12:47:18Z")

</div>

Das Format kannst du direkt in den Dokumenten-Templates ändern.

```auto
{% sw_extends '@Framework/documents/invoice.html.twig' %}

 {% block document_side_info_order_date %}
    <tr>
        <td>
            {{ 'document.orderDate'|trans({'%orderDate%': order.orderDateTime|format_date(pattern="dd.MM.Y", locale=locale)})|sw_sanitize }}
        </td>
    </tr>
{% endblock %}
                        
{% block document_side_info_date %}
    <tr>
        <td>
            {{ 'document.date'|trans({'%date%': config.documentDate|format_date(pattern="dd.MM.Y", locale=locale)})|sw_sanitize }}
        </td>
    </tr>
{% endblock %}

```

---

<div class="post-metadata">

### Author: ![memagdalena](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@memagdalena](https://forum.shopware.com/u/memagdalena)
#### Post date: [13. März 2023 um 09:08 UTC](https://forum.shopware.com/t/logo-und-datumsformat-in-den-dokumenten-aendern/98902/3 "2023-03-13T09:08:03Z")

</div>

Super, vielen Dank. Hat funktioniert.

---

<div class="post-metadata">

### Author: ![dr.koppelmann](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@dr.koppelmann](https://forum.shopware.com/u/dr.koppelmann)
#### Post date: [16. März 2023 um 19:46 UTC](https://forum.shopware.com/t/logo-und-datumsformat-in-den-dokumenten-aendern/98902/4 "2023-03-16T19:46:03Z")

</div>

Hi rockmartin,

ich habe das gleiche Anliegen und war froh deine Antwort zu finden:

> [@rockmartin](#):
>
> Das Format kannst du direkt in den Dokumenten-Templates ändern.

Leider hilft sie mir nicht, weil ich nicht weiß, wo ich die Dokumenten-Templates finde und ändern kann. Wie ich grundsätzlich shop-Templates anpasse kenne ich, aber die Dokumenten-Templates finde ich im Github nicht.

---

<div class="post-metadata">

### Author: ![memagdalena](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@memagdalena](https://forum.shopware.com/u/memagdalena)
#### Post date: [17. März 2023 um 07:08 UTC](https://forum.shopware.com/t/logo-und-datumsformat-in-den-dokumenten-aendern/98902/5 "2023-03-17T07:08:29Z")

</div>

Hi dr.koppelmann,

ich habe die Dokumenten-Templates unter folgenden Pfad gefunden:

/vendor/shopware/core/Framework/Resources/views/documents/

---

<div class="post-metadata">

### Author: ![dr.koppelmann](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@dr.koppelmann](https://forum.shopware.com/u/dr.koppelmann)
#### Post date: [18. März 2023 um 21:01 UTC](https://forum.shopware.com/t/logo-und-datumsformat-in-den-dokumenten-aendern/98902/6 "2023-03-18T21:01:08Z")

</div>

Danke, an der Stelle habe ich es gefunden…

Leider gibt es nur bei mir diesen Block nicht. Muss ich den erstellen? Ich hatte angenommen, dass ich einen vorhandenen Block ändern soll.

---

<div class="post-metadata">

### Author: ![MarioB15](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@MarioB15](https://forum.shopware.com/u/MarioB15)
#### Post date: [7. Februar 2024 um 17:46 UTC](https://forum.shopware.com/t/logo-und-datumsformat-in-den-dokumenten-aendern/98902/7 "2024-02-07T17:46:10Z")

</div>

Hi memagdalena,  
ich steh leider vor dem selben Problem und versuche die Lösung von rockmartin nachzubauen. Der entsprechende Block steht bei mir im Formular letter\_header.html (@Framework/documents/includes/letter\_header.html.twig). Die Änderung des Datumsformates dort allein brachte aber keinen Erfolg. Auch wenn ich das Formular invoice.html.twig um den Eintrag ergänze, passiert nix, das Datum wir weiter im Format Y.MM.dd auf der Rechnung ausgegeben. Hast du noch nen Tipp?  
Danke und viele Grüße

Hat sich erledigt…die Änderung hat mit der nächsten neuen Bestellung funktioniert.

---

<div class="post-metadata">

### Author: ![shfnxs](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@shfnxs](https://forum.shopware.com/u/shfnxs)
#### Post date: [9. Januar 2025 um 12:29 UTC](https://forum.shopware.com/t/logo-und-datumsformat-in-den-dokumenten-aendern/98902/8 "2025-01-09T12:29:50Z")

</div>

Achtung, pattern=„dd.MM.Y“ kann am Jahreswechsel zu Problemen führen, zumindest 2024 auf 2025…

Besser ist pattern=„dd.MM.yyyy“

> **[Formatting Dates and Times](https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax)**
>
> ICU is a mature, widely used set of C/C++ and Java libraries providing Unicode and Globalization support for software applications. The ICU User Guide provides documentation on how to use ICU.

> Y - year in “Week of Year” based calendars in which the year transition occurs on a week boundary; may differ from calendar year ‘y’ near a year transition.
