Home > @vsf-enterprise/bigcommerce-theme > UseCartInterface > addItem
# UseCartInterface.addItem() method
Takes in a product, its quantity and variantId and adds it to the cart.
Signature:
addItem(product: Product, quantity?: number, variantId?: number): Promise<void>;
# Parameters
| Parameter | Type | Description |
|---|---|---|
| product | Product | |
| quantity | number | |
| variantId | number |
Returns:
Promise<void>