Anzeige der Artikelanzahl vom Warenkorb

Auch wenn das Thema schon etwas älter ist, hier meine Lösung für das Problem. In die Bootstrap.php eines Plugins muss folgendes rein: $this-\>subscribeEvent( 'Enlight\_Controller\_Action\_PostDispatch\_Frontend\_Checkout', 'onRenderCheckout' ); ... public function onRenderCheckout() { Shopware()-\>Session()-\>sBasketQuantity = Shopware()-\>Db()-\>fetchOne( 'SELECT SUM(sob.quantity) FROM s\_order\_basket sob WHERE modus = 0 AND sessionID = ?', [Shopware()-\>Session()-\>get('sessionId')] ); }

1 „Gefällt mir“