# Custom fields for product documents

> from theme version 4.8.0

{% hint style="success" %}
Datasheets can be added via custom fields and are displayed in the datasheets tab on the product page - **without any template adjustment.**
{% endhint %}

<figure><img src="/files/fi7UTDbxJfomBUNNIB5R" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}

### Create custom field

You can create any custom field via *Settings > System > Custom fields*.

**Select or create set:** To do this, either select the existing `Datasheets (THEME NAME)` set or create your own set. When creating a new set, make sure to assign to products.

**Create custom field:** In the desired set, create a new field of **type (1)** `Media field` using **New custom field**. You can find further information on [creating custom fields](https://docs.shopware.com/en/shopware-6-en/settings/custom-fields#media) in the Shopware documentation.

In our example we call the custom field `custom_details_example`.

<figure><img src="/files/ZTMVuMEqzkf4b2tYBibo" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Assign custom field

You can access the theme settings via *Extensions > My Extensions > Tab: Themes > \[Select theme] > Configure*. In the **Custom fields for product datasheets  (1)** selection you can now **search (2)** for the newly created custom field and **select (3)** it.

<figure><img src="/files/R9WtCn2gRFBBwxFZooFZ" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Create content

In order for the custom field to be visible in the storefront, you must enter content for the respective product. Under *Catalogues > Products > \[Select product] > in the tab: Specifications* you will find the custom fields at the very bottom. Select the set in which the custom field was created and set a media to it (1).

<figure><img src="/files/njEGvQtL1R42AEL1VuV3" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# 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://themedocs.zenit.design/en/settings/custom-field-assignment/custom-fields-for-product-documents.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.
