removeCartItemById()
Removes an item from the cart by its cart item ID.
Signature
await window.FairShareSDK.removeCartItemById(itemId);
Parameters
| Parameter | Type | Description |
|---|---|---|
itemId | number | The cart item ID to remove |
Example
// Remove specific item from cart await window.FairShareSDK.removeCartItemById(456);
Related
- decrementCartItem — Decrease quantity instead of removing
- clearCart — Remove all items