# Produktexport - Hauptprodukt nicht exportieren, wenn es keine aktive Variante gibt

**URL:** <https://forum.shopware.com/t/produktexport-hauptprodukt-nicht-exportieren-wenn-es-keine-aktive-variante-gibt/65534>\
**Category:** Programmierung\
**Created:** [16. März 2020 um 15:44 UTC](https://forum.shopware.com/t/produktexport-hauptprodukt-nicht-exportieren-wenn-es-keine-aktive-variante-gibt/65534 "2020-03-16T15:44:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vblanches](https://avatars.discourse-cdn.com/v4/letter/v/bbe5ce/32.png) [@vblanches](https://forum.shopware.com/u/vblanches)\
**Post date:** [16. März 2020 um 15:44 UTC](https://forum.shopware.com/t/produktexport-hauptprodukt-nicht-exportieren-wenn-es-keine-aktive-variante-gibt/65534/1 "2020-03-16T15:44:49Z")

</div>

Hallo,

ich versuche grade durch einen „Eigene Filter“ ein Produktexport zu filtern.

Ich möchte nur „Hauptprodukte“ exportieren, die mindestens eine aktive Variante haben. Also auch anders formuliert: wenn es keine aktive Variante gibt, soll die Hauptvariante nicht exportiert werden (Die inaktive Variante natürlich auch nicht).

Hat jemand eine Idee, wie ich das machen könnte / oder welchen SQL-Befehl ich verwenden könnte?

Vielen Dank!
