---
title: "Overwrite email templates"
manual: "Cart"
version: "12.1"
permalink: "https://docs.typo3.org/permalink/extcode/cart:overwrite-email-templates@12.1"
source: "Tutorials/OverwriteEmailTemplates/Index.rst"
rendered: "2026-11-14T23:50:30+00:00"
---

# Overwrite email templates {#overwrite-email-templates}

If you want change the content of emails which are sent during an order you need
to overwrite the give templates/partials.

**EXT:sitepackage/ext_localconf.php**

```php
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['partialRootPaths']['1588829281'] = 'EXT:sitepackage/Resources/Private/Partials/';
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['templateRootPaths']['1588829281'] = 'EXT:sitepackage/Resources/Private/Templates/';
```

The files need then to be placed in a directory named `Mail`.

The following tree view shows an example how the overwrite the mail template
which is used when sending an email to the customer (=buyer) when the order is not payed yet
("open"). Furthermore the address partial is overwritten.

**Treeview under EXT:sitepackage/Resources/Private when using the above given configuration in `ext_localconf.php`**

```typoscript
├── Partials
│   └── Mail
│       └── Address.html
└── Templates
    └── Mail
        └── Open
            └── Buyer.html
```
