# Vorschaubild für Variante

**URL:** <https://forum.shopware.com/t/vorschaubild-fuer-variante/96680>\
**Category:** Programmierung\
**Tags:** general\
**Created:** [13. Oktober 2022 um 15:12 UTC](https://forum.shopware.com/t/vorschaubild-fuer-variante/96680 "2022-10-13T15:12:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![akkuline](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@akkuline](https://forum.shopware.com/u/akkuline)\
**Post date:** [13. Oktober 2022 um 15:12 UTC](https://forum.shopware.com/t/vorschaubild-fuer-variante/96680/1 "2022-10-13T15:12:10Z")

</div>

Hi,  
in welcher Tabelle finde ich für die Variante das Vorschaubild?

So werden alle Bilder vom Produkt angezeigt. Ich möchte aber nur das Vorschaubild für die Variante haben.

SELECT  
s\_media.path,  
s\_media.name,  
s\_articles\_img.`position`,  
s\_articles\_img.article\_detail\_id,  
s\_articles\_img.id,  
s\_articles\_img.articleID,  
s\_articles\_img.img,  
s\_articles\_img.main,  
s\_articles\_img.description,  
s\_articles\_img.relations,  
s\_articles\_img.media\_id  
FROM s\_articles\_img  
INNER JOIN s\_media  
ON s\_articles\_img.media\_id = s\_media.id  
WHERE articleID=12610  
ORDER BY s\_articles\_img.`position`

Merkwürdig ist, dass das Feld s\_articles\_img.article\_detail\_id = NULL ist.

Vielen Dank  
Torsten
