# Custom fields for product details

> from theme version 4.8.0

{% hint style="success" %}
Custom fields can be displayed in the buy box on the product page - **without any template adjustment.**
{% endhint %}

<figure><img src="/files/ZVTuCirFCrpZiNA8IMeK" 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 `Custom content (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)** `Text 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#text-field) in the Shopware documentation.

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

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

{% step %}

### Set label via snippets

As already noted in the blue information message from step 1, after creating the custom field, you have a snippet available that can be output as a label in the storefront. You can **search (1)** for the technical name of your custom field via *Settings > Shop > Text blocks > \[Select text block set]*. Click **Edit (2)** in the context menu and enter the name in all available languages.

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

{% hint style="info" %}
Be sure to include a **colon** in the label to keep the presentation consistent.
{% endhint %}
{% 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 page details  (1)** selection you can now **search (2)** for the newly created custom field and **select (3)** it.

<figure><img src="/files/L7OUPl5I91L0zQKjW06Y" 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 enter a value (1).

<figure><img src="/files/fqIxuKry2vatNTBdBgt9" 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-details.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.
