# Fehler bei Artikel in den Warenkorb legen

**URL:** <https://forum.shopware.com/t/fehler-bei-artikel-in-den-warenkorb-legen/95000>\
**Category:** Shopware 5\
**Created:** [28. Juni 2022 um 06:48 UTC](https://forum.shopware.com/t/fehler-bei-artikel-in-den-warenkorb-legen/95000 "2022-06-28T06:48:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![quebag](https://avatars.discourse-cdn.com/v4/letter/q/c67d28/32.png) [@quebag](https://forum.shopware.com/u/quebag)\
**Post date:** [28. Juni 2022 um 06:48 UTC](https://forum.shopware.com/t/fehler-bei-artikel-in-den-warenkorb-legen/95000/1 "2022-06-28T06:48:08Z")

</div>

> **[VILOFOSS MeidArom (vormals MilbArom) - 1,5 kg-Dose](https://shop.quebag.de/futtermittel-co/spezialfutter/vilofoss-meidarom-vormals-milbarom-1-5-kg-dose)**
>
> Ätherische Öle für das Wohlbefinden Ihrer Hennen. Einfache Anwendung - natürlich - keine Wartezeit - zufriedene Tiere. MeidArom ergänzt das Futter…

Wir können den Artikel mit Stückzahl 1 in den Warenkorb legen.  
Sofern ich 34 Stück eintippe erhalten wir folgende Fehlermeldung.

```auto
Fatal error: Uncaught TypeError: Shopware\Components\Cart\Struct\CartItemStruct::setUpdatedPrice(): Argument #1 ($updatedPrice) must be of type array, null given, called in /var/www/clients/client1/web6/web/engine/Shopware/Core/sBasket.php on line 3087 and defined in /var/www/clients/client1/web6/web/engine/Shopware/Components/Cart/Struct/CartItemStruct.php:120 Stack trace: #0 /var/www/clients/client1/web6/web/engine/Shopware/Core/sBasket.php(3087): Shopware\Components\Cart\Struct\CartItemStruct->setUpdatedPrice() #1 /var/www/clients/client1/web6/web/engine/Shopware/Core/sBasket.php(1748): sBasket->getPricesForItemUpdates() #2 /var/www/clients/client1/web6/web/engine/Shopware/Core/sBasket.php(1703): sBasket->updateCartItems() #3 /var/www/clients/client1/web6/web/engine/Shopware/Controllers/Frontend/Checkout.php(673): sBasket->sUpdateArticle() #4 /var/www/clients/client1/web6/web/engine/Library/Enlight/Controller/Action.php(186): Shopware_Controllers_Frontend_Checkout->changeQuantityAction() #5 /var/www/clients/client1/web6/web/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch() #6 /var/www/clients/client1/web6/web/engine/Library/Enlight/Controller/Front.php(225): Enlight_Controller_Dispatcher_Default->dispatch() #7 /var/www/clients/client1/web6/web/engine/Shopware/Kernel.php(197): Enlight_Controller_Front->dispatch() #8 /var/www/clients/client1/web6/web/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle() #9 /var/www/clients/client1/web6/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() #10 /var/www/clients/client1/web6/web/engine/Shopware/Components/HttpCache/AppCache.php(266): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() #11 /var/www/clients/client1/web6/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(269): Shopware\Components\HttpCache\AppCache->forward() #12 /var/www/clients/client1/web6/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(285): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass() #13 /var/www/clients/client1/web6/web/engine/Shopware/Components/HttpCache/AppCache.php(147): Symfony\Component\HttpKernel\HttpCache\HttpCache->invalidate() #14 /var/www/clients/client1/web6/web/vendor/symfony/http-kernel/HttpCache/HttpCache.php(213): Shopware\Components\HttpCache\AppCache->invalidate() #15 /var/www/clients/client1/web6/web/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() #16 /var/www/clients/client1/web6/web/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle() #17 {main} thrown in /var/www/clients/client1/web6/web/engine/Shopware/Components/Cart/Struct/CartItemStruct.php on line 120

```

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [28. Juni 2022 um 07:12 UTC](https://forum.shopware.com/t/fehler-bei-artikel-in-den-warenkorb-legen/95000/2 "2022-06-28T07:12:41Z")

</div>

Hallo @quebag

dazu gibt es bereits ein Ticket und das Problem ist auch schon gelöst [Shopware Issuetracker](https://issues.shopware.com/issues/SW-26840)  
Den Fix findest du hier: [Merge branch 'sw-26840/fix-purchase-steps' into 'next' · shopware/shopware@1e22216 · GitHub](https://github.com/shopware/shopware/commit/1e22216718d12249de07454c5b572afd9174813b#diff-f33ce40c8eaac7bb4e0a8a6b2a8b80d8ba61649a221788ebbeeaec868478801cR2970)

In der nächsten Version 5.7.14 wird das Problem dann behoben sein.

Viele Grüße aus Schöppingen  
Michael Telgmann

---

<div class="post-metadata">

**Author:** ![quebag](https://avatars.discourse-cdn.com/v4/letter/q/c67d28/32.png) [@quebag](https://forum.shopware.com/u/quebag)\
**Post date:** [26. September 2022 um 12:02 UTC](https://forum.shopware.com/t/fehler-bei-artikel-in-den-warenkorb-legen/95000/3 "2022-09-26T12:02:50Z")

</div>

Leider tritt die Problematik nach wie vor auf. Komischerweise nicht bei allen Artikeln.  
Aber hier z.B. [https://shop.quebag.de/detail/index/sArticle/3454](https://shop.quebag.de/detail/index/sArticle/3454)

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [5. Oktober 2022 um 08:06 UTC](https://forum.shopware.com/t/fehler-bei-artikel-in-den-warenkorb-legen/95000/4 "2022-10-05T08:06:42Z")

</div>

Hallo @quebag

im Standard ist die Mengenangabe ja ein Dropdown. Hast du mal probiert das Plugin zu deaktivieren, dass daraus ein Eingabefeld macht? Evtl. liegt dort noch ein Fehler vor.

Viele Grüße aus Schöppingen  
Michael Telgmann

---

<div class="post-metadata">

**Author:** ![quebag](https://avatars.discourse-cdn.com/v4/letter/q/c67d28/32.png) [@quebag](https://forum.shopware.com/u/quebag)\
**Post date:** [7. Oktober 2022 um 08:37 UTC](https://forum.shopware.com/t/fehler-bei-artikel-in-den-warenkorb-legen/95000/5 "2022-10-07T08:37:54Z")

</div>

Am Plugin lag es nicht. Aktuell scheint es wieder zu funktionieren.

---

<div class="post-metadata">

**Author:** ![quebag](https://avatars.discourse-cdn.com/v4/letter/q/c67d28/32.png) [@quebag](https://forum.shopware.com/u/quebag)\
**Post date:** [22. Juni 2023 um 08:02 UTC](https://forum.shopware.com/t/fehler-bei-artikel-in-den-warenkorb-legen/95000/6 "2023-06-22T08:02:07Z")

</div>

Guten Tag,

wir haben aktuell wieder dieses Problem. Genau mit dem Artikel.
