@plentymarkets/shop-api / setCartItemQuantity
Function: setCartItemQuantity() ​
setCartItemQuantity(
context
,params
):Promise
<Data
<CartItemError
|Cart
>>
Method setCartItemQuantity - Changes the quantity of a cart item
Parameters ​
• context: PlentysystemsIntegrationContext
• params: SetCartItemQuantityParams
Returns ​
Promise
<Data
<CartItemError
| Cart
>>
Remarks ​
- Calls /rest/storefront/cart/items/$
- This method is used to change the quantity of a cart item
Example ​
ts
const { data } = await useSdk().plentysystems.setCartItemQuantity({
cartItemId: 6683,
productId: 1100,
quantity: 5
});