# Quantity adjustment in shopping basket not possible for custom line item

**URL:** <https://forum.shopware.com/t/quantity-adjustment-in-shopping-basket-not-possible-for-custom-line-item/102502>\
**Category:** Shopware 6 (English)\
**Created:** [14. Januar 2024 um 10:54 UTC](https://forum.shopware.com/t/quantity-adjustment-in-shopping-basket-not-possible-for-custom-line-item/102502 "2024-01-14T10:54:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mannitou](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mannitou](https://forum.shopware.com/u/mannitou)\
**Post date:** [14. Januar 2024 um 10:54 UTC](https://forum.shopware.com/t/quantity-adjustment-in-shopping-basket-not-possible-for-custom-line-item/102502/1 "2024-01-14T10:54:06Z")

</div>

Hello everyone,

I have noticed that I cannot adjust the quantity in the shopping basket for a custom line item. When I adjust the quantity, I get the message:

**Unfortunately, something went wrong.**

At first I thought that I had configured the custom line item incorrectly, but I would be surprised if I had. To test this, I copied all the properties of another product for which the quantity adjustment works:

```auto
$cart = $this->cartService->getCart($context->getToken(), $context);
$first = $cart->getLineItems()->first();
$lineItem->setCover($first->getCover());
$lineItem->setDataContextHash($first->getDataContextHash());
$lineItem->setDataTimeStamp($first->getDataTimeStamp());
$lineItem->setDeliveryInformation($first->getDeliveryInformation());
...

```

However, the quantity adjustment does not work.

What could be the problem?

Best

---

<div class="post-metadata">

**Author:** ![mannitou](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mannitou](https://forum.shopware.com/u/mannitou)\
**Post date:** [1. Februar 2024 um 07:34 UTC](https://forum.shopware.com/t/quantity-adjustment-in-shopping-basket-not-possible-for-custom-line-item/102502/2 "2024-02-01T07:34:55Z")

</div>

Any idea what’s the problem here?
