@plentymarkets/shop-api / doAddCartItems
Function: doAddCartItems() ​
Method doAddCartItems - Adds products to the cart.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: DoAddItemParams
[]
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
}]);