# Edit the document template code

> Learn how to edit document template code in Sufio, customize layout and data, and apply changes using the template editor.

Sufio’s template editor allows you to customize the design and layout of your documents beyond the standard design settings.

You can edit an existing document template or create your own by modifying the template code.

It also lets you display additional order, customer, or product data; show content based on conditions; and adjust the layout of your documents.

When you update a template, all existing documents are updated to the new design, except documents that have already been downloaded as PDF files.

## How to edit the document template code?

To edit the template code:

1. In your Sufio account, go to the **Design** page.
2. Click the **Edit code** link below **Change template**.
3. Use the template editor to modify the document structure and styling.
4. Click **Save** to update the preview.
5. Click **Publish** to apply your changes to all documents.

Your documents will now reflect the updated template.

> **Plan-specific feature**
>
> Editing the document template code is available only on the [Growth plan and higher](<https://sufio.com/articles/shopify/billing/sufio-plans/>).

> **Note**
>
> Template changes control how data is displayed on your documents. To customize your documents without editing code, use the settings on the [Design page](<https://sufio.com/articles/shopify/design/>).

> **See also**
>
> Want to learn how templates are structured and how to customize them? Get started with the [10 things to know about Sufio templates](<https://sufio.com/articles/templates/getting-started/sufio-templates-basics/>).
>
> For more advanced details on template properties, filters, tags, and other elements, see the [Sufio Template Documentation](<https://sufio.com/articles/templates/>).
