# Produkt-Variantenübersicht Spalte hinzufügen

**URL:** <https://forum.shopware.com/t/produkt-variantenuebersicht-spalte-hinzufuegen/104238>\
**Category:** Shopware 6 (German)\
**Created:** [10. Juni 2024 um 11:36 UTC](https://forum.shopware.com/t/produkt-variantenuebersicht-spalte-hinzufuegen/104238 "2024-06-10T11:36:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilik](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/nilik/32/24768_2.png) [@Nilik](https://forum.shopware.com/u/Nilik)\
**Post date:** [10. Juni 2024 um 11:36 UTC](https://forum.shopware.com/t/produkt-variantenuebersicht-spalte-hinzufuegen/104238/1 "2024-06-10T11:36:56Z")

</div>

Hallo,

ich möchte in der Variantenübersicht eines Produkts eine Spalte hinzufügen. Gibt es dafür eine Dokumentation?

Eine Spalte für die Produktübersicht konnte ich mit einem eigenen Plugin umsetzen. Jedoch für die Varianten fehlt mir der Einstieg.

Beste Grüße

---

<div class="post-metadata">

**Author:** ![Nilik](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/nilik/32/24768_2.png) [@Nilik](https://forum.shopware.com/u/Nilik)\
**Post date:** [21. Juni 2024 um 10:32 UTC](https://forum.shopware.com/t/produkt-variantenuebersicht-spalte-hinzufuegen/104238/2 "2024-06-21T10:32:08Z")

</div>

Meine main.js sieht nun so aus.

```auto
import { Component } from 'src/core/shopware';
import template from './sw-product-variant-list.html.twig';

Component.override('sw-product-variant-list', {
    template,

    computed: {
        customColumns() {
            return [
                ...this.$super('customColumns'),
                {
                    property: 'manufacturerNumber',
                    label: 'Herstellernummer',
                    inlineEdit: 'string',
                    allowResize: true,
                    align: 'left'
                }
            ];
        }
    }
});

```

Hier meine sw-product-variant-list.html.twig

```auto
{% block sw_product_variant_list_columns %}
    {{ parent() }}
    <th class="sw-data-grid__cell--header">{{ customColumn }}</th>
{% endblock %}

{% block sw_product_variant_list_body %}
    {{ parent() }}
    <td class="sw-data-grid__cell">{{ variant.manufacturerNumber }}</td>
{% endblock %}

```

Es klappt nicht. Wo ist mein Fehler?

---

<div class="post-metadata">

**Author:** ![Nilik](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/nilik/32/24768_2.png) [@Nilik](https://forum.shopware.com/u/Nilik)\
**Post date:** [22. Juli 2024 um 06:06 UTC](https://forum.shopware.com/t/produkt-variantenuebersicht-spalte-hinzufuegen/104238/3 "2024-07-22T06:06:08Z")

</div>

Ich bin hier leider immer noch nicht weiter gekommen. Hat jemand Idee oder Quellen?
