# $sBasketQuantity is NULL

**URL:** <https://forum.shopware.com/t/sbasketquantity-is-null/37851>\
**Category:** Programmierung\
**Created:** [1. Juli 2016 um 12:17 UTC](https://forum.shopware.com/t/sbasketquantity-is-null/37851 "2016-07-01T12:17:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codefritz](https://avatars.discourse-cdn.com/v4/letter/c/bc79bd/32.png) [@codefritz](https://forum.shopware.com/u/codefritz)\
**Post date:** [1. Juli 2016 um 12:17 UTC](https://forum.shopware.com/t/sbasketquantity-is-null/37851/1 "2016-07-01T12:17:27Z")

</div>

Hallo zusammen,

die genannte Tpl.-Variable ist bei mir stets NULL, und das obwohl im Header die richtige Zahl angezeigt wird. Ich verstehe es nicht.  
Ich möchte die Variable aber in meinem Template noch an einer anderen Stelle auslesen, leider ist diese aber stets NULL!

Danke.  
Grüße,  
cf

---

<div class="post-metadata">

**Author:** ![Stephan\_Pohl](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/stephan_pohl/32/10212_2.png) [@Stephan\_Pohl](https://forum.shopware.com/u/Stephan_Pohl)\
**Post date:** [1. Juli 2016 um 13:47 UTC](https://forum.shopware.com/t/sbasketquantity-is-null/37851/2 "2016-07-01T13:47:12Z")

</div>

Hallo @codefritz‍,

scheinbar beziehst du dich auf das Basket-Widget. Du musst wissen dass Widgets unabhängige Bereiche innerhalb von Shopware sind, die eine eigene&nbsp;Template-Datei und eine eigene Steuerung haben. Alle Template-Variablen, die dir im Widget zur Verfügung stehen, sind wirklich nur hier verfügbar. Außerhalb des Widgets kommst du an diese Variable nicht ran.

Viele Grüße,  
Stephan Pohl&nbsp; ![Shopware](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "Shopware")
