# Varianten Lagerbestandsprüfung im Listing

**URL:** <https://forum.shopware.com/t/varianten-lagerbestandsprufung-im-listing/20495>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [26. Mai 2014 um 18:03 UTC](https://forum.shopware.com/t/varianten-lagerbestandsprufung-im-listing/20495 "2014-05-26T18:03:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucid](https://avatars.discourse-cdn.com/v4/letter/l/d6d6ee/32.png) [@lucid](https://forum.shopware.com/u/lucid)\
**Post date:** [26. Mai 2014 um 18:03 UTC](https://forum.shopware.com/t/varianten-lagerbestandsprufung-im-listing/20495/1 "2014-05-26T18:03:40Z")

</div>

{if ($sArticle.instock \> 0)}

Auf Lager

{/if} Diesen Programmcode benutze ich im „Listing“. Jedoch funktioniert das nicht, sobald es sich um einen Variantenartikel handelt. Durch diesen Code wird nur geprüft, ob der 1. Artikel des Variantenartikels auf Lager ist. Ich will jedoch prüfen, ob wenigstens 1 Artikel der Variante verfügbar ist. Im Listing gibt es leider nicht die Möglichkeit auf Variablen der Varianten zuzugreifen. Gibt es hierfür eine Anleitung oder andere Lösungsansätze? Danke vorab.

---

<div class="post-metadata">

**Author:** ![lucid](https://avatars.discourse-cdn.com/v4/letter/l/d6d6ee/32.png) [@lucid](https://forum.shopware.com/u/lucid)\
**Post date:** [26. Mai 2014 um 20:46 UTC](https://forum.shopware.com/t/varianten-lagerbestandsprufung-im-listing/20495/2 "2014-05-26T20:46:07Z")

</div>

[http://wiki.shopware.de/Artikellisting- … \_1028.html](http://wiki.shopware.de/Artikellisting-mit-Variantenwechsel%5C_detail%5C_1028.html) Mit dem Tutorial und kleinen Modifikationen ging es.
