# Read shopping cart according to ItemId?

**URL:** https://forum.shopware.com/t/read-shopping-cart-according-to-itemid/65066
**Category:** Programmierung
**Created:** [28. Februar 2020 um 07:17 UTC](https://forum.shopware.com/t/read-shopping-cart-according-to-itemid/65066 "2020-02-28T07:17:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ricson](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@Ricson](https://forum.shopware.com/u/Ricson)
#### Post date: [28. Februar 2020 um 07:17 UTC](https://forum.shopware.com/t/read-shopping-cart-according-to-itemid/65066/1 "2020-02-28T07:17:44Z")

</div>

Hello everyone,

I have a subscriber for the&nbsp;_Shopware\_Modules\_Basket\_UpdateArticle\_Start_&nbsp;event&nbsp;_._

Background: I would like to check the graduated prices every time the shopping cart is updated - these come from an external REST API.

The event provides 2 parameters, ID and quantity.&nbsp;The ID belongs to the respective shopping cart&nbsp;item,&nbsp; **how do I read it out now** &nbsp;(item, quantity, price, etc.)?

There is the sBasket :: sGetBasket () function, but how do I get there from my plugin?

I also looked at the two services&nbsp;_shopware.cart.basket\_helper_&nbsp;and&nbsp;_shopware.cart.basket\_query\_helper_ **&nbsp;** , none of which return the shopping cart (by position).

_Shopware () -\> Modules () -\> Basket () -\> sGetBasket ()_ **&nbsp;** leads to an error in the event discussed, presumably because it triggers the event itself.

How do you get here?

_\*Verdächtige Links entfernt\*_

Thank you,.
