> For the complete documentation index, see [llms.txt](https://themedocs.zenit.design/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://themedocs.zenit.design/en/settings/custom-field-assignment/custom-fields-for-product-details.md).

# 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="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2F1k0lMPcKikFiDB4mCO5q%2Fdocs-de-example-storefront-product-custom-field-buybox.png?alt=media&amp;token=39814e8c-5bcf-45da-8c47-d8ed47376ee8" 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="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FVcwd4rAkL0Lln2xsRC2j%2Fdocs-en-settings-create-custom-field-textfield.png?alt=media&amp;token=647cb5a2-f877-43c4-99da-93230c6d2eb7" 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="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FnOrJ6Y1sdI38if2kKsEv%2Fdocs-en-settings-snippets-custom-field-textfield.png?alt=media&amp;token=243b9194-24a4-4585-8453-ddc2736f37bc" 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="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FsFb92QZSj0Nr3U1n3KTg%2Fdocs-en-settings-custom-field-assignment-assign-custom-field.png?alt=media&amp;token=3af2bb5e-b4cc-41ab-86e0-040447149d17" 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="https://2915610672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4i6VN0FeNAgRFLwVM2Cr%2Fuploads%2FS7rBomYcKCbzl51gTVvF%2Fdocs-en-product-custom-field-textfield.png?alt=media&amp;token=61ee1e5c-8204-4cf4-8822-a8d6843fd0e5" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
