Home > @vue-storefront/core > UseCart > addItem
UseCart.addItem() method
Signature:
addItem(params: {
product: PRODUCT;
quantity: number;
customQuery?: CustomQuery;
}): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
params | { product: PRODUCT; quantity: number; customQuery?: CustomQuery; } |
Returns:
Promise<void>