@plentymarkets/shop-api / doAddCartItems
Function: doAddCartItems() ​
Defined in: api/doAddCartItems/index.ts:23
Method doAddCartItems - Adds products to the cart.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
Returns ​
Remarks ​
- Calls /rest/storefront/cart/items/
- This method is used to add multiple products to the cart.
Example ​
ts
const { data } = await useSdk().plentysystems.doAddCartItems([{
productId: 1100,
quantity: 1
}]);