# Introduction

Welcome to the official documentation of the **Edit documents template** plugin (`HuebertCustomDocuments`) by Hubyte for Shopware 6.

## What does this plugin do?

This plugin lets you customize the Twig templates of Shopware's PDF documents – namely **invoice**, **delivery note**, **credit note** and **cancellation invoice** – directly in the administration. The layout, content and structure of the documents can be completely revised, without having to develop your own theme files or a custom plugin.

Customizations are made per **document configuration** (document type) and stored in the database. When a document is generated, your custom content, styles and templates are automatically merged into Shopware's standard document.

### Core features

* **Editable document sections** – Letter header, receiver, sender, positions, summary and footer with individual content (rich text) and individual CSS
* **Custom line items table** – Freely edit the Twig template of the order items table (expert setting)
* **Custom summary** – Customize the Twig template for the calculation/totals below the positions
* **Multilingual** – Maintain content and templates per language (language switcher)
* **Hide delivery date** – Hide the delivery date via a switch if needed
* **Live preview** – Generate a PDF preview of the document using a real order, without creating a document
* **Load default templates** – Restore the bundled default templates (table, styles, summary) with one click

## Overview

| Section                                                                                                      | Description                                                    |
| ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------- |
| [Installation & activation](/pdf-dokumenten-template-bearbeiten/english-documentation/installation.md)       | Install and activate the plugin                                |
| [Getting started](/pdf-dokumenten-template-bearbeiten/english-documentation/erste-schritte.md)               | Where to find the settings and how the interface is structured |
| [Document blocks](/pdf-dokumenten-template-bearbeiten/english-documentation/dokument-bloecke.md)             | Letter header, receiver, sender, positions, summary, footer    |
| [Line items table](/pdf-dokumenten-template-bearbeiten/english-documentation/bestellpositionen-tabelle.md)   | Customize the Twig template and CSS of the line items table    |
| [Calculation summary](/pdf-dokumenten-template-bearbeiten/english-documentation/zusammenfassung-template.md) | Customize the totals/calculation block below the positions     |
| [Preview](/pdf-dokumenten-template-bearbeiten/english-documentation/vorschau.md)                             | Generate a document preview using a real order                 |
| [Twig variables & examples](/pdf-dokumenten-template-bearbeiten/english-documentation/twig-variablen.md)     | Available variables and practical examples                     |
| [Frequently asked questions (FAQ)](/pdf-dokumenten-template-bearbeiten/english-documentation/faq.md)         | Answers to common questions                                    |

## System requirements

* Shopware 6.7.\*
* PHP 8.2 or higher

> **Note:** This plugin does not modify any of Shopware's standard files. All customizations are stored as an extension of the respective document configuration and merged in during rendering. If the plugin is uninstalled (without keeping the data), the customizations are removed and Shopware's standard documents apply again.


---

# 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://docs.hubyte.de/pdf-dokumenten-template-bearbeiten/english-documentation/en.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.
