@plentymarkets/shop-api / doAddCartItem
Function: doAddCartItem() ​
Method doAddCartItem - Adds a product with selected quantity to the cart.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: DoAddItemParams
Returns ​
Remarks ​
- Calls /rest/storefront/cart/items/
- This method is used to add a product to the cart.
Example ​
ts
const { data } = await useSdk().plentysystems.doAddCartItem({
productId: 1100,
quantity: 1
});